Re: Capturing system call output value

2003-11-16 Thread R. Joseph Newton
[EMAIL PROTECTED] wrote: > Thanks that help. but I notice there is a newline included in the variable > when using the ($name)=`uname -n`; > > Is this a normal thing that I should strip? > perldoc -f chomp Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

Some 'System Calls' was Re: Capturing system call output value

2003-11-15 Thread drieux
On Friday, Nov 14, 2003, at 18:39 US/Pacific, Jerry Rocteur wrote: Beautiful drieux, what a sexy way to do a system call!! And I never knew about $host = hostname;.. What a neat trick.. Keep 'em comin... Wiggins is the one who deserves the point, since he was the one with the reference to Sys::H

Re: Capturing system call output value

2003-11-15 Thread Ravi Malghan
http://theoryx5.uwinnipeg.ca/CPAN/perl/pod/perlfaq8/How_can_I_capture_STDERR_from_an_externa.html --- [EMAIL PROTECTED] wrote: > Can someone help me with capturing an output of a > system() call? > > ie ($a)=system("uname -n"); > > where $a would have the output value. > > thanks > > > --

Re: Capturing system call output value

2003-11-14 Thread drieux
On Friday, Nov 14, 2003, at 10:48 US/Pacific, [EMAIL PROTECTED] wrote: Thanks that help. but I notice there is a newline included in the variable when using the ($name)=`uname -n`; [..] See the Sys::Hostname module... http://danconia.org I of course like wiggins recommendation since the more tra

RE: Capturing system call output value

2003-11-14 Thread Ned Cunningham
, November 14, 2003 1:49 PM To: Wiggins d Anconia Cc: [EMAIL PROTECTED] Subject:Re: Capturing system call output value Thanks that help. but I notice there is a newline included in the variable when using the

Re: Capturing system call output value

2003-11-14 Thread perl
Thanks that help. but I notice there is a newline included in the variable when using the ($name)=`uname -n`; Is this a normal thing that I should strip? > > >> Can someone help me with capturing an output of a system() call? >> >> ie ($a)=system("uname -n"); >> >> where $a would have the output

Re: Capturing system call output value

2003-11-14 Thread Wiggins d Anconia
> Can someone help me with capturing an output of a system() call? > > ie ($a)=system("uname -n"); > > where $a would have the output value. > perldoc -q 'output of a command' You want backticks instead, though there are better ways to come by the sysem name, and don't use $a ($name) =

Capturing system call output value

2003-11-14 Thread perl
Can someone help me with capturing an output of a system() call? ie ($a)=system("uname -n"); where $a would have the output value. thanks - eMail solutions by http://www.swanmail.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands