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

Title: PERL not working
Post 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
Title: Re: PERL not working
Post by: Dan Brown on May 26, 2002, 06:53:55 AM
Is the script executable?  Check its permissions.
Title: Re: PERL not working
Post by: robert on May 31, 2002, 02:20:42 PM
Also: is it in your PATH?
Title: Re: PERL not working
Post by: Filippo Carletti on May 31, 2002, 02:43:52 PM
Check that lines are not CRLF terminated (dos files, if you use vi, it says [dos]).
If yes, cat script | tr -d "\015" >scriptnew