mmartin has asked for the wisdom of the Perl Monks concerning the following question:
Died at ./myScriptname line 58, <$fh> line 119.
$SIG{TERM} = $SIG{INT} = $SIG{QUIT} = $SIG{HUP} = sub { die; };
END { ### This will get the Duration from the starting Execution time # till the time the process was stopped... $DURATION = duration(time() - $^T); my $duration_str = "*The myScriptname Daemon ran for $DURATION\n"; push @data, $duration_str; ### Close the LOG_FILE by untie'ing the array @data from the file: untie @data; ### PID File: Name and Location... my $PID_FILE = "/var/run/myScriptname.pid"; ### If the PID file exists, then we will remove it: if (-e $PID_FILE) { unlink $PID_FILE; #-->Deletes files from the given list... } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Meaning of this Filehandle Error?
by Anonymous Monk on Oct 22, 2014 at 22:11 UTC | |
by mmartin (Monk) on Oct 22, 2014 at 22:17 UTC | |
by dave_the_m (Monsignor) on Oct 23, 2014 at 12:37 UTC | |
by mmartin (Monk) on Oct 23, 2014 at 15:11 UTC | |
|
Re: Meaning of this Filehandle Error?
by mmartin (Monk) on Oct 23, 2014 at 15:51 UTC | |
by Laurent_R (Canon) on Oct 23, 2014 at 17:56 UTC | |
by mmartin (Monk) on Oct 24, 2014 at 22:23 UTC | |
by Laurent_R (Canon) on Oct 24, 2014 at 23:39 UTC |