Maybe I did not make myself clear enough.
What I wanted to clarify is, whether the string you pass to system would work on its own when typed into a terminal.
So, again my question, maybe more explicit:
After opening a plain terminal, with your normal shell running, does pasting the following command work?
sdb -d root on 'sdb -d shell; ls';
If that doesn't work without Perl, it won't work with Perl added either.
If you want to run multiple commands within one shell session, I recommend creating a shell script and launching that script via system. |