Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.questions Subject: Re: Executing a script with a specific shell. Message-ID: <1989Dec30.122215.2199@virtech.uucp> Date: 30 Dec 89 12:22:15 GMT References: <1483@lakesys.lakesys.com> Distribution: usa Organization: Virtual Technologies Inc. Lines: 17 In article <1483@lakesys.lakesys.com>, johnb@lakesys.lakesys.com (John C. Burant) writes: > I'm using csh as my reular shell, and I need a file to be executed by sh, > not csh, and this is not a regular script that would automatically be > executed with sh by typing its name - it's run with csh. Place a: #!/bin/sh as the first line of the shell file. This always works under BSD unix and if your primary shell is the csh it will work under system V. -- +-----------------------------------------------------------------------+ | Conor P. Cahill uunet!virtech!cpcahil 703-430-9247 ! | Virtual Technologies Inc., P. O. Box 876, Sterling, VA 22170 | +-----------------------------------------------------------------------+