2012-12-07 19:22:16 +00:00
|
|
|
#!/bin/awk -f
|
2012-12-07 15:59:34 +00:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
}
|