php forum
php mysql forum
php mysql smarty
 
Page 1 of 4 1 2 3 4 >
Topic Options
#227225 - 11/03/02 02:34 PM help with CRON pls, namely doexpire.pl
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
i tried to set it up, but didnt succeed.<br />i keep getting this message in my e-mail inbox.<br />root: not found<br /> <br />help?

Top
#227226 - 11/03/02 02:42 PM Re: help with CRON pls, namely doexpire.pl [Re: Luka_dup1]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
What's the entry in your crontab for running doexpire.pl?
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#227227 - 11/03/02 02:48 PM Re: help with CRON pls, namely doexpire.pl [Re: joeuser]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
my file is called cronjobs and it's located in the root directory.<br />this is whats inside it.<br /><br />0 2 * * * root /usr/local/etc/httpd/htdocs/ubbthreads/cron/php/doexpire.pl<br />0 1 * * * /usr/local/bin/vnukelog <br /><br /><br /><br />i've also got a file below it called crontab.save and inside it is this<br /><br />0 2 * * * root <br />/usr/local/etc/httpd/htdocs/ubbthreads/cron/php/doexpire.pl<br /><br />logout<br /><br />

Top
#227228 - 11/03/02 02:52 PM Re: help with CRON pls, namely doexpire.pl [Re: Luka_dup1]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Try removing "root" from the entry. I don't know why Infopop's documentation says to put that in.<br /><br />P.S. This is my 700th post, so I'm now an "old hand" <img src="/forum/images/graemlins/laugh.gif" alt="" />
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#227229 - 11/03/02 03:02 PM Re: help with CRON pls, namely doexpire.pl [Re: joeuser]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
lol oldhand!<br />ok, i'll give that a go and get back to you 2moro once the time has reached for it to carry out the task.<br />

Top
#227230 - 11/03/02 04:45 PM Re: help with CRON pls, namely doexpire.pl [Re: joeuser]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
[]P.S. This is my 700th post, so I'm now an "old hand" <br />[/]<br /><br />Congrats Old Hand! <img src="/forum/images/graemlins/laugh.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#227231 - 11/04/02 12:43 AM Re: help with CRON pls, namely doexpire.pl [Re: joeuser]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
ok, that didn't work.<br />whats next?

Top
#227232 - 11/04/02 12:44 AM Re: help with CRON pls, namely doexpire.pl [Re: Luka_dup1]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
btw, when i get the e-mail saying it dont work, this is always in the subject line, if it's any help.<br />Cron <nickjenk> root /usr/local/etc/httpd/htdocs/ubbthreads/cron/php/doexpire.pl

Top
#227233 - 11/04/02 02:11 AM Re: help with CRON pls, namely doexpire.pl [Re: Luka_dup1]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Are you sure you removed the "root" from the crontab entry?
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#227234 - 11/04/02 11:12 AM Re: help with CRON pls, namely doexpire.pl [Re: joeuser]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
positive<br />although my file is called cronjobs not crontab, that make a difference?

Top
#227235 - 11/04/02 11:36 AM Re: help with CRON pls, namely doexpire.pl [Re: Luka_dup1]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Hmmmm ...... If "root" isn't in the cron table entry, then I don't know where it's getting the "root" from.<br /><br />On my server (Linux Redhat 7.0), I set up cron jobs using the crontab command. For example, crontab -l lists the cron table for the current user, and crontab FILENAME rebuilds the cron table from the text file FILENAME. Maybe it works differently on your server.<br /><br />If no one else has any ideas here, you might try asking in the UBB.threads How Do I? or Installation Assistance forum at Infopop Community.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#227236 - 11/04/02 11:42 AM Re: help with CRON pls, namely doexpire.pl [Re: joeuser]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
hmmm, thats strange.<br />i just did the command crontab -l and it still says tjhe "root" bit is there.<br />but i just downloaded the file to check.<br />do i need to re-run something?

