vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   news2vb - Moreover news headlines to vBulletin discussion thread (https://vborg.vbsupport.ru/showthread.php?t=36174)

Erwin 03-20-2002 04:53 AM

Hi,

I've tried variations on the crontab, and just can't get the thing to be automated!

Any ideas? I've tried:

* * * * * TERM=vt100 /path/to/lynx -source "http://..." >> /dev/null

* * * * * /path/to/lynx -source "http://..." >> /dev/null

* * * * * /path/to/lynx -source "http://..."

Ive tried the curl command, lynx -dump, even cgi php commands - no luck! :)

My question is - the php file has variables outside of the file ie. ?jaction= etc. does that work with cron or not?

Would the path to wget be the same as the path to lynx?

Erwin 03-20-2002 04:56 AM

Might have to place all the variables inside the php file, and use lynx - source -> having variables outside might not work for cron.

If anyone out there can automate this with cron, please post your command line, thanks!

Cloud-Warrior 03-20-2002 07:44 AM

The paths could be the same, but possibly different, you'll have to do a whereis lynx as well possibly.

I've done lynx crontab commands with parameters and they usually work fine. Maybe try putting the wget or lynx lines in a .sh file and call that via cron.

Erwin 03-20-2002 07:57 AM

I'll keep trying... like I said, any unix cron experts out there, please feel free to make suggestions! :)

Erwin 03-20-2002 08:54 AM

I think this one works for me...

0 0 * * * /path/to/lynx -source "http://..." >> /dev/null

:)

Now to waith 24 hours to make sure it repeats itself!!! :D

Cloud-Warrior 03-21-2002 10:12 AM

Yeah I guess having 5 stars could be a problem :-)

Erwin 03-21-2002 07:57 PM

Actually, it didn't work. Had some discussion with my host's support people, and we are finally trying it out as an external post.sh script - the sugestion from them is that the command line may be too long. I have no idea why it would work as a manual command, but not as an automatic cron job.

Visionray 12-03-2002 04:40 AM

how do you limit the number of news feeds the script posts?

ALso, every title of every news feed is dated at 2/12/02. Whats up with that?

Cloud-Warrior 12-03-2002 08:05 AM

That would be yesterday's date :-) The date shown is the date the script is run (the post date).

If you want to limit the number of articles (I think this is what you mean), you'll have to hack the source and add in a counter somewhere in or around the loop if ($jitemheadline != "") { }. Or you may be able to specify the number of articles you want from moreover somehow (can't remember if there's an option or not, check http://w.moreover.com/dev/).

John.
--

Visionray 12-03-2002 02:33 PM

LOL sorry man. When it said 2-12-02 I thought it was talking about Februrary 12th, 2002....me being from America and our Calendar system is backwards. Thanks ;) :D


All times are GMT. The time now is 09:51 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01687 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete