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).

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.