[Cook] Aborting a cook invocation

Jody Hagins jody at atdesk.com
Thu Jun 12 03:58:13 EST 2003


I want to exit gracefully from a cook invocation under certain cases. 
For example, assume I want a variable to be set on the command line when
cook is invoked.  I would like to do something like this...



if [not [defined variable_y]] then
{
  echo "variable_y is not defined!" set silent;
  exit 1;
}


But, there is no exit function, and I do not see a way of gracefully
aborting.


Thanks for any assistance!


-- 
Jody Hagins

take forceful action:
	Do something that should have been done a long time ago.



More information about the Cook-users mailing list