On Tue, May 25, 2004 at 03:51:25PM +0200, Murphy wrote: > then the output from "test_par" is like this: > > Location of the script: test_par > > which does not contain a full location of the script which was > executed. Is there a workaround for this?
Yes, and it is $ENV{PAR_PROGNAME}. However, if you need the perl script,
then it is $ENV{PAR_0}. Both should probably be documented better.
I do wonder whether it will be best if we simply assign one of the two to $0.
The reason it was not done before was (iirc) that assigning to $0 changes the
displayed program name in "ps", and (obviously) I'm not sure which of the two
should be assigned to $0.
Thanks,
/Autrijus/
pgp2ik4sMz1wO.pgp
Description: PGP signature
