xcat-core/xCAT/postscripts/allowcred.awk
2008-04-29 13:57:57 +00:00

15 lines
343 B
Awk
Executable File

#!/usr/bin/awk -f
BEGIN {
listener = "/inet/tcp/300/0/0"
quit = "no"
while (match(quit,"no") && (listener |& getline) > 0) {
if (match($0,"CREDOKBYYOU?")) {
print "CREDOKBYME" |& listener
quit="yes"
}
}
close(listener)
}