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
crontab problem DebianJ UNIX for Advanced & Expert Users 11 05-22-2009 01:56 AM
Crontab problem jess_t03 AIX 3 05-22-2009 01:42 AM
problem with crontab cleansing_flame UNIX for Dummies Questions & Answers 1 01-29-2008 08:02 PM
Problem with crontab cleansing_flame UNIX for Dummies Questions & Answers 3 01-14-2008 04:03 PM
Problem with Crontab Zak UNIX for Dummies Questions & Answers 2 12-20-2005 05:44 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-16-2008
bullz26 bullz26 is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 78
Thumbs down Crontab Problem

Hi All,

I have a crontab entry like this... but it's not runing at all...!

30 0 * * * /health_check/FS.sh > /dev/null

it should run everyday midnight 1:30 AM

is it the problem with that space b/w script and /dev/null ?
  #2 (permalink)  
Old 03-16-2008
bullz26 bullz26 is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 78
Wink Geting such error...?

Subject: Output from "cron" command
Content-Length: 135

Your "cron" job on gws210a056
/health_check/FS.sh >/dev/null

produced the following output:

sh: /health_check/FS.sh: cannot execute


Please help friends...!
  #3 (permalink)  
Old 03-16-2008
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
# chmod +x /health_check/FS.sh

Cheers,
ZB
  #4 (permalink)  
Old 03-16-2008
bullz26 bullz26 is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 78
Unhappy How...?

Hi

Let me know we can execute it every day midnight 1 AM

is it right...?

30 0 * * * /health_check/FS.sh > /dev/null
  #5 (permalink)  
Old 03-16-2008
bullz26 bullz26 is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 78
Thumbs down

Hi All,

When i runnig a script manualy... its working fine...

but when i am trying through cron it not funtioning properly..!

could some one help me....? plz
  #6 (permalink)  
Old 03-16-2008
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Please post the output of the following:
Code:
# su - <user_which_cronjob_runs_as>
$ ls -l /health_check/FS.sh
Cheers,
ZB
  #7 (permalink)  
Old 03-16-2008
bullz26 bullz26 is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 78
Question problem again..!

I had give full permision like chmod -R 777 /health_check

add it in script as well...
Sponsored Links
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 05:43 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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