ukhas jean wrote: > This is a curious question coming to my mind. I am making perl programs > on Unix (korn shell) . Just wanted to know when these perl programs are > run, do they execute on the same shell?? or do they execute in a subshell?? > > This is a curious thing tht came to my mind.
If you run a Perl script from the command line, I would assume it would be run as a separate child process under the korn shell (I believe part of the process group for that shell, but I've never used korn shell, so I'm guessing it's pretty much the same as other shells). If in the Perl script you were to run a 'system' call, backticks or similar type calls, they would be run as child processes of the Perl script process. You can obviously background the processes you start and disassociate them from the creating process if that's expedient to your needs. You can assign the processes to a process group (setpgid) if you need to control them en masse. You could read fork() and exec() man pages for the normal process creating scenario on UNIX systems. _______________________________________________ ActivePerl mailing list ActivePerl@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs