Rp

From Organic Design wiki
Revision as of 11:11, 1 July 2006 by Nad (talk | contribs) (new "rp" which is in init.d)
  1. !/usr/bin/perl
  1. kill currently running instances of peerd

for ( split /\n/, qx( ps x|egrep \"husk[.]bin$\" ) ) { qx( kill $1 ) if /^\s*([0-9]+).+?\d+:\d\d\s*(.+)/; }

  1. compile husk logging output

qx( date >> /home/peerd/peerd.log ); qx( gcc -o /home/peerd/husk.bin /home/peerd/husk.c 2>> /home/peerd/peerd.log ); exec '/home/peerd/husk.bin &';