I am issuing this command on an Aix box and running allright :-) Forgive my curiosity.. are you running Solaris on a x86 box?
Steve Hemond Programmeur Analyste / Analyst Programmer Smurfit-Stone, Ressources Forestières La Tuque, P.Q. Tel.: (819) 676-8100 X2833 [EMAIL PROTECTED] > -----Original Message----- > From: drieux [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 17, 2003 1:14 PM > To: Perl Perl > Subject: Re: RE : RE : Regular expressions > > > > On Dec 17, 2003, at 8:47 AM, Hemond, Steve wrote: > [..] > > open(PS, "ps -efA|"); > > while (<PS>) { > > ($uid,$pid,$ppid,$c,$stime,$tty,$time,$cmd) = split; > [..] > > forgive me if I presume that you are running on some > version of Linux? ( because by BSD boxes do not like the "A" > and my Solaris box would get what you are looking for ) hence > > meatbop: 53:] ps -efA | grep httpd.conf > drieux 11069 10988 0 10:08 pts/0 00:00:00 grep httpd.conf > meatbop: 54:] ps -efAww | grep httpd.conf > root 1644 1 0 Nov10 ? 00:00:00 > /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf > hqadmin 1645 1644 0 Nov10 ? 00:00:00 > /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf > hqadmin 1646 1644 0 Nov10 ? 00:00:00 > /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf > hqadmin 1647 1644 0 Nov10 ? 00:00:00 > /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf > hqadmin 1648 1644 0 Nov10 ? 00:00:00 > /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf > hqadmin 1649 1644 0 Nov10 ? 00:00:00 > /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf > drieux 11071 11031 0 10:08 pts/1 00:00:00 grep httpd.conf > meatbop: 55:] > > it is possible that you are getting bitten by the classic > problem of the 'ps output' being truncated to the 'terminal > size' since you did not expressly assert that you wanted to 'go big'. > > Hence the problem is NOT with the RegEx, but with > limitations of what is actually being put into $cmd based > upon the input from the popen() command as invoked. > > HTH. > > > ciao > drieux > > --- > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>