Previous Thread
Next Thread
Print Thread
Rate Thread
#237873 02/24/2003 6:19 AM
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Ok need some help catching a clue... again. Looking to do cron jobs.. I have telnet acess. No idea how to set this up or how to use it. I know I want to run some cron scripts so I can update information on a regular basis by excuting the scripts.
Thanks a bunch in advance...

Sponsored Links
Kelly #237874 02/24/2003 10:07 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
This might help you get started.

Daine #237875 02/24/2003 8:00 PM
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Ok that got me to the variables... I can't run cgi-bin or perl from outside the cgi-bin directory. Do I need to move or setup a folder/file inside the cgi-bin to run this?

# Url to the cgi-bin containing the UBB.threads php package
$config{'cgiurl'} = (I set this to my php folder in the threads install)

My php doesn't need to be inside the cgi-bin

MY host wants 24.95 for each cron setup..yikes. so am looking at a remote cron service. (9.95/yr)
http://www.fastcron.com/ Anybody use them...?

Can I setup the subscriptions using a outside service? If so which file should I call to make it generate run. subscription.php?

Kinda shakey on this but getting closer..

Kelly #237876 02/24/2003 10:30 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
If you can run php that seems easier. All you need to do is edit the path to main at the top of subscriptions.php and doexpire.php

Then call them. Ther Perl versions require you to set a bunch of variables.... but the PHP versions will use the existing threads variables.

Daine #237877 02/24/2003 10:48 PM
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Thanks that worked for subscriptions. I think I will manually doexpire stuff myself if things get to full.

Sponsored Links
Kelly #237878 02/24/2003 11:02 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
If you want to save the money.... you can run them yourself daily in your browser.

If everything works and there are no errors.... the correct result would be a blank page.

You'd load your browser like this:
http://www.yourforum.com/ubbthreads/cron/php/subscriptions.php

But you'd have to remember to run subscriptions daily.

Do expire could be run every so often.. as it would be no big deal to have posts being expired a little late.

Kelly #237879 02/24/2003 11:03 PM
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Oh wait you got that neat mod for stubs... betters set that one up too.

Kelly #237880 03/02/2003 8:41 PM
Joined: Feb 2003
Posts: 64
Power User
Power User
Offline
Joined: Feb 2003
Posts: 64
I ran into a similar situation and this is what I did.

I set up a Scheduled Task in Windows to open a web page that I built and keep on my home computer. All that web page contains is a java redirect to my subscriptions.php.
I set the task to run every night at midnight, all I have to do is make sure my computer is on.

Here's the redirect code in case you need it:

<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
redirTime = "50";
redirURL = "http://www.yoursite.com/cron/php/subscriptions.php";
function redirTimer() { self.setTimeout("self.location.href = redirURL;",redirTime); }
// End -->
</script>
</head>


<BODY onLoad="redirTimer()">
</body>
</html>


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)