exec ("emacs -nw +50 $name");
... and finally, to avoid nasty surprises when $name contains characters that the default shell interprets instead of passing them unmodified to emacs, get rid of the shell. And check for errors, because exec could fail, like most other system calls.
exec('emacs','-nw','+50',$name) or die "exec emacs failed: $!";Alexander
In reply to Re^2: RFC: newscript.pl , my very first script!
by afoken
in thread RFC: newscript.pl , my very first script!
by Darfoune
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |