Click here to get back home

unusual behaviour of perl script compiled with perlapp on hp-ux11i

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
unusual behaviour of perl script compiled with perlapp on hp-ux11i strepxe 05-08-2005
Posted by strepxe on May 8, 2005, 7:52 am
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

Basically it does not show any of the arguments in the command
description. The binary itself performs as expected and does appear to
have acted on the arguments supplied in the command line which is good.
However, I need this information for other scripts which we use to
manage components.

I've managed to get around this by writing a ksh wrapper which takes
arguments and passes them to the binary but its not really desirable.
I'd really like to understand the reason why the process list in UNIX
does not record the arguments.

I'm at home today but will update this posting with exact outputs from
the ps command when I'm in the office tomorrow.

Any guidance appreciated!



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


Similar ThreadsPosted
Pre-compiled SSL Perl modules August 6, 2006, 7:11 am
Compiled .exe of Perl does not work when using Crypt::SSLeay May 14, 2007, 7:35 pm
Running compiled Inline C perl scripts on more than one machine February 9, 2006, 12:12 pm
Executables out of perl script? April 20, 2006, 7:30 am
Executables out of perl script? April 20, 2006, 7:30 am
Executables out of perl script? April 20, 2006, 7:56 am
Help Eventlog Perl Script May 28, 2007, 11:27 am
New to perl module would like to learn how to run this script. January 18, 2005, 11:29 pm
How to invoke a CGI script within a Perl program ? May 6, 2005, 12:35 pm
getting output of telnet from perl script April 10, 2006, 5:35 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap