Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
May 19, 2005, 3:01 am
rate this thread
Re: Redirecting output of command inside backticks
Thanks a lot Xho. That worked.
I also found this:
How can I capture STDERR from an external command?
There are three basic ways of running external commands:
system $cmd; # using system()
$output = `$cmd`; # using backticks (``)
open (PIPE, "cmd |"); # using open()
With system(), both STDOUT and STDERR will go the same place as the
script's versions of these, unless the command redirects them.
Backticks and open() read only the STDOUT of your command.
- » FAQ 4.32 How do I strip blank space from the beginning/end of a string?
- — Previous thread in » PERL Discussions
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum