home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / question / 12928 next >
Encoding:
Internet Message Format  |  1992-11-04  |  1.1 KB

  1. Path: sparky!uunet!ogicse!mimbres.cs.unm.edu!unmvax!cs.sandia.gov!jhgreen
  2. From: jhgreen@cs.sandia.gov (Jethro H. Greene)
  3. Newsgroups: comp.unix.questions
  4. Subject: How do I run command-line shell-scripts in the background?
  5. Message-ID: <1992Nov5.033059.17605@cs.sandia.gov>
  6. Date: 5 Nov 92 03:30:59 GMT
  7. Article-I.D.: cs.1992Nov5.033059.17605
  8. Sender: jhgreen@cs.sandia.gov
  9. Followup-To: jhgreen@cs.sandia.gov
  10. Organization: Sandia National Laboratories, Albuquerque, NM
  11. Lines: 19
  12. Originator: jhgreen@cs.sandia.gov
  13.  
  14. Hi. 
  15.  
  16. Is it possible to run the ksh script in the background without creating and
  17. executing a program?
  18.  
  19.     #check to see if mngoi is logged on
  20.     while true; do
  21.        if `finger -s mngoi | grep -s On`; then
  22.           echo 
  23.        fi
  24.            sleep 10
  25.     done
  26.  
  27. Thanks in advance.
  28.  
  29. --------------------------- |\_/| --------------------------------------------
  30. | Jethro H. Greene (Jed) | \`0.0'/ | Massively Parallel Comp. Research Lab., |
  31. | jhgreen@cs.sandia.gov  | =(_-_)= | Sandia National. Lab., Albuquerque, NM  |
  32. ---------------------------   U   --------------------------------------------
  33.