public
Description: OneBody is web-based software that connects community members, especially churches, on the web.
Homepage: http://beonebody.com
Clone URL: git://github.com/seven1m/onebody.git
Use system() instead of IO.popen()
Tim Morgan (author)
Tue Aug 19 13:04:47 -0700 2008
commit  a4008e480741d86bf97da757f627e20856c6db33
tree    db1088c25976d8de66ee08649d920e1d539808c7
parent  3b481e5eb92307e744d4c1db2b81dd90678d7aa9
...
73
74
75
76
77
 
78
79
80
...
73
74
75
 
 
76
77
78
79
0
@@ -73,8 +73,7 @@ class Scheduler < Daemon::Base
0
     puts "#{task.name} (#{task.interval})"
0
     puts command
0
     puts "Running at #{timestamp}..."
0
-    cmd = IO.popen(command, "w+"); cmd.close_write
0
-    result = cmd.read
0
+    result = system(command)
0
     puts "Finished at #{timestamp}"
0
     puts 'Output:'
0
     puts result.to_s.strip.any? ? result : '(blank)'

Comments