Jump to content

[SOLVED] cronjob help?


darkfreaks

Recommended Posts

to my knowledge a cron executes a php script

 

No, cron is a *nix program designed to schedule the execution of *nix commands (not just php) at a given interval.

 

Cron itself doesn't actually execute the commands, but the specified interpreter does.

 

It is likely you need to tell cron to execute your script using the php interpreter, otherwise it will attempt to use the default shell (usually bash).

would this work???

 

 

/home/soutlnet/public_html/main/right.tpl>>/dev/null

 

 

1) You aren't running it through PHP. Cron isn't directly involved with PHP at ALL.

 

2) Don't APPEND output to /dev/null, just redirect it.  I mean, you probably can append it, but you should just use one >.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.