Hackfut Security File Manager
Current Path:
/opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/systemu-2.5.2/samples
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.4.0
/
gems
/
systemu-2.5.2
/
samples
/
📁
..
📄
a.rb
(394 B)
📄
b.rb
(406 B)
📄
c.rb
(286 B)
📄
d.rb
(190 B)
📄
e.rb
(238 B)
📄
f.rb
(498 B)
Editing: f.rb
# # if a block is specified then it is passed the child pid and run in a # background thread. note that this thread will __not__ be blocked during the # execution of the command so it may do useful work such as killing the child # if execution time passes a certain threshold # require 'systemu' looper = %q( ruby -e" loop{ STDERR.puts Time.now.to_i; sleep 1 } " ) status, stdout, stderr = systemu looper do |cid| sleep 3 Process.kill 9, cid end p status p stderr
Upload File
Create Folder