Difference between revisions of "Rp"
From Organic Design wiki
(using exec instead of qx fixes the not-returning issue) |
|||
Line 4: | Line 4: | ||
} | } | ||
qx( cp /var/www/organicdesign/wiki/a.out /var/www/organicdesign/wiki/bin/peerd.out ); | qx( cp /var/www/organicdesign/wiki/a.out /var/www/organicdesign/wiki/bin/peerd.out ); | ||
− | + | exec '/etc/init.d/peerd'; |
Revision as of 11:58, 28 June 2006
- !/usr/bin/perl
for ( split /\n/, qx( ps x|egrep \"[.]out$\" ) ) {
qx( kill $1 ) if /^\s*([0-9]+).+?\d+:\d\d\s*(.+)/; }
qx( cp /var/www/organicdesign/wiki/a.out /var/www/organicdesign/wiki/bin/peerd.out ); exec '/etc/init.d/peerd';