I wish to run my scripts by simply invoking the filenaem at the command line in Linux. My file is set with execute permission (700), my $PATH is set to my /home/john/scripts directory (where the file lies), and my first line is #!/usr/bin/perl, which is the first listing for
$ wheris perl
when I enter
$ myscript
I get this error:
$ bash :/home/john/scripts/myscript: bad interpreter: No such file or directory
invoking the script as
$ perl myscript
works just fine.
What obvious thing am I missing?
$ wheris perl
when I enter
$ myscript
I get this error:
$ bash :/home/john/scripts/myscript: bad interpreter: No such file or directory
invoking the script as
$ perl myscript
works just fine.
What obvious thing am I missing?