• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Help with setting up cron job for CGJobMgr
PostPosted: Sun Aug 19, 2012 3:10 pm 
Offline
Forum Members
Forum Members

Joined: Sat Aug 06, 2011 3:17 pm
Posts: 10
I'm trying to set up a cron job on my host, as required by CGJobMgr (v. 1.2.6.1).

Sysinfo of the cmsms installation involved is attached.

The host control panel allows me to specify the cron job with a full path to a script and choosing a polling interval from presets.

The URL provided by CGJobMgr http://www.mysite.com/CGJobMgr/process and its path equivalent, /home/sites/mysite.com/public_html/CGJobMgr/process, both generate an error:

"Can't find [url/path]. Please check that you have the correct location".

Any ideas on what path/command I should be using? The host seems to be expecting a hard-coded reference to a script file or a single line command.


Attachments:
sysinfo19Jul.txt [2.38 KiB]
Downloaded 7 times
Top
 Profile  
 
 Post subject: Re: Help with setting up cron job for CGJobMgr
PostPosted: Sun Aug 19, 2012 3:13 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 6576
Location: Fernie British Columbia, Canada
See the help it provides an example using wget...

But the actual command will be host dependant.

_________________
Follow me on twitter
--
if you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
----------------
Don't make me angry..... you won't like me when I'm angry....


Top
 Profile  
 
 Post subject: Re: Help with setting up cron job for CGJobMgr
PostPosted: Sun Aug 19, 2012 4:14 pm 
Offline
Forum Members
Forum Members

Joined: Sat Aug 06, 2011 3:17 pm
Posts: 10
Hi, thanks for the prompt response...

The example command in the module Help includes an interval, which the host requires me to specify separately in dropdowns, so not having done any php I gave it a miss.

The host requires the interpreter to be specified in the command line and so after a bit of researching i came up with:

/usr/bin/php5 wget -O /dev/null http://www.mysite.com/CGJobMgr/process

and
/usr/bin/php5 wget -O /dev/null home/sites/mysite.com/CGJobMgr/process

unfortunately both of these cause a 404 error when tested.

Is the syntax I'm using correct?

I also tried the link with /Modules/ in the second path and got a 404 there too.

Is my problem something to do with the urls not pointing to a physical directory or script?

The host is also expecting 711/755 permissions on the script, but as there's no file involved, which folder, if any, do i apply them to?

Edit: fyi modules & cgjobmgr both 755


Last edited by kmesd62 on Sun Aug 19, 2012 4:19 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Help with setting up cron job for CGJobMgr
PostPosted: Sun Aug 19, 2012 4:17 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 6576
Location: Fernie British Columbia, Canada
The CGJobMgr/process is a URL that has to be requested.

wget is a linux command line 'browser' of sorts. It will make the HTTP request and output the results to a file.

For the exact syntax in your environment you may have to contact your host.

_________________
Follow me on twitter
--
if you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
----------------
Don't make me angry..... you won't like me when I'm angry....


Top
 Profile  
 
 Post subject: Re: Help with setting up cron job for CGJobMgr
PostPosted: Mon Aug 20, 2012 6:40 pm 
Offline
Forum Members
Forum Members

Joined: Sat Aug 06, 2011 3:17 pm
Posts: 10
Hi

My host says (iro the http://www.mysite.com/CGJobMgr/process url):

"That will not work because it will create a loopback connection (connection to self) over HTTP which is blocked on our servers. So, if you wish to use that then you will need to use the full path of /home/sites/mysite.com/public_html/CGJobMgr/process".

The latter still generates a 404 error, as mentioned previously.

However...

Is it possible to create a php file (which my host's cron facility will accept) containing a http request object to call the process url (that CGJobMgr requires)?

Edit:
As I'm a non-php user please can you help with the file content...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner