Welcome Guest, Not a member yet? Register   Sign In
cron job problems
#11

[eluser]emperius[/eluser]
unfortunately i cant use wget at crontab Sad
#12

[eluser]thunder uk[/eluser]
[quote author="emperius" date="1195074749"]unfortunately i cant use wget at crontab Sad[/quote]

Oh, ok.

How about a regular shell script?

Code:
#!/bin/sh

wget http://www.mysite.com/index.php/cron/index

Save as mycronscript.sh (or whatever!? Wink )

Chmod 755 ./mycronscript.sh

test the script (ie ./mycronscript.sh [ENTER] -> should print the results of the wget op on the command line)

and make a crontab entry to call ./mycronscript.sh as appropriate..

???
#13

[eluser]emperius[/eluser]
script works but cron doesnt Sad(((
#14

[eluser]thunder uk[/eluser]
Oh, then I guess you need to sort out with your hosting provider why the cron on your box isn't working. Undecided
#15

[eluser]emperius[/eluser]
I get an message

wget: not found

but a shell script by itself works fine
#16

[eluser]emperius[/eluser]
I tried to enter full path to wget and everything is working Smile

thank you thunder Smile




Theme © iAndrew 2016 - Forum software by © MyBB