The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
problem with cron job solne SUN Solaris 7 01-18-2008 08:57 PM
cron problem! blowtorch UNIX for Advanced & Expert Users 4 03-08-2006 01:12 AM
Problem with cron jhansrod AIX 2 11-25-2005 04:30 PM
cron problem VPN UNIX for Dummies Questions & Answers 2 04-16-2004 07:27 AM
Cron Problem Raiden Shell Programming and Scripting 4 11-16-2003 07:00 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 06-16-2005
redlotus72 redlotus72 is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 69
Cron problem

Hi,
I want to run my shrip for every 30 min..
if i enter crontab -l i am getting following..

00,10,20,30,40,50 * * * * /home/arbuser/temp2/perform/per.sh
00,15,40,35,50 * * * * sh home/arbuser/temp2/perform/per.sh

if I enter like this :

ps -ef |grep cron
root 311454 1 0 Jun 11 - 0:03 /usr/sbin/cron
arbuser 426042 1634480 0 15:12:13 pts/3 0:00 grep cron


but my per.sh is not running..any idea?
  #2 (permalink)  
Old 06-16-2005
tom_xx_hu@yahoo tom_xx_hu@yahoo is offline
Registered User
  
 

Join Date: May 2005
Posts: 40
Why would you expect it be running at any instant? It is started by cron at the instants specified. For how long it stays? Depends. Only you know. Or it errored out.

BTW, the crontab does not seem to be consistent with what you said "for every 30 min". Double chk. Tom
  #3 (permalink)  
Old 06-17-2005
rahul123_libra rahul123_libra is offline
Registered User
  
 

Join Date: May 2005
Posts: 46
CronTab Problem

Try this

30 * * * * < script name >


This will run ur script every 30 mins.
  #4 (permalink)  
Old 06-17-2005
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,233
Quote:
Originally Posted by rahul123_libra
Try this

30 * * * * < script name >


This will run ur script every 30 mins.
No it won't, that will run the script at 30 minuts past each hour.

0,30 * * * * < script name >
will run the script every 30 minutes, although I personally would use something more like

7,37 * * * * < script name >
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 08:48 AM.


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