Nov 4, 2004 #1 1yura1 Programmer Feb 7, 2003 36 0 0 UA Hello, I need to start/open new console session from my perl script, and allow user to run any commands (like as in usual Linux console). Thanks, Yura.
Hello, I need to start/open new console session from my perl script, and allow user to run any commands (like as in usual Linux console). Thanks, Yura.
Nov 4, 2004 #2 MikeLacey MIS Nov 9, 1998 13,212 0 0 GB Hello Yura, You running X-Windows? 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 Upvote 0 Downvote
Hello Yura, You running X-Windows? 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
Nov 4, 2004 Thread starter #3 1yura1 Programmer Feb 7, 2003 36 0 0 UA <Mike> Hi, no I'm running Linux. I konow that it has to be very simple. Upvote 0 Downvote
Nov 4, 2004 #4 MikeLacey MIS Nov 9, 1998 13,212 0 0 GB 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 Upvote 0 Downvote
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