System call using awk on Solaris

I'm brand new to awk and need your help.

I want to be able to shut down my workstations when they become to hot (because we've lost our cooling). I found a really neat way to monitor the temperature of the system and a short, simple awk scipt to use with it:

/usr/sbin/prtpicl -v -c temperature-sensor  and 
the awk program 

/:Temp/ {temp=$2}
/:name/ {if (($2=="cpu0") && (temp > 70)) <action>}

Which runs fine, but I can't get a system() call to work. It always hangs or does nothing. I, of course, want to run the init(0) command.

Thanks in advance,
Roger:o

Try using nawk or /usr/xpg4/bin/awk instead of plain/old 'awk'.

My apologies: I tried using /usr/xpg4/bin/awk, nawk and gawk and some function call with "///" in and such.

Thanks,
Roger:wall: