home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / admin / 7203 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  905 b 

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!matt.ksu.ksu.edu!news
  2. From: probreak@matt.ksu.ksu.edu (James Michael Chacon)
  3. Newsgroups: comp.unix.admin
  4. Subject: Re: process running in background
  5. Date: 22 Jan 1993 12:46:01 -0600
  6. Organization: Kansas State University
  7. Lines: 16
  8. Message-ID: <1jpfd9INNl5e@matt.ksu.ksu.edu>
  9. References: <1993Jan22.143824.16929@relay.nswc.navy.mil>
  10. NNTP-Posting-Host: matt.ksu.ksu.edu
  11.  
  12. rweisbe@starfleet.nswc.navy.mil (Bob Weisbeck) writes:
  13.  
  14. >  Sorry if this is not the right group for this but;
  15. >I have a process that the users might run in the background.
  16. >I would like the process to determine if it is running in 
  17. >the background so that I can suppress messages to stdout.
  18. >Anyone have any ideas?
  19.  
  20. >Thanks in advance.
  21.  
  22. >Bob
  23.  
  24. Try calling isatty on file descriptor 1. This should be standard out,
  25. and isatty will tell you if its connected to a terminal.
  26.  
  27. James
  28.