Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 1 Add-ons:
publishcron seems to just hang with more than 1 query

 

 


James Lavery
User

Feb 23, 2005, 3:46 PM

Post #1 of 6 (4290 views)
Shortcut
publishcron seems to just hang with more than 1 query Can't Post

Hi all,

I'm trying to set up publishcron to generate some static search results pages when I publish articles.

At present, I'm just testing publishcron by running it from my browser.

My publishcron.ini looks like this (comments removed for brevity):

searchurl = http://www.emsworthsc.org.uk/cgi-bin/artman/exec/

page1 = ../../../artman/publish/headlines_programme.html
query1 = &cat=22&fields=spare2&keyword=Yes&template=search/search_headlines.html

page2 = ../../../artman/publish/headlines_racing.html
query2 = &cat=23&fields=spare2&keyword=Yes&template=search/search_headlines.html

page3 = ../../../artman/publish/headlines_martlets.html
query3 = &cat=21&fields=spare2&keyword=Yes&template=search/search_headlines.html

Things seem to work if I only have one page/query pair in the file, but the script hangs - or takes ages (and I've given up wating) if I have more than one page/query pair in it.

Any suggestions?

By the way, I've had to rename publishcron.cgi to publishcron.pl (and rename the reference to search.cgi to search.pl in publishcron itself), as .cgi files are not recognised on my (IIS) hosted server.

Thanks,

James


MikeB
Staff / Moderator


Feb 25, 2005, 2:55 PM

Post #2 of 6 (4278 views)
Shortcut
Re: [James Lavery] publishcron seems to just hang with more than 1 query [In reply to] Can't Post

Hi James,

Thanks for the post! Smile

When publishcron runs it's basically going to be running those three search queries and outputting them to the files you've specified.

Depending on the speed of your server you shouldn't see publishcron slowing down or not working. This may have something to do with the server setup and the amount of resources you've been allowed on the server.

If you'd like me to get onto your server and take a look at this for you I can definitely do this if you'd like to fill out a support request here:

https://www.interactivetools.com/support/email_support.cgi

This should allow me to get onto your server and have a closer look at this for you.

I hope this helps and if you have any other questions feel free to let me know! Smile

Cheers,
Mike Briggs - Product Specialist
support@interactivetools.com

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]


James Lavery
User

Feb 26, 2005, 12:24 AM

Post #3 of 6 (4271 views)
Shortcut
Re: [MikeB] publishcron seems to just hang with more than 1 query [In reply to] Can't Post

Hi Mike,

Yes, that's my analysis of what should be happening. Wink

I've filled in a support request with the appropriate information - if you or one of your colleagues could have a look, that would be great.

Thanks,

James


James Lavery
User

Mar 2, 2005, 2:26 PM

Post #4 of 6 (4225 views)
Shortcut
Re: [MikeB] publishcron seems to just hang with more than 1 query [In reply to] Can't Post

Hi Mike,

Did anyone manage to take a look at this problem? I filled in a support form last week.

Regards,

James


Cliff
Staff


Mar 3, 2005, 11:54 AM

Post #5 of 6 (4206 views)
Shortcut
Re: [James Lavery] publishcron seems to just hang with more than 1 query [In reply to] Can't Post

Hi James,

Thanks for posting.

It looks like Ross has that email, and he is looking into that for you. When he has an update, he will send you back an email with more details.

If you have any additional questions in the meanwhile just let me know Smile
Regards,
Cliff Stefanuk - Customer Service Manager
[email]support@interactivetools.com[/email]


James Lavery
User

Mar 22, 2005, 3:20 PM

Post #6 of 6 (4059 views)
Shortcut
Re: [Cliff] publishcron seems to just hang with more than 1 query [In reply to] Can't Post

Ok, we've exhausted the help that the Interactivetools chaps can give on this problem (as publishcron is an add-on) - thanks for your help to date, chaps.

Anyone else got any idea what could be going wrong?

Basically, I've tracked down the problem to when a second query is run. The script just hangs when the perl script is reading data (in sub GetPage, if you're familiar with the source of publishcron.cgi) from the socket:

while (<$remote>) { $html .= $_;} # read socket data
close($remote);


Anyone got any bright ideas? It looks like the socket is not properly open, or has not been closed properly on the previous page processing. I'm happy to amend the script - I'm a Perl programmer by profession - but this has got me stumped!

I'm running on a hosted IIS server.

Thanks,

James