Newsgroups: comp.parallel.pvm
From: Yufeng Luo <luo@brando.ece.utexas.edu>
Subject: spawn shell scripts with arguments
Organization: The University of Texas at Austin, Austin, Texas
Date: Tue, 5 Mar 1996 17:10:07 -0600
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Message-ID: <Pine.SOL.3.91.960305170608.24119A-100000@brando.ece.utexas.edu>

How to spawn a shell script with arguments?  I have a C shell script "bar"

	myprog $1 $2 $3

When I run it by hand, i.e., type "bar arg1 arg2 arg3", it's working.
If I spawn "myprog" directly and give it three arguments, it's also working.
But if I spawn "bar" and give it three arguments, hoping that it will run 
"myprog" with these arguments, it's not working.

Anybody can help?

                                                 \\|||//
        			                 \ ~ ~ /
	                                        o{ @ @ }o
===========================================o00o====(_)====o00o==================
Yufeng Luo
Department of Electrical and Computer Engineering
University of Texas-Austin
Austin, TX 78712

Office: ENS 406
Tel: (512)476-7931(home)  (512)471-8011(office)
Homepage: http://www.ece.utexas.edu/~luo
================================================================================


