[Cook] host-binding problems

Jody Hagins jody at atdesk.com
Sat Jun 21 08:37:11 EST 2003


The documentation says I can use "host-binding" with no arguments.  Per
the UG 4.5.4, setting the argument to localhost will cause it to act
like other remote invocations (i.e., think it is talking to another
machine).  I verified that this is the case (it wants to establish an
ssh connection to run the command).  However, also per 4.5.4, setting it
to an "empty" list will give normal default behavior.  However, when I
set it to be empty, I get a syntax error.


Note that I have also tried
	host-binding ""
and
	host-binding [nohost]
where earlier I set
	nohost = ;

The first one tried to ssh into host "" and the second one ignored the
host-binding and sent everything to the remote hosts.


What am I doing wrong?

/* Here is the sample cook file I am playing with */

parallel_hosts=shandalle;
parallel_rsh = "ssh";

src_dir=/tmp/src;
obj_dir=/tmp/obj;

all: /tmp/src/.obj/a.o
{
}

%0%1/.obj/%.o: %0%1/%.c
    /*set mkdir unlink*/
    host-binding
{
  gcc -c -o [target] [need];
}






-- 
Jody Hagins

I don't care for the Sugar Smacks commercial.  I don't like the idea of
a frog jumping on my Breakfast.
		-- Lowell, Chicago Reader 10/15/82



More information about the Cook-users mailing list