in reply to I got two questions, please see here:)
The output's there just not printed to output. To retrieve the results:#!/usr/bin/perl use strict; use warnings; use IPC::System::Simple qw(capture); my @output = capture("ls", "/root/Desktop");
#!/usr/bin/perl use strict; use warnings; use IPC::System::Simple qw(capture); my @output = capture("ls", "/root/Desktop"); print @output, "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: I got two questions, please see here:)
by wildnature (Novice) on Feb 18, 2011 at 09:48 UTC | |
by roboticus (Chancellor) on Feb 18, 2011 at 10:34 UTC |