cshell script question [message #19386] |
Sat, 18 March 2000 00:00 |
Steven Chetelat (CS)
Messages: 11 Registered: February 2000
|
Junior Member |
|
|
Hey all, I'm having a problem and I was wondering if anyone could provide
any insight. I have the following script which I want to run from IDL,
using spawn I assume (right now I'm using spawn,'[commandline &
parameters]', since the /NO_SHELL keyword, which lets you pass in a
string array with the arguments, apparently doesn't work for scripts,
only programs):
#! /bin/csh
rm /home/scratch/im_size
program1 $1 12 /home/scratch/ap.vff 3
compress /home/scratch/ap.vff
program2 /home/scratch/ap.vff.Z /home/scratch/g_20.vff 20
script /home/scratch/g_20.vff $2
However, when I run it, some things execute and some don't. program1
doesn't appear to run, but script (which is a script which calls idl)
does. program2 *might* run, but as it depends on the output of program1,
it doesn't get anywhere. Is there anything special I need to do to
execute the script properly? Do I need to provide more information?
Thanks,
STEVE!(steve@moffitt.usf.edu)(chetelat@grad.csee.usf.edu)
|
|
|