Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I build in my Solaris machine new script

Script name: send_brd_msg.sh ( 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/send_brd_msg.sh 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

1 Answer 1

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

So, you would add a line like:

0 0 * * * /var/send_brd_msg.sh

to your crontab.

share|improve this answer

Your Answer

 
discard

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.