script question (was no subject)

Dave Ihnat ignatz at dminet.com
Wed Mar 31 12:59:25 UTC 2004


On Wed, Mar 31, 2004 at 06:35:22PM +0800, Ed Greshko wrote:
> I'm a bit confused about your question.  bash is a shell so a "bash
> script" is a "shell script".  Are you asking if a script can start
> another script?  If so, the answer is yes.

Or he may be asking how to guarantee the script is run with bash instead of
whatever script the invoker may be using.  In that case, the answer is to
have the very first line of the script be:

#!/bin/bash

Or wherever you know bash lives on the target system.
-- 
	Dave Ihnat
	ignatz at dminet.com





More information about the redhat-list mailing list