is very unlikely to work, unless you have a command called "sstty +rs 1a12", and you want to pass it the single argument of "/".system("sstty +rs 1a12","/");
When you invoke the multi-arg system or exec or pipe-open, you assume complete responsibility for argument parsing, since no shell will decide that for you. The first argument will be precisely the command name (as found in the $ENV{PATH}, of course), and the remaining args are passed one-by-one (although a NUL character cannot be passed because of the underlying interfaces).
Perhaps what you wanted was:
system("sstty","+rs","1a12","/")
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to •Re: Response from system or Exec
by merlyn
in thread Response from system or Exec
by engtech
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |