Results 1 to 2 of 2

Thread: Cannot execute scripts

  1. #1

    Cool Cannot execute scripts

    Hi,

    I try to launch a script, for instance script.pl and there is always the same answer like :
    Code:
    [root@wl500g folder]$ script.pl
    -sh: script.pl: not found
    but the script is here with the good rights and perl is installed:
    Code:
    [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:
    Code:
    #!/usr/local/bin/perl
    I changed it with the same result to
    Code:
    #!/opt/bin/microperl
    I have the same error message with *.sh scripts. Why ?

    Could you help ?



    Config wl500gDeluxe
    1.9.2.7-7e

  2. #2

    Thumbs up script

    try this:
    Code:
    [root@wl500g folder]$ ./script.pl

Similar Threads

  1. Persistent calls to init scripts on HD?
    By Hobi in forum WL-700g Firmware Discussion
    Replies: 4
    Last Post: 02-10-2006, 23:27
  2. how can i execute a script at startup
    By loki in forum WL-500gP Q&A
    Replies: 1
    Last Post: 05-09-2006, 11:30
  3. Is there a way to pre-define "pre-reboot" scripts?
    By ikerstges in forum WL-500g Q&A
    Replies: 2
    Last Post: 15-02-2006, 10:32
  4. httpd server to execute arbitrary cgi code
    By layerthree in forum WL-500g Custom Development
    Replies: 4
    Last Post: 04-02-2005, 20:05
  5. Starting scripts from USB stick
    By Rob ter Veer in forum WL-500g Q&A
    Replies: 2
    Last Post: 19-12-2004, 19:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •