rycher has asked for the wisdom of the Perl Monks concerning the following question:
This is what I have so far(doesn't work):
open (CSV, ">", $ADDListPresent) or die $!; my @CreateList = ( '/usr/bin/sudo', '-u', 'homer', '/usr/bin/ssh', qq($HomerServer), '/bin/ls', ); system("$CreateList > data/test.txt"); close CSV;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Capturing remote command output to a file
by ikegami (Patriarch) on Aug 17, 2009 at 20:10 UTC | |
|
Re: Capturing remote command output to a file
by SuicideJunkie (Vicar) on Aug 17, 2009 at 19:49 UTC | |
|
Re: Capturing remote command output to a file
by josh097 (Initiate) on Aug 17, 2009 at 20:18 UTC | |
by rycher (Acolyte) on Aug 18, 2009 at 00:11 UTC | |
|
Re: Capturing remote command output to a file
by BioLion (Curate) on Aug 18, 2009 at 08:39 UTC |