after 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +3 -0
- data/VERSION +1 -1
- data/bin/after +3 -2
- data/lib/after.rb +1 -1
- metadata +1 -1
data/ChangeLog
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.4
|
data/bin/after
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
if ARGV.include?('-h') || ARGV.include?('--help') || ARGV.length == 0
|
4
4
|
puts 'after: the command to run things after an external process terminates'
|
5
|
-
puts 'syntax: after [-q] [-l | --list] ([-p (pid1 | pid1,pid2,pid3)] | "command string to match") command to run after it and its args'
|
5
|
+
puts 'syntax: after [-q] [-l | --list | -ls] ([-p (pid1 | pid1,pid2,pid3)] | "command string to match") command to run after it and its args'
|
6
6
|
puts ' -q : quiet mode (don\'t show output for when process ends)'
|
7
7
|
puts ' --list : only list matches, don\'t actually wait for them'
|
8
8
|
puts " \"command string to match\" like ruby.exe or irb : match all processes by name and arguments"
|
@@ -14,7 +14,8 @@ if ARGV.include?('-h') || ARGV.include?('--help') || ARGV.length == 0
|
|
14
14
|
puts 'after ruby "ls -l" # same'
|
15
15
|
puts 'after -l # list all running processes'
|
16
16
|
puts 'after -l ruby # list all running processes that have ruby in their executable name or arguments'
|
17
|
-
puts
|
17
|
+
puts 'after -ls ruby # same as above'
|
18
|
+
puts "after irb \"ls | grep l\" # complex command to run after irb terminates (runs $ ls | grep l)"
|
18
19
|
puts "after -p 3704 ls # run ls after process with PID 3704 terminates"
|
19
20
|
puts "after -q -p 3704 ls # run ls after PID 3704 terminates, don't output anything except the output of ls"
|
20
21
|
puts "after -p 3704,4804 ls # run ls after PIDS 3704, 4804 both terminate"
|
data/lib/after.rb
CHANGED