I'm trying to use fork and exec to kick-start other processes on a Linux box. As with Win32::Process::Create, I'd like to somehow specify or point towards a working directory for the new process since some data files are expected via relative path. I actually tried passing a compound command such as "cd /home/otbsaf/OTBSAF/src/OTBSAF;./otbsaf" to exec to hope a directory switch would happen as I intended. The new process displays its current directory and the directory shown was that from which the perl script was running, not the hoped for otbsaf.
The book I have makes reference to that fact that options can be passed to the exec command as a 2nd parameter, but does not list options besides the "-ls" switch. Might the exec command have an option for specifying a working directory? Or might some other perl/Linux technique be applicable? Any insight will be gratefully accepted and greatly appreciated. Thanks, Darren Peterson Software Engineer, Amtec Corp. CSTE-DTC-AC-T-MS U.S. Army Aviation Technical Test Center Modeling & Simulation Division Bldg 30604, Cairns Army Airfield Fort Rucker, Alabama 36362 phone: 334-255-8226 fax: 334-255-8438