diff options
author | sabetts <sabetts> | 2003-10-08 08:29:58 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2003-10-08 08:29:58 +0000 |
commit | f6780b3be38416b4a533de850f546c6f8aa8c5b8 (patch) | |
tree | 2de67d7be51716cf4aa8c3a5022c2fa3936a3cfb /contrib/rpbatch.pl | |
parent | 48d7e5cfc0deb8016d86d123f483425672c2d653 (diff) | |
download | ratpoison-f6780b3be38416b4a533de850f546c6f8aa8c5b8.zip |
*** empty log message ***
Diffstat (limited to 'contrib/rpbatch.pl')
-rw-r--r-- | contrib/rpbatch.pl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/rpbatch.pl b/contrib/rpbatch.pl new file mode 100644 index 0000000..6fce57f --- /dev/null +++ b/contrib/rpbatch.pl @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# Copyright (C) 2003 Shawn Betts +# Execute a sequence of commands read from stdin. + +$ratpoison = $ENV{RATPOISON} or die "Where is ratpoison?"; + +while (<>) { + chomp; + push @accum, "-c"; + push @accum, "\"$_\""; +} + +system ("$ratpoison @accum"); |