summaryrefslogtreecommitdiff
path: root/contrib/rpbatch.pl
blob: 0f1c50e1c2345d160642bbcbbcf300f637229109 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env perl
#
# Copyright (C) 2003 Shawn Betts
# Execute a sequence of commands read from stdin.

$ratpoison = $ENV{RATPOISON} || 'ratpoison';

while (<>) {
    chomp;
    push @accum, "-c";
    push @accum, "\"$_\"";
}

system ("$ratpoison @accum");