From: Jim Crossley Date: 2006-10-06T20:40:29+09:00 Subject: Re: system() and changing (path-)environment Hi... Karl Voit writes: [...] > shellscript.ksh calls the other scripts using relative path > statements but when I use system("path2/shellscript.ksh"), > shellscript.ksh is started with the rubyscript.rb-directory context > and within shellscript.ksh, the call of "./anotherscript.ksh" or > "path3/last_script.ksh" results in "script not found here you > fool!". [...] > What do you suggest? Try Dir.chdir(path) prior to the system calls, maybe? Jim