| 1 | #!/usr/local/bin/perl -w | ||||||||||
| 2 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | 2 | my( $done_file ) = @ARGV; | |||||||||
| 5 | |||||||||||
| 6 | 2 | ▶ | die "usage: $0 done_file" if !defined $done_file; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 7 | |||||||||||
| 8 | # Program: | ||||||||||
| 9 | 2 | ▶ | use App::Daemon qw( detach ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 2 | detach(); | |||||||||
| 11 | 1 | sleep(1); | |||||||||
| 12 | |||||||||||
| 13 | 1 | ▶ | open FILE, ">", $done_file or die; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | 1 | print FILE "Done\n"; | |||||||||
| 15 | 1 | close FILE; | |||||||||