Please post a script that exhibits this behavior. My guess is that you have noexec set for the partition containing your program. Try copying your .pl file to /bin and running it from there (unless it deletes everything in the current directory, of course ;) | [reply] |
I tried it in the bin folder and it worked. What does that mean?
| [reply] |
Basically, your /home partition is set up to not allow programs to run from it. It's to prevent malicious code from running on your system. It can be disabled by editing /etc/fstab, but I advise you to create a directory in /usr to work on your code. Good luck!
| [reply] |
Your first line should be the following output:
echo '#!'`which perl`
| [reply] [d/l] |
It sounds like you have pretty much everything set up correctly, i.e. permissions, etc. So what do you mean by it looks like it runs? No errors are reported on the command line perhaps.
I'd recommend reducing the problem to a simplest case. Try a simple hello world program and see what happens.
I use the most powerful debugger available: print!
| [reply] |
Hi,
This sounds to be the result of SELinux. Either change the /etc/selinux/config to be disabled or configure SELinux. Configuring SELinux takes a bit of planning to do right. Unless this is going to be a server, I would recommend just disabling it.
Jason L. Froebe
Team Sybase member No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1
| [reply] |
If your script has ever been edited on Windows,
- pass it through dos2unix, or
- check there's no ^M byte on the first line, or
- put a space after the last printable on the first line
-- [ e d @ h a l l e y . c c ]
| [reply] |