From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,a83f48e38df3b490,start X-Google-Attributes: gidf7344,public X-Google-Thread: fc7fa,a83f48e38df3b490,start X-Google-Attributes: gidfc7fa,public From: "Carl J. Lambrecht" Subject: Problem with C function 'system()'... Date: 1995/11/27 Message-ID: #1/1 X-Deja-AN: 120398423 organization: Syracuse University, Syracuse NY, USA x-sender: cjlambre@forbin.syr.edu content-type: TEXT/PLAIN; charset=US-ASCII mime-version: 1.0 newsgroups: comp.sys.vms,comp.os.vms I am developing an application in C on a VAX 4100 running OpenVMS 6.1, and I am having problems with using the system() function. At one point, I use it to get a directory, and bring filenames into the program. That works fine. However, I can not seem to get it to execute the following: sysret=system(strcat("def sys$output ",redir_file)); The C code compiles, links, executes fine, but the command does not process during run time. Any ideas? Can I get around this by using getenv() and putenv()? If so, how do I do this? Any answers are most appreciated. Please email me at work : clambrecht@kinesisinc.com Thanks in advance... -Carl Lambrecht Kinesis Computing, Inc.