home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 May / Chip_2000-05_cd2.bin / suse / inst-sys / lib / YaST2 / servers_non_y2 / ag_runtime < prev    next >
Encoding:
Text File  |  2000-03-30  |  212 b   |  18 lines

  1. #!/bin/bash
  2.  
  3. # exec 2>/dev/null
  4.  
  5. while true ; do
  6.     read COMMAND || exit
  7.     case "$COMMAND" in
  8.     "result("*)
  9.         exit
  10.         ;;
  11.     'Read(.username)')
  12.         echo '"'"$(whoami)"'"'
  13.     ;;
  14.     *)
  15.         echo nil
  16.     esac
  17. done
  18.