home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / programm / 4255 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  812 b 

  1. Path: sparky!uunet!news.uiowa.edu!hobbes.physics.uiowa.edu!zaphod.mps.ohio-state.edu!malgudi.oar.net!caen!uakari.primate.wisc.edu!ames!haven.umd.edu!cs.wvu.wvnet.edu!cerc.wvu.wvnet.edu!cathedral!abmg
  2. From: abmg@cathedral.cerc.wvu.wvnet.edu (Aliasghar Babadi)
  3. Newsgroups: comp.unix.programmer
  4. Subject: check if a program exists
  5. Keywords: program
  6. Message-ID: <3467@babcock.cerc.wvu.wvnet.edu>
  7. Date: 12 Aug 92 16:04:22 GMT
  8. Sender: news@cerc.wvu.wvnet.edu
  9. Lines: 6
  10.  
  11. Hi,
  12.     I have an application that requests form the user to input
  13. a program name. I want to know if there is a way to check in a C program 
  14. if the name that user entered is acutally a program name, before  executing
  15. that program. User may enter a wrong program name I want to do the error
  16. checking before taking further actions in the program. Thanks.
  17.