• Post Reply Bookmark Topic Watch Topic
  • New Topic

crontab  RSS feed

 
shivani anand
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've sceduled to restart tomcat in crontab
I did
0 2 * * fri /abc/xyz.sh > /dev/null 2 >/a/b.out
but I cannot see anything in b.out. What does /dev/null 2 exactly does?
thanks,
sa
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
">/dev/null" just throws any "standard" output away.
"2>/a/b.out" sends error output to a file /a/b.out
By the way do you really mean "fri" on that line?
I am used to using a numerical day of week; 0 being
Sunday.
-Barry
[ October 11, 2002: Message edited by: Barry Gaunt ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!