Run cron on ssh, error message


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Run cron on ssh, error message
# 8  
Old 11-01-2012
No, that isn't correct.

I'm suggesting that you read the manual page for crontab so you can understand what you have to do.

Once you understand it, run crontab -e and add a line to run the job at the desired time.

i.e.
Code:
0,10,20,30,40,50 * * * * /usr/bin/wget -O - -q "http://example.com/scheduler/cron"

This User Gave Thanks to Scott For This Post:
# 9  
Old 11-01-2012
Quote:
Originally Posted by Scott
No, that isn't correct.

I'm suggesting that you read the manual page for crontab so you can understand what you have to do.

Once you understand it, run crontab -e and add a line to run the job at the desired time.

i.e.
Code:
0,10,20,30,40,50 * * * * /usr/bin/wget -O - -q "http://example.com/scheduler/cron"


when running man -s5 crontab
Image



when running crontab -e
Image

what so i do for next step?
# 10  
Old 11-01-2012
Before we go any further I need to know a couple of things.

1. What are you really trying to accomplish?
2. Who for (the 'who' can be you, that's OK - but then the question is 'why')?
# 11  
Old 11-01-2012
Quote:
Originally Posted by Scott
Before we go any further I need to know a couple of things.

1. What are you really trying to accomplish?
2. Who for (the 'who' can be you, that's OK - but then the question is 'why')?

1. What are you really trying to accomplish?
i need to set the url below
IANA — Example domains
to run cron every 5 minute

2. Who for (the 'who' can be you, that's OK - but then the question is 'why')?
i am webdesign, set for our own company. we dont have programmer, so it hard for me to do it because i have no any knowledge for ssh.


can you list our step by step, thank you very much.Smilie
# 12  
Old 11-01-2012
IMO, you are too stupid to own a computer, so no, I can't.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cron job - Need to run Cron every quarter at particular time

Hi, 1) If some job supposed to run on 1st of every month at 7 AM In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day? 2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct) And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies

2. Shell Programming and Scripting

Who -u gives different output if run from cron than if run from terminal?

If I run 'who -u' interactively or from a script invoked through bash in a tty on my Ubuntu 12LTS box I get an output like this: testuser pts/0 Dec 9 02:32 . 2163 (host.xx.yy) running the same through cron I get: testuser pts/0 2012-12-09 02:32 00:05 2163... (2 Replies)
Discussion started by: latimer
2 Replies

3. UNIX for Advanced & Expert Users

SSH public key failing without error message

My password-free ssh connection has worked in the past but has stopped working and I can't get it going again. The files in .ssh on both source and target are set to 600: drwx------ 2 ingres 1024 Mar 2 13:57 . drwxr-xr-x 25 ingres 2048 Mar 29 09:38 .. -rw------- 1 ingres ... (9 Replies)
Discussion started by: Catullus
9 Replies

4. Shell Programming and Scripting

ssh run script error

Hello when try to excute the following ssh -l pla 10.287.60.55 vis_fil vis_fil not found. but it works fine when login to the server. can you help me run this command in one online because i will add later to shell script regards (1 Reply)
Discussion started by: mogabr
1 Replies

5. Shell Programming and Scripting

ssh - run shell script - Error

Hi Team, I am trying to run shell script from one server to another server with below command. ssh abc@pqr.america.com /tmp/test.ksh But, it gives below error. Can someone help me what is the issue? exec(): 0509-036 Cannot load program ssh because of the following errors: ... (3 Replies)
Discussion started by: ace_friends22
3 Replies

6. Solaris

Shell Script gives error when run through cron job.

Hi, The following shell script runs without any problem when executed manulally. USED=$(df -h /arch | tail -1 | awk '{print $5}' | cut -d '%' -f 1) if then find /arch/AUBUAT/ -type f -mtime +0 | xargs rm find /arch/AUBMIG/ -type f -mtime +0 | xargs rm fi But the same gives below... (6 Replies)
Discussion started by: ksadiq79
6 Replies

7. UNIX for Dummies Questions & Answers

Can't run the archiver executable error message

I am using the xarchiver on a xfce environment. When compressing a directory using xarchiver which has both files and subdirectories, I encounter the following error: Can't run the archiver executable: Failed to execute child process "tar" (Argument list too long) Does anyone know exactly what... (0 Replies)
Discussion started by: figaro
0 Replies

8. Shell Programming and Scripting

Cron job giving error while running SSH command

Hi All, The script which i am using to SSH to remote server is working fine when i run is using ./ but when cron runs it it gives error that "ssh: not found" please help!!! (3 Replies)
Discussion started by: visingha
3 Replies

9. UNIX for Dummies Questions & Answers

cron is already running message...

I am trying to schedule a new job but I get # cron # ! cron is already running Mon Jul 11 08:28:51 WAT 2005 ! ******* CRON ABORTED ******** Mon Jul 11 08:28:51 WAT 2005 I tried the -l and -e switches but I get the same message I am using HP-UX Thanks. (3 Replies)
Discussion started by: GNMIKE
3 Replies

10. UNIX for Dummies Questions & Answers

error message when trying to run prstat

I get the following error message when I tried to run prstat on my unix box: wolf@SLK1 10> prstat prstat: cannot find/execute "prstat" in ISA subdirectories *Basically I was trying to run a prstat on one box but I could see it didn't have the process so I copied it from another box and... (1 Reply)
Discussion started by: fusion99
1 Replies
Login or Register to Ask a Question