home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!munnari.oz.au!uniwa!cujo!cc.curtin.edu.au!tsuanian
- From: tsuanian@cc.curtin.edu.au
- Subject: Problem with execl()
- Message-ID: <1993Jan22.100233.1@cc.curtin.edu.au>
- Lines: 25
- Sender: news@cujo.curtin.edu.au (News Manager)
- Organization: Curtin University of Technology
- Date: Fri, 22 Jan 1993 01:02:33 GMT
-
- This isn't a problem with C++ specifically, but it is
- hapenning with my BC++ 2.0 Compiler.
-
- I am using the execl function to call another program
- after one completes. the line is something like
- execl("executor.exe","executor.exe",argv[3],NULL);
-
- ideally this would mean that "executor.exe" would be passed
- 2 arguements i.e executor.exe and argv[3].
- But when "executor.exe" starts up it has up to 5 arguments!
- The first two as expected, and the rest garbage.
- (I discovered this by doing a printf on argc and argv).
-
- Any ideas on why this happens. I notice that this only happens if
- the program with the execl line in it (the calling program) is
- large (i.e greater that 300K or so).
-
- Any opinions?
-
- Thanks
- Ian.
- --
- Internet: TSUANIAN@cc.curtin.edu.au
- Bitnet: TSUANIAN%cc.curtin.edu.au@cunyvm.bitnet
- UUCP : uunet!munnari.oz!cc.curtin.edu.au!TSUANIAN
-