mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-26 14:21:10 +00:00
16 lines
353 B
Awk
Executable File
16 lines
353 B
Awk
Executable File
#!/usr/bin/awk -f
|
|
BEGIN {
|
|
listener = "/inet/tcp/300/0/0"
|
|
quit = "no"
|
|
|
|
print $0
|
|
while (match(quit,"no")) {
|
|
while ((listener |& getline) > 0) {
|
|
if (match($0,"CREDOKBYYOU?")) {
|
|
print "CREDOKBYME" |& listener
|
|
}
|
|
}
|
|
close(listener)
|
|
}
|
|
}
|