home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.programmer
- Path: sparky!uunet!cs.utexas.edu!sun-barr!decwrl!csus.edu!csusac!sactoh0!sap
- From: sap@sactoh0.sac.ca.us (Stephan A. Puga)
- Subject: Environment variables when using system(...) command
- Message-ID: <1992Sep1.194508.10559@sactoh0.sac.ca.us>
- Organization: Sacramento Public Access Unix
- Date: Tue, 1 Sep 92 19:45:08 GMT
- Lines: 15
-
- If an environment variable is set before a program is run and the
- program makes use of the system(...) command, how can I use the
- environment variable in the system command? I am writing a program
- to be used on a network and there is a variable "username" set
- before the program is run (this variable by the way is very
- important to how WordPerfect 5.1 runs on the network), my program
- invokes WP51 and tries to pass it the username variable, but it
- doesn't work! Is there no way I can get the new "local" command
- shell to use the same "old" command shell's variables?
-
- --
- #############################################################
- # "Its been surreal!" # sap@sactoh0.SAC.CA.US #
- # -- Gogo Dodo # UUCP=..ames!pacbell!sactoh0 #
- #############################################################
-