Re: Blacklisted Shell Script? --- not quite SOLVED ---
Joe Burpee <[email protected]>
| Newsgroups | gmane.user-groups.linux.ottawa.general |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Jul 04, 2009 at 21:34:41 -0400, Dave wrote:
...
> --- extract from script working directory ---
> -rw-rw-r-- 1 whacker whacker 7 2009-06-29 13:25 running_flag
...
> A snippet of logging the "echo" statements output at one-minute intervals is ...
> ""
> Another pass started
> Line-2
> 1246740301
> Line-before first IF statement
>
> Another pass started
> Line-2
> 1246740361
> Line-before first IF statement
> "".................
>
> Output was "dead" for ....
>
> echo "Line-before second IF statement" >> ~barnett.log
...
> Joe Burpee wrote:
>> if the script is ever interrupted prematurely, running_flag will not be
>> reset to its not-running state. If running_flag is not re-initialized
>> externally, the script will never again do anything.
If I'm reading your above notes correctly Dave, they suggest you have a
stale running_flag file from June 29. If it contains the
script-already-running code ("runnig"?) it would prevent the main if
block from executing. Try
cat running_flag
and if that's the case, overwrite it with the not-running code
("dunnie"?) -- or anything other than "runnig".
Joe
--
OCLUG general discussion list
[email protected]
http://oclug.on.ca/mailman/listinfo/oclug