Try using backticks instead of system. my @array = `command line`;
-----Original Message----- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 11/17/02 5:50 AM Subject: system function Hi, i'd like to know how i can get a return sting from a command and pass it to awk program. I have tried: #!/usr/bin/perl .... system (('tunctl',-u,$buf) | ('awk',print,$2) ); tunctl write a string in STDERR like this: Set 'tap1' persistent and owned by uid $buf I like to pass this string to awk and print only 'tap1'. How can i do this? Thanks in advance payment to all those that will answer to this message, Michele. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]