[Cook] Running with parallel
Jody Hagins
jody at atdesk.com
Fri Jun 6 13:47:24 EST 2003
On Thu, 5 Jun 2003 21:45:32 -0500 (CDT)
Jerry Pendergraft <jerry at endocardial.com> wrote:
> Check (function print "in<"[younger]">";) the value of younger.
> It seems like it might be empty which would make gzip read from an
> empty stdin.
Thanks, Jerry. However, that does not seem to be the problem. Here is
the output from running "cook -parallel"
shandalle:jody> cook -parallel
shandalle:jody> cook -parallel
/* Howto.list, /home/jody/junk/cookplay, Thu Jun 05 23:13 2003 */
Line: 156 , thread: 1
cook: touch /tmp/MMMM.19650107 /tmp/IIII.19650107 /tmp/CCCC.19650107
/tmp/JJJJ.19650107 /tmp/SSSS.19650107
Line: 158 , thread: 1
Line: 133 , thread: 4
cook: gzip -c /tmp/JJJJ.19650107 > /tmp/JJJJ.19650107.gz
Line: 133 , thread: 3
cook: gzip -c /tmp/CCCC.19650107 > /tmp/CCCC.19650107.gz
Line: 133 , thread: 1
Line: 133 , thread: 2
Line: 135 , thread: 4
Line: 135 , thread: 3
Line: 133 , thread: 4
cook: gzip -c /tmp/SSSS.19650107 > /tmp/SSSS.19650107.gz
Line: 122 , thread: 3
cook: cp /tmp/JJJJ.19650107.gz /opt/nasdpe/pelogs/JJJJ/JJJJ.19650107.gz
Line: 135 , thread: 4
Line: 122 , thread: 4
cook: cp /tmp/CCCC.19650107.gz /opt/nasdpe/pelogs/CCCC/CCCC.19650107.gz
Line: 124 , thread: 3
Line: 122 , thread: 3
cook: cp /tmp/SSSS.19650107.gz /opt/nasdpe/pelogs/SSSS/SSSS.19650107.gz
Line: 124 , thread: 4
Line: 124 , thread: 3
Then, it just hangs here...
Here is a part of the Howto.cook file
115
116 /* */
117 [dst_pelogs_dir]/%1/%.[yyyymmdd].gz:
118 [tmp_pelogs_dir]/%.[yyyymmdd].gz
119 set mkdir
120 {
121 /* */
122 echo "Line: " [__LINE__] ", thread: " [thread-id] set silent;
123 cp [younger] [target];
124 echo "Line: " [__LINE__] ", thread: " [thread-id] set silent;
125 }
126
127
128 /* */
129 [tmp_pelogs_dir]/%.[yyyymmdd].gz:
130 [tmp_pelogs_dir]/%.[yyyymmdd]
131 {
132 /* */
133 echo "Line: " [__LINE__] ", thread: " [thread-id] set silent;
134 gzip -c [younger] > [target];
135 echo "Line: " [__LINE__] ", thread: " [thread-id] set silent;
136 }
137
--
Jody Hagins
A good supervisor can step on your toes without messing up your shine.
More information about the Cook-users
mailing list