[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Problems running scripts
- Subject: Re: [cobalt-users] Problems running scripts
- From: Dennis <dkc@xxxxxxxxxxxxx>
- Date: Sat Feb 19 16:06:00 2000
Bruce in order to run a file from the command line you have to add "./"
before the file name.
Example:
[admin@cobalt toyota}$ ./hello.cgi
-Dennis
Bruce Campbell wrote:
> Okay. I'm beaten.
>
> Why can I not run scripts from the command line?
>
> This is a Qube2.
>
> [admin@cobalt toyota]$ ls -l hello.cgi
> -rwxr-xr-x 1 admin home 24 Feb 19 11:17 hello.cgi
> [admin@cobalt toyota]$ cat hello.cgi
> #!/bin/sh -w
> echo hello
> [admin@cobalt toyota]$ hello.cgi
> bash: hello.cgi: command not found
> [admin@cobalt toyota]$ sh hello.cgi
> hello
>
> Scripts just don't run straight. This is also true for perl scripts:
>
> [admin@cobalt toyota]$ hello.pl
> bash: hello.pl: command not found
> [admin@cobalt toyota]$ perl hello.pl
> hello
> [admin@cobalt toyota]$
>
> Naturally, this behavior means we can't run cgis on this box (unless I am
> forced to mod_rewrite them. Do-able, I suppose, but dumb).
>
> This is the only server (BSD and RedHat Linux) where we have this issue.
>
> --
> bruce campbell
> [ i-strategies / HerWork.Com ]
> [ 72 Madison Avenue 12th Floor New York NY 10016 ]
> [ 2 1 2 . 6 8 5 . 2 6 8 2 x 2 5 0 ]
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-users