No need to fork and no need to exec. system will do nicely.
$ cat bashout.pl #!/usr/bin/env perl use strict; use warnings; print "This is perl\n"; system ('bash'); print "This is perl, again\n"; $ ./bashout.pl This is perl $ echo $SHELL /bin/bash $ exit exit This is perl, again $
In reply to Re: Taking control back once Interactive script completes
by hippo
in thread Taking control back once Interactive script completes
by murugu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |