[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
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
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
>
>
> --
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
, 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
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
> 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) =
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