Top
#227237 - 11/04/02 11:49 AM Re: help with CRON pls, namely doexpire.pl [Re: Luka_dup1]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
my bad!<br />i didnt rebuild it<br />it now says what it should<br />i'll let u know 2moro whether it was a success or not!

Top
#227238 - 11/05/02 11:03 AM Re: help with CRON pls, namely doexpire.pl [Re: Luka_dup1]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
well, we're getting somewhere!!<br /><br />this is the report as of this morning<br /><br />usr/local/etc/httpd/htdocs/ubbthreads/cron/php/doexpire.pl: permission denied<br /><br /><br />what does it mean? (apart from that access was denied <img src="/forum/images/graemlins/smile.gif" alt="" /> )

Top
#227239 - 11/05/02 11:14 AM Re: help with CRON pls, namely doexpire.pl [Re: Luka_dup1]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I am NOT the cron job expert. Somehow I got it working on my server. LOL<br /><br />But, Can you successfully run the file from the command line?<br /><br />I'd check that first... make sure it runs for you. That'll narrow down if it's a permission thing, or a cron job thing.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#227240 - 11/05/02 11:24 AM Re: help with CRON pls, namely doexpire.pl [Re: Daine]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
how would i run it from command line?<br />whats the command?

Top
#227241 - 11/05/02 01:14 PM Re: help with CRON pls, namely doexpire.pl [Re: Luka_dup1]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Try changing the cron table entry to:<br /><br />0 2 * * * perl /usr/local/etc/httpd/htdocs/ubbthreads/cron/php/doexpire.pl
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#227242 - 11/06/02 12:43 AM Re: help with CRON pls, namely doexpire.pl [Re: joeuser]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
that doesnt work <img src="/forum/images/graemlins/frown.gif" alt="" /><br />Can't open perl script "/usr/local/etc/httpd/htdocs/ubbthreads/cron/php/doexpire.pl": Permission denied<br />

Top
#227243 - 11/06/02 12:54 AM Re: help with CRON pls, namely doexpire.pl [Re: Luka_dup1]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
[]how would i run it from command line?<br />whats the command?<br />[/]<br /><br />If you've got telnet or SSH access to the server... you could go into that directory and type doexpire.pl at the prompt to see if you can run it.<br /><br />If not, it's most likely a permissions thing. <br /><br />[]/usr/local/etc/httpd/htdocs/ubbthreads/cron/php/doexpire.pl[/]<br />Actually looking at your command......<br />Are you allowed to have doexpire.pl inside the PHP directory.... in other words... on your server can you run perl scrips outside of the cgi-bin directory.<br /><br />Some hosts don't let Perl scripts run elsewhere.<br /><br />Or should you be running doexpire.php???<br />What file(s) is actually in the /ubbthreads/cron/php directory?
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#227244 - 11/06/02 11:30 AM Re: help with CRON pls, namely doexpire.pl [Re: Daine]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
ahhhh, well spotted joshpet!<br />i had php/doexpire.pl<br />no such thing!<br /><br />so i've amended it to php/doexpire.php<br /><br />and guess what, it wont bloody install! <img src="/forum/images/graemlins/mad.gif" alt="" /><br /><br />i'm now completley stumped.<br /><br />This is what is in my cronjobs file<br /><br /> [] 0 2 * * * /usr/local/etc/httpd/htdocs/ubbthreads/cron/php/doexpire.php<br />0 1 * * * /usr/local/bin/vnukelog [/] <br /><br /><br />and this is the error message i'm getting from telnet<br /><br /> [] "cronjobs":3: bad day-of-month<br />crontab: errors in crontab file, can't install[/] <br /><br />wtf?? <img src="/forum/images/graemlins/confused.gif" alt="" />

Top
Page 1 of 4 1 2 3 4 >


Moderator:  Gizmo 
Who's Online
0 registered (), 25 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
nick1, Begbie, cenk, MATTO, DougMMcts
13362 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks