Executing a script with a specific shell.
Conor P. Cahill
cpcahil at virtech.uucp
Sat Dec 30 23:22:15 AEST 1989
In article <1483 at lakesys.lakesys.com>, johnb at 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 |
+-----------------------------------------------------------------------+
More information about the Comp.unix.questions
mailing list