Mailinglist Archive: opensuse (3637 mails)

< Previous Next >
RE: [SLE] help required running a script (pretty please)
  • From: "Paul Abraham" <Paul.Abraham@xxxxxxxxxxxxxx>
  • Date: Thu, 3 May 2001 12:58:30 +0100
  • Message-id: <DDD70A888D77E1478D86AD9AFA7239260449FF@xxxxxxxxxxxxxxxxxxxxxxx>
scsijon wrote:
> Most likely dumb but:
>
> have written a simple script (script1) I want to run
>
> i've used chmod +x script1 ro make it executable
>
> when I attempt to run it i get the error:
>
> "sh: ./script1: No such file or directory
>
> I'm logged in as root,
> I can see and edit it,
> Why can't i run it?????????
>
> as i said most likeley dumb but.....

If the first line contains #!, check that the program it points
to actually exists.

i.e. if your first line is #!/usr/bin/perl, check that /usr/bin/perl
exists.

> thanks in advance
> scsijon

Paul.


< Previous Next >
This Thread
  • No further messages