The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 and shell scripting languages 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-25-2008 02:47 AM
Solaris 10 apache2 (how to stop the restarter) parmars UNIX for Dummies Questions & Answers 7 02-14-2007 05:17 AM
cron and crontab Perderabo Answers to Frequently Asked Questions 0 04-04-2004 04:29 PM
cron/crontab not working ezekiel61 UNIX for Dummies Questions & Answers 2 02-05-2003 07:59 AM
Cronjob gerwhelan Shell Programming and Scripting 4 12-14-2001 06:17 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-05-2008
ArtuDitu ArtuDitu is offline
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?
  #2 (permalink)  
Old 03-05-2008
Smiling Dragon's Avatar
Smiling Dragon Smiling Dragon is offline Forum Advisor  
Disorganised User
  
 

Join Date: Nov 2007
Location: New Zealand
Posts: 922
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0