Toggle navigation
Koozali.org: home of the SME Server
Community
Forums
Bugs
Lists
Forum Help
Download
SME Server ISOs
Contribs
Documentation
Manual
Wiki
FAQ
HowTo
Donate
Search
Login
Register
Login
Register
×
Close
Login
Remember me
Koozali.org: home of the SME Server
Legacy Forums
Experienced User Forum
Topic:
PERL not working
« previous
next »
+
Print
Pages: [
1
]
Go Down
PERL not working
3 Replies
471 Views
Michel Ouellette
PERL not working
«
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
Logged
Dan Brown
Re: PERL not working
«
Reply #1 on:
May 26, 2002, 06:53:55 AM »
Is the script executable? Check its permissions.
Logged
robert
Re: PERL not working
«
Reply #2 on:
May 31, 2002, 02:20:42 PM »
Also: is it in your PATH?
Logged
Filippo Carletti
Re: PERL not working
«
Reply #3 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
Logged
+
Print
Pages: [
1
]
Go Up
« previous
next »
Koozali.org: home of the SME Server
Legacy Forums
Experienced User Forum
Topic:
PERL not working