From: Nuralanur@... Date: 2006-08-02T05:03:47+09:00 Subject: 'system' and windows and an external program -------------------------------1154462619 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Dear all, I have a Ruby program that does some lengthy calculations and outputs a matrix, which I'd like to write to a Postscript or PDF using Latex file for readability (and re-usability in some lengthier text). I have managed to put together the Latex code using Ruby, so I can start Latex using the system command system('latex ' + filename[0...filename.index('.')] + '.tex') This works. To turn it into a Postscript file, I need another command system('dvips ' + filename[0...filename.index('.')]) This works also and creates a new Postscript file. But now, I'd like to open a Ghostview window to show the output in the Postscript file automatically from the same Ruby script that did all the previous work and I'd like Ghostscript to stay open even after the Ruby program finishes. I've tried system('gsview32 ' + filename[0...filename.index('.')] + '.ps'), but here nothing happens - no Ghostscript window pops up and nothing else happens. So I still need to call Ghostscript by hand. How could this problem be solved in Windows XP? Is the solution any different under Linux ? Thank you very much! Best regards, Axel -------------------------------1154462619--