Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding interpreter 1

Status
Not open for further replies.

blarneyme

MIS
Jun 22, 2009
160
US
I have different operating systems and HP-UX places Perl in /usr/contrib/bin, so how do I set the first line so it knows where to find the interpreter? (Creating a link isn't possible.)

For the other OS's I have
Code:
#!/usr/bin/perl
but this err's on HP-UX.

Placing
Code:
#!/usr/contrib/bin/perl
works for HP-UX but not AIX, BSD, Solaris, and Linux.
 
ln -s /usr/bin/perl /usr/contrib/bin/perl

..should do the trick :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top