Need help to run a script on cron | Unix Linux Forums | Shell Programming and Scripting

  Go Back    

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

Need help to run a script on cron

Shell Programming and Scripting

Closed Thread    
Thread Tools Search this Thread Display Modes
Old 11-17-2012
spit spit is offline
Registered User
Join Date: Nov 2012
Last Activity: 21 November 2012, 6:55 PM EST
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Hammer & Screwdriver Need help to run a script on cron

I need someone to help me out to upload script on host but I have problem can anyone help me out ?

Last edited by spit; 11-18-2012 at 10:22 AM..
Sponsored Links
Old 11-18-2012
spacebar's Avatar
spacebar spacebar is offline
Registered User
Join Date: Oct 2009
Last Activity: 2 June 2014, 3:23 PM EDT
Location: spaceBAR Central
Posts: 440
Thanks: 0
Thanked 70 Times in 70 Posts
This is an example of running a job via 'ssh' on a target host:

## minute,  hour   , day of the month, month of the year,  day of the week script
## (0-59)  (0-23)          (1-31)            (1-12)         (0-6 0-Sunday)
00 13 * * 0 ssh user@target_host '. ./.profile;nohup /path/to/ >>/path/to/logs/script_name.log 2>&1 &'

Sponsored Links
Old 11-18-2012
bakunin bakunin is online now Forum Staff  
Bughunter Extraordinaire
Join Date: May 2005
Last Activity: 26 January 2015, 5:15 PM EST
Location: In the leftmost byte of /dev/kmem
Posts: 4,421
Thanks: 47
Thanked 886 Times in 698 Posts
Originally Posted by spit View Post
Hi all I need help to run a script cron on cpanel but I think cron not working on nomral host cron need to run with ssh I think
Moderator's Comments:
You perhaps want us to give you an answer we have thought over well. Please take the time in turn to think about your question as thoroughly as you want your answer.

From what you write i don't even understand what you want to achieve, much less what the problem in doing so is.

Originally Posted by spit View Post
or I can pay for helping me
Moderator's Comments:
And such offers are absolutely, definitely impossible here. Our help is for free or just not happening at all, usually because the originator of a question has disqualified himself by not presenting his problem adequately.

If you insist on getting money involved, contact Neo and ask for ways to support the forum.

The Following User Says Thank You to bakunin For This Useful Post:
Neo (11-18-2012)
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
script in cron didnt run shipra_31 HP-UX 5 12-15-2011 10:21 AM
how to run script? call other script? su to another user? make a cron? instant000 Shell Programming and Scripting 15 11-23-2009 05:01 PM
Need help with a script run by a cron job. klawless UNIX for Advanced & Expert Users 1 10-06-2008 09:41 AM
Help with script - run by cron richo king Shell Programming and Scripting 2 03-05-2008 08:36 PM
Can run script Manually, but not through Cron? MadHatter Shell Programming and Scripting 4 10-19-2005 11:08 AM

All times are GMT -4. The time now is 06:27 PM.