No it doesn't, that's the problem, you have to sort list of demos by modification time in that folder and move n-1 demos, so last (currently recorded) will stay where it should be.
Kveri Rick Payton wrote: > Awesome, thanks. Does this get around a demo file still being written > to? > > mauirixxx > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Mikael > Pedersen > Sent: Monday, February 02, 2009 12:44 PM > To: Half-Life dedicated Linux server mailing list > Subject: Re: [hlds_linux] voice comms audio recording? > > On Mon, 2 Feb 2009 12:18:38 -1000, you wrote: > > >> Yeah I got those in there. Now I need to make a bash script to compress >> > > >> files and move them to a web directory .... If I only knew bash :/ >> > > I think I can help you there. I made exactly that kind of script, which > is executed regularly by a cronjob. I have the file here: > > /etc/cron.hourly/publishtfdemos > > And it contains this: > > > #!/bin/sh > > for f in /home/tfserver/srcds/orangebox/tf/auto*.dem;do fuser > "$f">/dev/null 2>&1 || mv -f "$f" > /var/www/html/tf2/demos/ >/dev/null 2>&1;done > > for f in /var/www/html/tf2/demos/*.dem;do zip -m -j -9 "$f".zip "$f" > >> /dev/null 2>&1;done >> > > exit 0 > > > > Each block of lines above should be on one line in the file (darned > line-wrap). Adjust the paths to suit your installation. > > Mikael > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlds_linux > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please > visit: > http://list.valvesoftware.com/mailman/listinfo/hlds_linux > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux

