[X-Unix] virex cron

Stroller MacMonster at myrealbox.com
Sun Mar 28 03:49:04 PST 2004


On Mar 27, 2004, at 10:05 pm, lists3-200402 wrote:

> does anyone know how to append a date to a summary for a virex cron 
> job?... i checked the virex 7.2.1 manual and it doesn't seem to have a 
> switch for that. here's my command:
>
> /usr/local/vscanx/vscanx --move /SERVER/VOLUME/VIREX_OUT/QUARANTINE 
> /SERVER/VOLUME/SHARE --recursive --unzip --atime-preserve 
> --ignore-links  --summary >> /SERVER/VOLUME/VIREX_OUT/SUMMARY.TXT

I think this should do it:
   /usr/local/vscanx/vscanx --move /SERVER/VOLUME/VIREX_OUT/QUARANTINE 
/SERVER/VOLUME/SHARE --recursive --unzip --atime-preserve 
--ignore-links  --summary >> /SERVER/VOLUME/VIREX_OUT/SUMMARY.TXT && 
echo "Finished at:"  >> /SERVER/VOLUME/VIREX_OUT/SUMMARY.TXT && date >> 
/SERVER/VOLUME/VIREX_OUT/SUMMARY.TXT

For the hard-of-wrapping, that's all one line. The "&&" means "wait 
until the previous command is finished and then run the command that 
follows". I would personally prepend the date to the file, but you pays 
your money & takes your choice.

Stroller.



More information about the X-Unix mailing list