[SAC-HELP] Executing Other Programs From SAC Macros (with RUN ... ENDRUN)

andreas wessel awbochum at gmail.com
Mon Nov 6 21:25:51 PST 2006


Hi list,

Following http://www.iris.edu/manuals/sac/SAC_Manuals/SACMacros.html I am
trying to execute a command from a SAC macro.
Here is what I found in the manual:
RUN program {message}
{inputlines}
ENDRUN

So I am using this minimal example in a macro called test.m:
RUN sh
echo hey
ENDRUN
q

And I get:
SAC> m test.m
sh: RUN: command not found

I am using sac 100.01 for Linux.
Any ideas?

Thanks,
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iris.washington.edu/pipermail/sac-help/attachments/20061106/bb6543b2/attachment.html


More information about the sac-help mailing list