Re: How to parse UNIX commands ...

2006-10-27 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > Hi all, Hello, > How do I parse or evaluate the output of UNIX commands? > > For example, in UNIX scripts, I can run filesystem=`df -k | awk -F"" ' { print > $6 }'` to check for the mount points. > > How do I achieve the same in Perl? That is, I tried: > > #!/usr/bin

RE: How to parse UNIX commands ...

2006-10-26 Thread Thomas Bätzler
Hi, [EMAIL PROTECTED] asked: > How do I parse or evaluate the output of UNIX commands? > > For example, in UNIX scripts, I can run filesystem=`df -k | > awk -F"" ' { print > $6 }'` to check for the mount points. > > How do I achieve the same in Perl? That is, I tried: Essentially in the same

Re: How to parse UNIX commands ...

2006-10-26 Thread Arnaldo Guzman
On Fri, 2006-10-27 at 17:30 +1300, [EMAIL PROTECTED] wrote: > Hi all, > > How do I parse or evaluate the output of UNIX commands? > > For example, in UNIX scripts, I can run filesystem=`df -k | awk -F"" ' { print > $6 }'` to check for the mount points. > > How do I achieve the same in Perl? That

How to parse UNIX commands ...

2006-10-26 Thread benbart
Hi all, How do I parse or evaluate the output of UNIX commands? For example, in UNIX scripts, I can run filesystem=`df -k | awk -F"" ' { print $6 }'` to check for the mount points. How do I achieve the same in Perl? That is, I tried: #!/usr/bin/perl $x=system 'df -k'; print "===