[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Perl: bad interpreter



On 10/09/02 Jacob S. did speaketh:

> bash: /mnt/path/to/helloscript: /usr/bin/perl: bad interpreter:
> Permission denied

    This usually means that there is no interpreter at /usr/bin/perl. Having
the file mounted via NFS means nothing significant that I know of, since it's
loaded and run locally. Are you logging into another machine remotely, and if
so, does it have perl at /usr/bin/perl?

    If it's elsewhere but in the path, you could try this to keep the script
portable. 

#!/usr/bin/env perl

    Mike

-- 
Michael P. Soulier <msoulier@storm.ca>, GnuPG pub key: 5BC8BE08
"...the word HACK is used as a verb to indicate a massive amount
of nerd-like effort."  -Harley Hahn, A Student's Guide to Unix
HTML Email Considered Harmful: http://expita.com/nomime.html

Attachment: pgp9qzjLEZwye.pgp
Description: PGP signature


Reply to: