From: Chris Donhofer Date: 2006-09-24T00:55:14+09:00 Subject: Re: catching process output (Kernel#system) hi! Paul Lutus wrote: > > By not using "Kernel::system()". > > To get the error status of a completed process: > > err = system("command") > > To get the output from a process: > > output = `command` > > thx! >>furthermore, is there a tutorial describing how to use the system >>function the best way? > > > That depends on what you think is the best way. Maybe you could describe the > application you have in mind. > im trying to create a simple application that does the following: 1. get a list of files(media files) in a certain directory 2. for every file: a. get the filetype b. choose the appropriate converter (f.i. ffmpeg, swf2flv) c. convert the file d. continue 3. write process output to logfile cheers, chris