Image

Imagecepcion wrote in Imagelinux

hourly restarting?

I want to write a bash script which logs tcpdump output to a different file every hour (yyyymmddhh.log, or something like that). I was monkeying around with having cron find the process and kill it each time but it isn't working out. Can it be done with cron, or should I try to code the timing into the script, or is there some other option I can take?