The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
cronjob wiz83 UNIX for Dummies Questions & Answers 1 01-24-2008 10:47 PM
Solaris 10 apache2 (how to stop the restarter) parmars UNIX for Dummies Questions & Answers 7 02-14-2007 01:17 AM
cron and crontab Perderabo Answers to Frequently Asked Questions 0 04-04-2004 12:29 PM
cron/crontab not working ezekiel61 UNIX for Dummies Questions & Answers 2 02-05-2003 03:59 AM
Cronjob gerwhelan Shell Programming and Scripting 4 12-14-2001 02:17 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-05-2008
Registered User
 

Join Date: Mar 2008
Posts: 1
Cronjob Crontab Cron Restarter Help

Hello.

I'd like to know how to make a simple restarter using cron. I made something like this:

"* * * * * root home/..(full path)/file"

But it doesn't work. How can I do that or how to make restarter of the application in other way?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-05-2008
Smiling Dragon's Avatar
Disorganised User
 
Join Date: Nov 2007
Location: New Zealand
Posts: 709
Quote:
Originally Posted by ArtuDitu View Post
"* * * * * root home/..(full path)/file"
Presuming you mean:
Code:
* * * * * /full/path/to/script.sh
then that should be ok. What do you mean by 'it doesn't work'?

Using cron for this is a bit gross though as it will contribute towards the system beating.
A while loop with a sleep achieves the same thing without the beating.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:01 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0