mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14782 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
		
			
				
	
	
		
			16 lines
		
	
	
		
			338 B
		
	
	
	
		
			Awk
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			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)
 | |
|       }
 | |
| }
 |