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.
In reply to Re: Running Multiple Commands using System
by Corion
in thread Running Multiple Commands using System
by dkhoriya
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |