wnorth at state.mt.us
Thu May 22 14:01:26 CDT 2003
Thanks to Brian Hatch and Andrew Wyllie for their
I still don't know why the script seems to ignore the
#!/usr/bin/perl line, its almost as if it were windows
in this respect. Maybe its an AIX thing.
Clearly the relationship of the perl script to the shell
is more complex then I thought.
Anyway, the answer to my problem was suggested by Brian,
and when I put in the -I magic happened. I could have
sworn I tried that..............
/usr/local/bin/perl -I/usr/local/lib/perl5 <myprog>
/usr/bin/perl works too, and there is no need to mess
with the users environment which is a good thing.
The -I did not work on the script perl #! line
but it works as above.
And I would bet that if I put the script in a wrapper
that changed the environment that it would work then,
just not inside.
Anyway, thanks for the help
> -----Original Message-----
> From: Brian Hatch [mailto:spug at ifokr.org]
> Sent: Thursday, May 22, 2003 11:13 AM
> To: North, Walter
> Subject: Re: SPUG:path problems
> > Its path to my perl
> > #!/usr/bin/perl which is a link to /usr/local/bin/perl
> > I thought that it would go to the perl listed in #! too,
> > but something is weird.
> What happens if you run
> /usr/local/bin/perl /path/to/my/script
> It should then absolutely positivily run with /usr/local/bin/perl.
> Brian Hatch Network must be back up.
> Systems and It used to say "Document
> Security Engineer contains no data."
> http://www.ifokr.org/bri/ Now it says "Account
> contains no money."
> Every message PGP signed
More information about the spug-list