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