On 5 Feb 2006 12:21:50 -0800, MackS <[EMAIL PROTECTED]> wrote: > Hi Jorgen > > You wrote that: > >> $ head -1 foo3.py >> #!/usr/bin/python >> $ ./foo3.py >> >> This is the traditional shebang form used for shell and Perl scripts, >> and it names the process 'foo3.py' so you can killall(1) it nicely. > > It doesn't work on my system; I just get yet another process called > python.
Strange ... the other shebang-able programs (interpreters) I run (/bin/sh, perl) work like I described. That's something I expect to be standard operating procedure on any Unix (although I haven't spent much time outside Linux recently). Surely the interpreter in question doesn't have to do any magic to make it work? > I just read that on some systems perl allows you to rename the > process by assigning to $0: You shouldn't have to do that. I'm pretty sure. /Jorgen -- // Jorgen Grahn <grahn@ Ph'nglui mglw'nafh Cthulhu \X/ snipabacken.dyndns.org> R'lyeh wgah'nagl fhtagn! -- http://mail.python.org/mailman/listinfo/python-list