🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #1205

Environment variables when using system(...) command

#1205
From: Stephan A. Puga
Date: Tue, 01 Sep 1992 19:45
15 lines
1214 bytes
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 #
#############################################################
Technical Details
Message-ID: <1992Sep1.194508.10559@sactoh0.sac.ca.us>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sun-barr!decwrl!csus.edu!csusac!sactoh0!sap

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!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