in reply to Re^5: Running Multiple Commands using System
in thread Running Multiple Commands using System
the syntax used here is what I found to run multiple commands of shell by one system call. But only in this specific case it does not work.system("sdb -d root on 'sdb -d shell; ls'");
gives error of "root does not take more than one arguement" while the following system call runs fine.system("sdb -d root on 'sdb -d shell; cd /opt; ls';bash ");
executing all the 3 shell commands sequentially in one child terminal. and running independentlysystem("sdb -d shell 'cd /opt; ls';bash ");
also works fine.system("sdb -d root on");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Running Multiple Commands using System
by Corion (Patriarch) on Jul 02, 2014 at 10:30 UTC |