[SAC-HELP] Initialization macro

Guust Nolet nolet at geoazur.unice.fr
Mon Jun 1 05:41:59 PDT 2009


In my case the alias works, but I take care to specify the *complete*  
address of the macro. I use tcsh:

alias sac '/usr/local/sac/bin/sac /Users/guust/.sacrc'

Guust Nolet
nolet at geoazur.unice.fr

Geosciences Azur
250, Rue Albert Einstein
06560 Sophia Antipolis
France
+33.4.92.94.26.32

http://geoweb.princeton.edu/people/faculty/nolet/



On 1 juin 09, at 13:58, Arthur Snoke wrote:

> In the README file, the absolute path is set for the init.m file.   
> Try using the absolute path and see if it finds your init.m.
>
> Do you have a directory ${SACHOME}/macro?  If so, try
>
> alias sac '${SACHOME}/sac ${SACHOME}/macro/init.m'
>
> I think your 'SETMACRO sac/macro' command requires that SAC is  
> already running before it will be recognized.
>
> Shahar Kadmiel ??? ?????? wrote:
>> Hi,
>> I am trying to run an initialization macro as sac starts up.
>> I have created an init.m macro file in the /sac/macro directory and  
>> I am able to run it from within sac by executing the following two  
>> commands:
>> SETMACRO sac/macro
>> MACRO init.m
>> I tried aliasing sac like this:
>> alias sac='sac sac/macro/init.m'
>> but it doesn't work and I don't think that it should but this is  
>> what it says to do in the README file for SAC so I tried.
>> How do I make something run as I call up sac?
>> Thanks
>> Shahar
> _______________________________________________
> sac-help mailing list
> sac-help at iris.washington.edu
> http://www.iris.washington.edu/mailman/listinfo/sac-help




More information about the sac-help mailing list