<!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> MACRO HPfilter file
sample1/2006.113.00.40.03.4381.MN.WDD..LHN.D.SAC filter 0.1<br>
MACRO-HPfilter-LOADED<br>
Read<br>
sample1/2006.113.00.40.03.4381.MN.WDD..LHN.D.SAC<br>
Highpass<br>
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 < HPfilter
file sample1/2006.113.00.40.03.4381.MN.WDD..LHN.D.SAC filter 0.1<br>
SEISMIC ANALYSIS CODE [06/12/2003 (Version 00.59.46)]<br>
Copyright 1995 Regents of the University of California<br>
<br>
SAC> KEYS? 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>