Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!seismo!decuac!avolio From: avolio@decuac.UUCP Newsgroups: comp.unix.questions Subject: Re: Why does this shell program run under csh???? Message-ID: <1343@decuac.DEC.COM> Date: Tue, 2-Jun-87 09:12:33 EDT Article-I.D.: decuac.1343 Posted: Tue Jun 2 09:12:33 1987 Date-Received: Thu, 4-Jun-87 02:22:27 EDT References: <243@kosman.UUCP> Organization: DEC SWS, Landover, MD Lines: 24 In article <243@kosman.UUCP>, kevin@kosman.UUCP (Kevin O'Gorman) writes: > I am running Ultrix 1.2A (a Berkely type thing) and have written two shell > programs: > /etc/daily > /etc/monthly > for backup purposes. The odd thing is that they are almost identical, the > exceptions being one argument to dump(8) and some commentary. ... !!!!!!!!!! One starts right in with the shell commands and the other starts with a comment beginning with a '#', right? Any shell script that the C Shell sees that begins with a comment it assumes should run with the /bin/csh, else it runs /bin/sh on it. Begin both scripts (assuming that they are written for Bourne Shell) with the line: #! /bin/sh Just a side note... based on your other postings recently I think that you might benefit from a DECstart Ultrix service at your site. This is not a put-down, please believe me. It just might be worth it to have someone come down and go through all of this with you for a day. Call your DEC sales rep or drop me a note if you do not know him|her. Fred