[Cook] Passing Environment variables to scripts ?

John Darrington john at cellform.com.au
Fri Oct 1 11:17:01 EST 2004


I've got a function which calls a shell script like:

function run-script =
{
        [ print Running Script [ @1 ] ] ;
	[shell [@1]];
}

but I want the script to be called with certain environment variables
set.  How can I do this?  I've tried numerous things similar to:


function run-script =
{
        [ print Running Script [ @1 ] ] ;
	[shell FOO=xyzzy [@1]];
}

But none of them seem to do the business.  Maybe cook should have a
setenv function to complement its getenv ?

J'



-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://wwwkeys.pgp.net or any PGP keyserver for public key.




-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.auug.org.au/pipermail/cook-users/attachments/20041001/0af5e3cc/attachment.pgp>


More information about the Cook-users mailing list