Bill Allombert on Mon, 5 May 2003 11:59:55 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: default log file |
On Sun, May 04, 2003 at 03:00:49PM -0400, Igor Schein wrote: > On a related subject: > > ? hostname()=extern("uname -n") > ? hostname > *** unknown member function: puneet.txc.com > ^------- > > I can work around it: > > ? hostname()=extern("uname -n|cut -d. -f1") > ? hostname > puneet This is probably not what you want. puneet here is a variable name not a string. You should output a valid GP string. Use extern("printf '\"%s\"' `uname -n`") > However, is there a way to prevent the immediate evaluation? I do not thing it is fair to call that an 'immediate evaluation'. extern is the equivalent of read() for pipe. What you want is something completly different. Cheers, Bill.