Thread: Executing Other Programs From SAC Macros (with RUN ... ENDRUN)

Started: 2006-11-08 02:25:51
Last activity: 2006-11-08 02:25:51
Topics: SAC Help
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

Page built 10:54:25 | v.b'ea7a92