open(UPTOP, 'cat /proc/uptime | awk "{ print $1 } |"');Then $1 will be interpolated by shell, won't it? $1 should be AWK variable, neither Perl's one nor shell's one.
--
Tatsuhiko Miyagawa
miyagawa@cpan.org
In reply to Re: Re: Re: Using awk within system() or open()
by miyagawa
in thread Using awk within system() or open()
by SkullOne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |