home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / linux / 10354 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  1.5 KB

  1. Path: sparky!uunet!mcsun!Germany.EU.net!news.Hamburg.Germany.EU.net!malihh!shlink.hanse.de!shgate!link-hh.comlink.de!m.will
  2. From: m.will@link-hh.comlink.de (Michael Will)
  3. Newsgroups: comp.os.linux
  4. Followup-To: comp.os.linux
  5. Subject: exec - how use it?
  6. Message-ID: <4lTsJWcWNH@LINK-HH.zer.sub.org>
  7. Date: Tue, 8 Sep 92 22:02:00 MET
  8. Organization: Freies Telekommunikations-Zentrum Hamburg e.V.
  9. X-Z-Path: LINK-HH!SHLINK
  10. X-Gateway: US SHLINK [shgate V1.91]
  11. Lines: 30
  12.  
  13. Hello,
  14.  
  15. I am trying to write some little information-program to allow users calling
  16. my linix from the outside and not yet having an account to read the linux.FAQ,
  17. send me a message etc.
  18.  
  19. I thought pretty easiest to show textfiles would be to use the /usr/bin/more,
  20. and so I thought about exec - with grep I found it in /usr/include/unistd.h,
  21. the names I must admit to have forgotten - I am writing from my dos yet.
  22.  
  23. I did something like
  24.  
  25.         execvp ("/usr/bin/more", "whatsthisfor", "txt/login.txt", NULL);
  26.         puts("finished");
  27.  
  28. It did put off the text but never returned to puts("finished");
  29.  
  30. I do not have any manpages for the libc, so would someone be so kind to
  31. enlighten me about the different versions of exec, how to use them and
  32. what the second argument is for?
  33.  
  34. Maybe you'd better send me an eMail instead of follow up, since this is not
  35. a linux-specific question...
  36.  
  37. Awaiting your answers, Michael Will from Hamburg, West-Germany.
  38. --
  39. linux - Ein Unix mit COPYLEFT-Lizenz - X11R5 - staendige Entwicklung - linux 0.97
  40. Hamburger Supportboxnummer: 040-7355349 - weitere Folgen?       ## Crosspoint ##
  41.   
  42.  
  43.