Re: Running a C Script
- From: Jan Gerrit Kootstra <jan.gerrit@xxxxxxxxxxxxxxx>
- Date: Tue, 30 Oct 2007 07:05:26 +0100
Riemer Palstra wrote:
On 2007-10-29, Karthik <Srikumar.karthiknarayanan@xxxxxxxxx> wrote:Dear Karthik and Riemer,
I use a Redhat Enterprise 4.0 OS, I am running a Script that is
written on C Code, When i run the script it gives me a error that
command not found.
[root@ssh-mach3 /root]# ./Script_Red_Hat_Linux_20071023.sh
./Script_Red_Hat_Linux_20071023.sh: Command not found.
Well, C code is usually compiled after which the created binary is run,
and in this case, if you should believe the filename, this looks more
like a bash/sh/csh script to me.
Try cat'ing or less'ing the file and see if you get any readable output.
It could be that the first line contains an invalid path to a script
interpreter, which needs to be corrected.
My first guess would be lack of an execute bit.
Karthik: what is the output of:
ls -l ./Script_Red_Hat_Linux_20071023.sh
Riemer: If it would be an intepretor problem I would expect an error like this:
../Script_Red_Hat_Linux_20071023.sh line 1: /path/command not found
Kind regards,
Jan Gerrit Kootstra
.
- References:
- Running a C Script
- From: Karthik
- Re: Running a C Script
- From: Riemer Palstra
- Running a C Script
- Prev by Date: Re: Running a C Script
- Next by Date: VNC connection problem
- Previous by thread: Re: Running a C Script
- Next by thread: circular dependency with Red Hat Enterprise Linux 5?
- Index(es):