Article View: alt.uu.comp.os.linux.questions
Article #156Re: Can Red Hat Linux run Shell Script?
From: Peter Marks
Date: Sat, 21 Aug 1999 00:00
Date: Sat, 21 Aug 1999 00:00
33 lines
2259 bytes
2259 bytes
The default is bash but to make a file execute with csh have the first line as #!/bin/csh and combined with the chmod +x that you've done the script will run with csh. Note that this technique works with anthing that can run a script, it's commonly used with perl or python for example. peter PS: I just noticed you've cross-posted like crazy. I hope you get flodded with replys. Tone it down in future. Dominic Tse <dominictse@netscape.net> wrote in message news:7plmre$8e1$1@toto.tig.com.au... > Hi, > > I'm a newie of Linux. As I am currently studying Systems Programming (Unix), > I have installed Linux on my PC to practice and familiar with it. I am > currently trying to run C shell script under the Linux. It seems to me that > it doesn't like to execute the script although I've done "chmod u+x > script_program". The error message is something like "command not found". > Can anyone please give me some ideas? > > -- > dom > dominictse@netscape.net > http://homepages.tig.com.au/~jtse/ > >
Technical Details
Message-ID:
<7plo1o$p81$1@news1.mpx.com.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7plmre$8e1$1@toto.tig.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1101c9,d9db4d784d4d5b62 X-Google-Attributes: gid1101c9,public X-Google-Thread: f9b51,d9db4d784d4d5b62 X-Google-Attributes: gidf9b51,public X-Google-Thread: 10d8ad,d9db4d784d4d5b62 X-Google-Attributes: gid10d8ad,public X-Google-Thread: fe2cf,d9db4d784d4d5b62 X-Google-Attributes: gidfe2cf,public X-Google-Thread: 102983,d9db4d784d4d5b62 X-Google-Attributes: gid102983,public X-Google-Thread: 10a997,d9db4d784d4d5b62 X-Google-Attributes: gid10a997,public X-Google-Thread: fcfb9,d9db4d784d4d5b62 X-Google-Attributes: gidfcfb9,public From: "Peter Marks" <peter.marks@pobox.com> Subject: Re: Can Red Hat Linux run Shell Script? Date: 1999/08/21 Message-ID: <7plo1o$p81$1@news1.mpx.com.au> X-Deja-AN: 515425462 References: <7plmre$8e1$1@toto.tig.com.au> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Complaints-To: abuse@mpx.com.au X-Trace: news1.mpx.com.au 935224184 25857 210.0.2.22 (21 Aug 1999 08:29:44 GMT) Organization: Optus Internet NNTP-Posting-Date: 21 Aug 1999 08:29:44 GMT Newsgroups: alt.uu.comp.os.linux.questions,at.linux,aus.computers.linux,comp.os.linux.advocacy,comp.os.linux.setup,linux.redhat,uk.comp.os.linux