From: Bigmac Turdsplash Date: 2009-09-30T10:45:10+09:00 Subject: if process.exist then . . . ??? im trying to monitor a process, if this process is closed then i want to write a time and date to a logfile... i dont know how to do it but it should be as simple as this... (improper) loop { if process.exist('notepad.exe') then puts 'notepad exist' else my_file = File.new("c:\log.txt", APPEND) my_file.puts "here is the time add date, notepad has been killed" end } -- Posted via http://www.ruby-forum.com/.