Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Michel Ouellette on May 26, 2002, 06:19:04 AM
-
I'm trying to set up a perl script. But it will not run if I try to make it self executable using #!/usr/bin/perl
The script runs fine when I type "perl script.pl" but not if I type just "script.pl"
I get the following
BASH: script.pl: command not found
any idea of what I could be doing wrong?
This is only a test script, I'm only trying to see if I can make a perl script run. But I 've run into this problem right away
Thanks
-
Is the script executable? Check its permissions.
-
Also: is it in your PATH?
-
Check that lines are not CRLF terminated (dos files, if you use vi, it says [dos]).
If yes, cat script | tr -d "\015" >scriptnew