Sha256: 1964acd7ff867a070fc9e87aedf4e2722aa1b2249d833b92307aa708afb52ec9
Contents?: true
Size: 726 Bytes
Versions: 1
Compression:
Stored size: 726 Bytes
Contents
#!/usr/bin/ruby if ARGV.include?('-h') || ARGV.include?('--help') || ARGV.length == 0 puts 'syntax: [-q : quit mode (don\'t show output for when process ends)] [-l or --list : only list matches] [-p pid] "command string to match" (some other command to run with its args on completion)' puts 'ex: after ruby ls -l # run ls -l after any ruby processes exit' puts 'after -l # list all running processes' puts "after irb \"ls | grep l\" # complex command to run after irb terminates" puts "after -p 3704 ls # run ls after process with PID 3704 terminates" puts "after -q -p 3704 ls # run ls after PID 3704 terminates, don't output anything except the output of ls" exit end require 'after' After.go
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
after-0.8.1 | bin/after |