[SAC-HELP] calling sac commands within shell scripts
Januka Attanayake
jattanayake at gmail.com
Mon Oct 25 09:20:41 PDT 2010
Greetings,
I am trying to call sac within a shell script as follows.
while read line
do
cd $line
sac
gawk '{print "macro ../sac_cut.macro"}'
cd ../
done < folder_list.txt
folder_list.txt holds the names of all the directory names that the script
is suppose to look in.
I see that sac is initiated but the problem is in executing commands within
sac once it is initiated. I have tried several ways of doing that including
printf and piping to sac with back quotes. Still I get the following error.
SAC> readline: readline_callback_read_char() called with no handler!
How should one execute sac commands within a shell script?
I am using sac Version 101.3b
Thanks a lot.
Januka.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.iris.washington.edu/pipermail/sac-help/attachments/20101025/dcf807f0/attachment.html>
More information about the sac-help
mailing list