xcat-core/xCAT-genesis-scripts/bin/allowcred.awk
2013-01-07 15:26:39 +00:00

16 lines
338 B
Awk
Executable File

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