<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi everyone,<br>
<br>
I encountered a problem using MACROs.<br>
I wrote a macro that takes two arguments: Filename and Filter. When i
am run SAC2000 the macro works great:<br>
<br>
<font color="#6633ff">SAC&gt; MACRO HPfilter file
sample1/2006.113.00.40.03.4381.MN.WDD..LHN.D.SAC filter 0.1<br>
&nbsp;MACRO-HPfilter-LOADED<br>
&nbsp;Read<br>
&nbsp;sample1/2006.113.00.40.03.4381.MN.WDD..LHN.D.SAC<br>
&nbsp;Highpass<br>
&nbsp;0.1<br>
</font><br>
When i run the same macro from the shell i encounter the following
problem<br>
<br>
<font color="#ff0000">[root@localhost functions]# sac2000 &lt; HPfilter
file sample1/2006.113.00.40.03.4381.MN.WDD..LHN.D.SAC filter 0.1<br>
&nbsp;SEISMIC ANALYSIS CODE [06/12/2003 (Version 00.59.46)]<br>
&nbsp;Copyright 1995 Regents of the University of California<br>
<br>
SAC&gt; KEYS?&nbsp; Segmentation fault</font><br>
<br>
Is it possible to pass on key agurments from the system?<br>
<br>
Thanks for your vital help,<br>
<br>
Matthew Agius<br>
<br>
</body>
</html>