Just start a shell with the system command then, like this:
system('sh');
If you wish you can set the prompt the shell will use by setting the PS1 environment variable before the system() command, like this.
$ENV{'PS'} = "UNIX Shell. Type 'exit' when finished. >";
Mike
"Deliver me from that bane of civilised life; teddy bear envy."
Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884