in reply to Running Multiple Commands using System
Have you printed the actual string that you are passing to system?
my $cmd= 'sdb -d root on'; system($cmd)== 0 or die "Couldn't launch [$cmd]: $! / $?";
Most likely there is some (lack of) shell quoting going on, but it's hard to say without seeing the relevant parts of your code.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Running Multiple Commands using System
by dkhoriya (Initiate) on Jun 27, 2014 at 06:49 UTC | |
by Corion (Patriarch) on Jun 27, 2014 at 06:54 UTC | |
by dkhoriya (Initiate) on Jun 27, 2014 at 07:00 UTC | |
by Corion (Patriarch) on Jun 27, 2014 at 07:06 UTC | |
by dkhoriya (Initiate) on Jul 02, 2014 at 09:21 UTC | |
|