[Gretl-users] Script Questions

chris christoph.klein at student.kit.edu
Sat Aug 22 03:38:26 EDT 2009


Henrique wrote:
> 
> *Question 2*
> Is it possible to insert some instruction on a Gretl script file in 
> order to make Gretl recognize what operational system it is running on? 
> More specifically, I would like to make a script to use on both of my 
> computers (Windows based and OS/X based). Something like this:
> 
> If the operational system is Windows do this: ...
> If the operational system is OS/X do this: ...
> 

AFAIK you can only discriminate betweeen UNIXish systems (OS/X, Linux) 
and Windows systems. To give you an impression, I have attached a small 
script which uses the $windows variable in order to offer some file 
routines in a platform independent manner to gretl scripts.

chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: system.inp
Type: chemical/x-gamess-input
Size: 1142 bytes
Desc: not available
Url : http://lists.wfu.edu/pipermail/gretl-users/attachments/20090822/e10c2a12/attachment.bin 


More information about the Gretl-users mailing list