Run cron on ssh, error message

how to run the script below

* * * * * /usr/bin/wget -O - -q "http://example.com/scheduler/cron"

when i run the script, the error message show as below:

$ * * * * * /usr/bin/wget -O - -q "http://website.com/?q=admin/settings/scheduler/cron"
-sh: CHANGELOG.txt: not found
$ 30 15 * * * /usr/bin/wget -O - -q "http://website.com/?q=admin/settings/scheduler/cron"
-sh: 30: not found

can the script above run in ssh (using putty software)

The first five numbers and asterisks are for cron. You don't 'run' that part

If you want to run it with cron, type...

crontab -e

to edit your crontab file and paste the whole line there.

If you want to run it from the command line, remove the * * * * * or 30 15 * * *.

are you mean like this?

crontab -e /usr/bin/wget -O - -q "http://example.com/scheduler/cron

how to set time for it?

No, just

/usr/bin/wget -O - -q "http://example.com/scheduler/cron"

Sorry, I missed some text in my previous post. Updated.

If you want to run it with cron, type...

crontab -e

to edit your crontab file and paste the whole line there.

The first five fields (* * * * *, etc) tells cron when to run it. You don't need that on the command line.

but i need the server run cron every 10minutes, how to set this?

Why didn't you just ask that from the beginning?

man -s5 crontab

just for confiramtion
after run
/usr/bin/wget -O - -q "http://example.com/scheduler/cron"

than run

man -s5 crontab

is that correct?

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.

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

when running man -s5 crontab

when running crontab -e

what so i do for next step?

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.:slight_smile:

IMO, you are too stupid to own a computer, so no, I can't.