From: Joel VanderWerf Date: 2008-07-27T03:10:18+09:00 Subject: Re: if expression or muffle an exception? aidy wrote: > begin > system("taskkill /im firefox.exe /f") > rescue > #preventing exception if firefox process does not exist > end Kernel#system doesn't raise exceptions. Check the return value and $?. ---------------------------------------------------------- Kernel#system system(cmd [, arg, ...]) => true or false ------------------------------------------------------------------------ Executes _cmd_ in a subshell, returning +true+ if the command was found and ran successfully, +false+ otherwise. An error status is available in +$?+. The arguments are processed in the same way as for +Kernel::exec+. system("echo *") system("echo", "*") _produces:_ config.h main.rb * -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407