comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: cshell script question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: cshell script question [message #19381] Mon, 20 March 2000 00:00
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
"Steven Chetelat (CS)" wrote:
>
> 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)

hmm, I'm not really an expert for this, but what I would suggest is:
1) add a "set -x" statement to your script (second line)
2) invoke the script as
command = 'myscript '+param1+' '+param2+' >& myscript.out'

This should give you some hints on what is going on.

Regards,
Martin

--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Getting the color pallete without calling LoadCT first
Next Topic: Getting the color pallete without calling LoadCT first

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 14:15:24 PDT 2025

Total time taken to generate the page: 1.44226 seconds