Article View: alt.uu.comp.os.linux.questions
Article #146Re: Can Red Hat Linux run Shell Script?
From: Tim Haynes
Date: Mon, 30 Aug 1999 00:00
Date: Mon, 30 Aug 1999 00:00
25 lines
2453 bytes
2453 bytes
Peter Marks <peter.marks@pobox.com> doodled in uk.comp.os.linux: > 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. Yes, but you're forgetting one big thing - if you're running csh you'll have to add . to the path (no, not the PATH), and do a 'rehash' to get it to search again. > PS: I just noticed you've cross-posted like crazy. I hope you get flodded > with replys. Tone it down in future. Too right. -- ~Tim ___ http://www.glutinous.custard.org/ _______ tim@glutinous.custard.org ____ | Geek Code: GCS dpu s-:+ a-- C++++ UBLUAVHSC++++ P+++ L++ E--- W+++(--) N++ | | w--- O- M-- V-- PS PGP++ t--- X+(-) b D+ G e++(*) h++(*) r--- y- | | .|` Clouds cross the black moonlight / | | Rushing on down to the circle of the turning world .|` (Runrig) | `----------------------------------------------------------------------------'
Technical Details
Message-ID:
<slrn7rt304.2cm.piglet@spodzone.pigsty.org>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7plmre$8e1$1@toto.tig.com.au> <7plo1o$p81$1@news1.mpx.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fe2cf,d9db4d784d4d5b62 X-Google-Attributes: gidfe2cf,public X-Google-Thread: 10d8ad,d9db4d784d4d5b62 X-Google-Attributes: gid10d8ad,public X-Google-Thread: 102983,d9db4d784d4d5b62 X-Google-Attributes: gid102983,public X-Google-Thread: 10a997,d9db4d784d4d5b62 X-Google-Attributes: gid10a997,public X-Google-Thread: 1101c9,d9db4d784d4d5b62 X-Google-Attributes: gid1101c9,public X-Google-Thread: fcfb9,d9db4d784d4d5b62 X-Google-Attributes: gidfcfb9,public X-Google-Thread: f9b51,d9db4d784d4d5b62 X-Google-Attributes: gidf9b51,public From: piglet@glutinous.custard.org (Tim Haynes) Subject: Re: Can Red Hat Linux run Shell Script? Date: 1999/08/30 Message-ID: <slrn7rt304.2cm.piglet@spodzone.pigsty.org> X-Deja-AN: 519017182 X-NNTP-Posting-Host: spodzone.demon.co.uk:193.237.47.64 References: <7plmre$8e1$1@toto.tig.com.au> <7plo1o$p81$1@news1.mpx.com.au> X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 936045517 nnrp-11:4660 NO-IDENT spodzone.demon.co.uk:193.237.47.64 X-Caffeine-Requirement: Irn Bru and rising User-Agent: slrn/0.9.5.6 (UNIX) Reply-To: piglet@glutinous.custard.org 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