On Tue, Jan 15, 2002 at 11:23:53AM +1100, Stephan Borg wrote: > Howdy all, > > This one if for you dedicated bash scripters. > > I have a script, which I am happy to send to you > off-list, which basically waits for flag-files (using > touch) and do actions and exec programs. > > Anyway, this all works perfectly for up to 7 days, > when eventually it just stops. > > I run the script on two different PCs, and both suffer > the same problem. > > I find, that I can't CTRL-C the script in this stopped > state, but I can CTRL-Z it and then 'kill %1'. > > This is a 'ps aux' output of the process: > USER PID %CPU %MEM VSZ RSS TTY STAT START > TIME COMMAND > root 18605 62.0 1.2 2240 1272 pts/0 R 2001 > Jan07 7051:44 sh ./slave.sh > > You'll notice, its not a zombie, its still using CPU > and its not a memory leak. > > I've run out of ideas, so it over to you guys!
Sounds like you might be doing a tail -f or otherwise have open for reading a file that gets rotated. When you do a mv on a file, the file descripter will still be pointing to the same file (filename change and all), not the new one in its place. Pete -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
