Problem with any of os.system(), os.fork() & os.execp() and os.spawn()
Andy Todd
andy47 at halfcooked.com
Thu Jan 3 00:41:01 EST 2002
Donn Cave <donn at u.washington.edu> wrote in
<a108eq$6ha$1 at nntp6.u.washington.edu>:
>Quoth Eric Chamberland <Eric.Chamberland at videotron.ca>:
>| Al I want is to execute a simple tcsh script from a python process.
>| But the problem is that a put processes in the background in my tcsh
>| shell (with &) and the execution of the script is stopped _only_ when
>| the console from which I started the python process has been
>| terminated.
>
>Good luck! Your problem here is really tcsh. The only advice I can
>give you is "never write scripts in csh", and that goes for tcsh as
>well.
>
>I went so far as to verify that it works for me on NetBSD if I use, for
>example, bash. I wouldn't waste a second trying to figure out what's
>wrong with tcsh or how it can be fixed, seriously.
>
> Donn Cave, donn at u.washington.edu
And if Donn and Martin haven't convinced you that writing scripts in any
variant of the c shell is bad, have a look at;
http://www.notelrac.com/essays.dir/softeng.dir/csh_harmful.html
Regards,
Andy
--
Content free posts a speciality
More information about the Python-list
mailing list