home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / msdos / programm / 8966 < prev    next >
Encoding:
Text File  |  1992-09-01  |  1.2 KB  |  25 lines

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