Log in

Bekijk de volledige versie : Cannot execute scripts



kokoro
23-10-2006, 15:39
Hi,

I try to launch a script, for instance script.pl and there is always the same answer like :

[root@wl500g folder]$ script.pl
-sh: script.pl: not found
but the script is here with the good rights and perl is installed:

[root@wl500g folder]$ ls -l
-rwxr-xr-x 1 root root 5392 Oct 22 22:59 script.pl
[root@wl500g folder]$ ipkg files microperl
Package microperl (5.8.6-3) is installed on root and has the following files:
/opt/bin/microperl
Here the first line of the script:
#!/usr/local/bin/perl
I changed it with the same result to
#!/opt/bin/microperl
I have the same error message with *.sh scripts. Why ?

Could you help ?

:cool:

Config wl500gDeluxe
1.9.2.7-7e

unicorn
26-10-2006, 06:42
try this:

[root@wl500g folder]$ ./script.pl
:rolleyes: