diff options
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"); |