aboutsummaryrefslogtreecommitdiffstats
path: root/awklib/eg/network/fingerclient.awk
blob: d2ed9fd00d3cbe437d663aab93379f3d9ed8e2ad (plain)
1
2
3
4
5
6
7
8
BEGIN {
  finger_server     = "andrew.cmu.edu"
  finger_connection = "/inet/tcp/0/" finger_server "/finger"
  print "wnace" |& finger_connection
  while ((finger_connection |& getline) > 0)
    print $0
  close(finger_connection)
}