Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I build in my Solaris machine new script

Script name: ( this script located under /var directory

I want to activate this script every 12:00 at night by the crontab

Please advice what to write in my crontab in order to run the /var/ every night at 12:00 hour

my crontab:

  crontab -l
  #ident  "@(#)root       1.21    04/03/23 SMI"
  # The root crontab should be used to perform accounting data collection.
  10 3 * * * /usr/sbin/logdm
  15 3 * * 0 /usr/lib/fs/nfs/nfrind
  30 3 * * * [ -x /usr/lib/gs/gred_clean ] && /usr/lib/gs/gin_clean
share|improve this question

12:00 at night is 00:00 on the 24 hour clock.

So, you would add a line like:

0 0 * * * /var/

to your crontab.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.