Professional Web Applications Themes

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

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 ...

  1. #1

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

    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!

    strepxe@yahoo.co.uk Guest

  2. #2

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

    <strepxeyahoo.co.uk> wrote in comp.lang.perl.misc:
    > 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
    Anno Siegel Guest

Similar Threads

  1. Running compiled Inline C perl scripts on more than one machine
    By ant_howell@yahoo.com in forum PERL Modules
    Replies: 2
    Last Post: February 10th, 11:23 AM
  2. Control a non-perl image viewer from perl script
    By Harry Putnam in forum PERL Beginners
    Replies: 1
    Last Post: October 31st, 10:28 PM
  3. Net::POP3->new() fails in PerlApp compiled script
    By Eric McDaniel in forum PERL Modules
    Replies: 0
    Last Post: September 22nd, 04:28 PM
  4. [HELP] Unusual script timeout error
    By Hendry J in forum PHP Development
    Replies: 0
    Last Post: August 12th, 07:33 AM
  5. unusual behaviour of program under linux....
    By Artie Gold in forum UNIX Programming
    Replies: 7
    Last Post: June 26th, 04:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139