[Wolves] Cron question

chris procter chris-procter at talk21.com
Tue Jun 21 18:26:17 BST 2005


> 2)If you start to tar a bunch of files in a
> directory, then add files to 
> directory once tar process has begun, are these
> files tarred or
> left alone?

I'm pretty certain they are tarred, try 
tar cf test.tar .

If it runs succcessfully then they aren't tarred, if
it fills your harddisk and them bombs complaining
about disk space they are (it tars itself so the more
it adds the more it needs to add :-)

> so should
> 00,30 tar job
> 00,30 streamer job
> 
> result in the tar operation being completed, before
> streamer starts , or 
> not?

No. Cron forks new processes so the machine effectivly
runs 
tar job &
streamer job &

So both run in parallel (or as near as a uni-processor
machine can get), hooray for multi-tasking operating
systems!

> ideas?

00,30 tar job; streamer job

Should run the two commands in one process. Or stick
them both in a file and run that from cron.

As sparkes hinted there may be clever answers that get
streamer to write to a random directory so tar can tar
the old one while new pictures are being created, but
I know nothing about streamer and its late

chris



	
	
		
___________________________________________________________ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com



More information about the Wolves mailing list