B
Bigmac Turdsplash
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
}
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
}