xcat-core/xCAT/postscripts/allowcred.awk
2010-04-06 08:17:04 +00:00

16 lines
372 B
Awk
Executable File

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