[SAC-HELP] Executing Other Programs From SAC Macros (with RUN ... ENDRUN)
andreas wessel
awbochum at gmail.com
Tue Nov 7 12:34:19 PST 2006
On 11/8/06, Fiona Darbyshire <f.darbyshire at gmail.com> wrote:
>
>
> I'm not sure whether "run sh" would work,but one can certainly run
> executables and shell scripts from within a SAC macro. I think what you're
> missing is the dollar sign in front of the commands.
>
Thanks, it works fine with the dollar signs. Maybe they should be added in
the manual.
On 11/8/06, Josh Calkins <jcalkins at email.arizona.edu> wrote:
In the end, I used a shell script that created a macro
> on the fly so I could change the shell commands based on bb variables
> that I would periodically write out to a text file.
>
That sounds familiar, but my approach doing that with the following syntax
for arg in "$@"; do
echo "$arg" > $SACTMPFILE
done
does not work as I would like it. Did you use something similar?
Thanks,
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.iris.washington.edu/pipermail/sac-help/attachments/20061108/98b9f302/attachment.html>
More information about the sac-help
mailing list