1 eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
2 & eval 'exec perl -S $0 $argv:q'
10 # amount of delay between running the servers
14 $project = "pces/sctp";
16 $L1_DOWN = "tevc -e $project now link1 down &";
17 $L1_UP = "tevc -e $project now link1 up &";
18 $L2_DOWN = "tevc -e $project now link2 down &";
19 $L2_UP = "tevc -e $project now link2 up &";
22 $start_seconds = timelocal
($now->sec, $now->min, $now->hour, $now->mday, $now->mon, $now->year);
24 print_with_time
("L1 UP");
27 print_with_time
("L2 DOWN");
30 select undef, undef, undef, $phasetime;
34 print_with_time
("L2 UP");
38 select undef, undef, undef, $sleeptime / 2;
40 print_with_time
("L1 DOWN");
44 select undef, undef, undef, $sleeptime;
46 print_with_time
("L1 UP");
50 select undef, undef, undef, $sleeptime / 2;
52 print_with_time
("L2 Down");
56 select undef, undef, undef, $sleeptime;
62 $now_seconds = timelocal
($now->sec, $now->min, $now->hour, $now->mday, $now->mon, $now->year);
64 print "@_ at ", $now_seconds - $start_seconds, "\n";