home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.programmer
- Path: sparky!uunet!ukma!usenet.ins.cwru.edu!agate!stanford.edu!leland.Stanford.EDU!dkeisen
- From: dkeisen@leland.Stanford.EDU (Dave Eisen)
- Subject: Re: Creating a background process from within C prog
- Message-ID: <1992Nov11.032950.23086@leland.Stanford.EDU>
- Sender: news@leland.Stanford.EDU (Mr News)
- Organization: Sequoia Peripherals, Inc.
- References: <1992Oct27.103059.60148@cc.usu.edu> <BwsyCt.9Gx@acsu.buffalo.edu> <HUANG1.92Nov10171831@husc10.harvard.edu>
- Date: Wed, 11 Nov 92 03:29:50 GMT
- Lines: 19
-
- In article <HUANG1.92Nov10171831@husc10.harvard.edu> huang1@husc10.harvard.edu (Howard Huang) writes (with vertical space compressed):
- > kiddo = fork ();
- > if (kiddo == 0) {
- > system("ls > /tmp/myfile");
- > exit(0);
- > }
-
- If you're going to use system, you might as well take the shell
- you spawn for all it's worth and write:
-
- system ("ls > /tmp/myfile &");
-
-
-
- --
- Dave Eisen Sequoia Peripherals: (415) 967-5644
- dkeisen@leland.Stanford.EDU Home: (415) 321-5154
- There's something in my library to offend everybody.
- --- Washington Coalition Against Censorship
-