🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #271

Re: Need help writing Front End

#271
From: Jonathan I. Kamens
Date: Tue, 07 Apr 1992 15:15
59 lines
3117 bytes
In article <1992Apr7.140858.21311@rsd0.rsd.dl.nec.com> randy@rss.dl.nec.com (Randy Bullard) writes:

(Randy: Please keep the lines in your postings less than 80 characters
long in the future.)

   If you need access to both stdin and stdout for the program, then
   you'll have to create new file descriptors and fork/exec the
   program with these new file descriptors in its environment as stdin
   and stdout (or somesuch nonsense.  I've done it before but can't
   remember the exact procedure.  popen() definitely won't do it
   though).  See Richard Stevens "Unix Network Programming" or Marc
   Rochkind's "Advanced Unix Programming" for code examples on how to
   do this.

Better yet, see the comp.unix.questions FAQ, which answers this
question.

The original poster should have read the FAQ before posting.  The
people who have answered so far should have sent mail rather than
posting an answer to a question that is answered in the FAQ.

For the FAQ-impaired:

Subject: Welcome to comp.unix.questions [Monthly posting]
Newsgroups: comp.unix.questions,news.answers

Subject: Frequently Asked Questions about Unix (1/4) [Monthly posting]
Subject: Frequently Asked Questions about Unix (2/4) [Monthly posting]
Subject: Frequently Asked Questions about Unix (3/4) [Monthly posting]
Subject: Frequently Asked Questions about Unix (4/4) [Monthly posting]
Newsgroups: comp.unix.questions,comp.unix.shell,news.answers

Available in the indicated USENET newsgroup(s), or via anonymous ftp from
pit-manager.mit.edu (18.172.1.27) in the files:

/pub/usenet/news.answers/unix-faq/unix-intro
/pub/usenet/news.answers/unix-faq/part1
/pub/usenet/news.answers/unix-faq/part2
/pub/usenet/news.answers/unix-faq/part3
/pub/usenet/news.answers/unix-faq/part4

Also available from mail-server@pit-manager.mit.edu by sending a mail message
containing any or all of:

send usenet/news.answers/unix-faq/unix-intro
send usenet/news.answers/unix-faq/part1
send usenet/news.answers/unix-faq/part2
send usenet/news.answers/unix-faq/part3
send usenet/news.answers/unix-faq/part4

Send a message containing "help" to get general information about the
mail server.

-- 
Jonathan Kamens						jik@MIT.Edu
MIT Information Systems/Athena		    Moderator, news.answers
    (Send correspondence related to the news.answers newsgroup
	{and ONLY correspondence related to the newsgroup}
		 to news-answers-request@MIT.Edu.)
Technical Details
Message-ID: <JIK.92Apr7111527@pit-manager.mit.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!mintaka.lcs.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!jik
References: <1992Apr5.232443.12931@willamette.edu> <1992Apr6.210239.9818@ringer.cs.utsa.edu> <1992Apr7.140858.21311@rsd0.rsd.dl.nec.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!mintaka.lcs.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!jik
From: jik@athena.mit.edu (Jonathan I. Kamens)
Newsgroups: comp.unix.programmer
Subject: Re: Need help writing Front End
Message-ID: <JIK.92Apr7111527@pit-manager.mit.edu>
Date: 7 Apr 92 15:15:34 GMT
References: <1992Apr5.232443.12931@willamette.edu>
 <1992Apr6.210239.9818@ringer.cs.utsa.edu>
 <1992Apr7.140858.21311@rsd0.rsd.dl.nec.com>
Sender: news@athena.mit.edu (News system)
Organization: Massachusetts Institute of Technology
Lines: 59
In-Reply-To: randy@rss.dl.nec.com's message of Tue, 7 Apr 1992 14:08:58 GMT
Nntp-Posting-Host: pit-manager.mit.edu