|
Posted by Anno Siegel on May 8, 2005, 8:33 pm
Please log in for more thread options
> i've compiled a perl script using perlapp on hp-ux11i (not really what
> i wanted to do but makes it much simpler installing on customer
> system). have noticed a difference in behaviour which is causing a bit
> of a problem.
> the perl script, AZB.pl takes a number of arguments and runs in the
> background. A typical invocation of the script would be
>
> #nohup ./ABZ.pl -i 10 -a 20 &
>
> The script runs in the background, and you can see it operating by
> issuing a ps which gives the following typical output:
>
> .... /usr/bin/perl -w ABZ.pl -i 10 -a 20
>
> This is good. However, when I compile using perlapp and execute the
> binary as follows:
>
> #nohup ./ABZ -i 10 -a 20 &
>
> I get the following output from my ps command:
>
> ............ ABZ
If HPUX supports it (recent ones do, I believe), you can assign to $0,
and what you put there will appear in the ps output. Need I say more?
Anno
|