Need help to run a script on cron


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Need help to run a script on cron
# 1  
Old 11-17-2012
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..
# 2  
Old 11-18-2012
This is an example of running a job via 'ssh' on a target host:
Code:
## 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/script_name.pl >>/path/to/logs/script_name.log 2>&1 &'

# 3  
Old 11-18-2012
Quote:
Originally Posted by spit
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:
Mod Comment 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.


Quote:
Originally Posted by spit
or I can pay for helping me
Moderator's Comments:
Mod Comment 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.


bakunin
This User Gave Thanks to bakunin For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Run script no more than twice daily WITHOUT cron

Can I run a script no more than twice a day without using cron? Maybe create a file when script is first run and check its date? (7 Replies)
Discussion started by: drew77
7 Replies

2. UNIX for Advanced & Expert Users

Script run by cron gives no output

Hi All, I have a script which checks the status of HP Smart Array & then emails me the output. The script run fine when executed manually but I receive no output when configured in a cron job. The script is below: hpacucli ctrl slot=3 show config | mail -s "ARRAY STATUS-`date`"... (6 Replies)
Discussion started by: coolatt
6 Replies

3. HP-UX

script in cron didnt run

Hi, I have script in the cron which run at predefined time everyday. If the script fails then we get the mail and a log is created. But last night the script didnt run. If the script is even started it creates log so it seems the script never ran. It has never happened before. Th... (5 Replies)
Discussion started by: shipra_31
5 Replies

4. Shell Programming and Scripting

how to run script? call other script? su to another user? make a cron?

Good morning. I am searching for "how-to"'s for some particular questions: 1. How to write a script in HP-UX 11. 2. How to schedule a script. 3. How to "call" scripts from the original script. 4. How to su to another user from within a script. This is the basics of what the... (15 Replies)
Discussion started by: instant000
15 Replies

5. Shell Programming and Scripting

Script behaves different when run from cron vs. manually

Hey all, Just wanted to get some input on a script I am using to import files into a MySQL database. The process is pretty simple: my main server exports these files and FTPs them. I have a script that FTPs them to the machine running that runs this script. The FTP script runs without issue... (2 Replies)
Discussion started by: billtwild
2 Replies

6. UNIX for Advanced & Expert Users

Need help with a script run by a cron job.

Hi, new to this forum and not sure if this is the right place to post. I'm new to cron jobs and scripts, and I need some help with a script to be used with a cron job. I already have a bot set up at a certain website address and need a script that the cron job will load every day that tells it to... (1 Reply)
Discussion started by: klawless
1 Replies

7. Shell Programming and Scripting

Help with script - run by cron

Hello, I have a shell script that runs every minute to process incoming files delivered externally via SFTP to a directory. Basically the script works and processes the files however I get an error when a new file is delivered into the directory. Please see my script below. A new file is... (2 Replies)
Discussion started by: richo king
2 Replies

8. UNIX for Advanced & Expert Users

reg no of instances of a script run using cron

I have the below code in a file called test.ksh and it is scheduled using cron forevery 5 min. when i see the cron out file for every 5 min it showing the no of process running are 2. same thing when i implement in another script which contains other code along with the below code , it showing as... (1 Reply)
Discussion started by: kamesh83
1 Replies

9. Shell Programming and Scripting

Script to run 100jobs at a time from cron

here is my requirement. When ever the customer visitis the sore we want to look his information by his phone no. From the database side we are putting all the information in session pools. for example if we have 500 stores and at any second one customer is at the counter we can get atlease 500... (2 Replies)
Discussion started by: skneeli
2 Replies

10. Shell Programming and Scripting

Can run script Manually, but not through Cron?

Hi all, I have a main script (called OracleCleanup) that runs some sql queries. that runs off a wrapper script which contains the sources for the login information and and JOB_HOME (the script is below). When I schedule this job in the cron the log says that it cannot open my list file, which... (4 Replies)
Discussion started by: MadHatter
4 Replies
Login or Register to Ask a Question