corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Website Question - CRON


New Topic

New Poll
  <<  1    2  >> Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Website Question - CRON
ed
Member

Registered: 10th Sep 03
User status: Offline
27th May 04 at 13:36   View User's Profile U2U Member Reply With Quote

Has anyone used CRON in thier website. I'm doing a new version of UK Flava for Greg 1, and I have more or less got it going, apart from I don't think that this thing called CRON is working properly, as it is not automatically sending e-mails out like it should... Anyone know how to get it running? Or anything about it what so ever??? Thanks... I don't know if this question os very descriptive or not?
Melville
Member

Registered: 4th Jun 03
Location: Newcastle upon Tyne
User status: Offline
27th May 04 at 13:41   View User's Profile U2U Member Reply With Quote

not familiar with it my self but did a quick search for it

http://www.unixgeeks.org/security/newbie/unix/cron-1.html
MikeLamb
Member

Registered: 23rd Sep 03
Location: Crowthorne Drives: Veccy SRI
User status: Offline
27th May 04 at 13:43   View User's Profile U2U Member Reply With Quote

doesnt it mean that u can have scripts constantly running rather than just run when they are accessed?? eg so an email could be sent at the end of an auction automatically not on an event such as somone placing a bid?
ed
Member

Registered: 10th Sep 03
User status: Offline
27th May 04 at 13:48   View User's Profile U2U Member Reply With Quote

Yea, I think thats how it works, its just minw dont work
ed
Member

Registered: 10th Sep 03
User status: Offline
27th May 04 at 13:54   View User's Profile U2U Member Reply With Quote

Ok, I understand it now... How do I run Bash Scripts :-S This is complicated
MikeLamb
Member

Registered: 23rd Sep 03
Location: Crowthorne Drives: Veccy SRI
User status: Offline
27th May 04 at 13:55   View User's Profile U2U Member Reply With Quote

i am hoping that this is on a unix server??

*crosses fingers*
ed
Member

Registered: 10th Sep 03
User status: Offline
27th May 04 at 13:56   View User's Profile U2U Member Reply With Quote

yea it is Nont of that NT stuff...
Munchie
Member

Registered: 17th Jul 01
Location: I swap goats for mobile phones
User status: Offline
27th May 04 at 13:58   View User's Profile U2U Member Reply With Quote

wannna design a site for me?! www.woolsrus.co.uk ! needs a better layout etc
MikeLamb
Member

Registered: 23rd Sep 03
Location: Crowthorne Drives: Veccy SRI
User status: Offline
27th May 04 at 13:59   View User's Profile U2U Member Reply With Quote

good good uuum i think u have to start bash scripts with telnet?? i may be wrong!
ed
Member

Registered: 10th Sep 03
User status: Offline
27th May 04 at 13:59   View User's Profile U2U Member Reply With Quote

Ok... Designing sites is what I'm good at, and a bit of PHP, but this site is damn complicated - steep learning curve
ed
Member

Registered: 10th Sep 03
User status: Offline
27th May 04 at 14:00   View User's Profile U2U Member Reply With Quote

how does Telnet work? I know how to load telnet up, and I thought that bash scripts need to be run under telnet... But I have no idea about it... This is annoying
MikeLamb
Member

Registered: 23rd Sep 03
Location: Crowthorne Drives: Veccy SRI
User status: Offline
27th May 04 at 14:00   View User's Profile U2U Member Reply With Quote

uuuum do the scripts come with phpauction?
MikeLamb
Member

Registered: 23rd Sep 03
Location: Crowthorne Drives: Veccy SRI
User status: Offline
27th May 04 at 14:02   View User's Profile U2U Member Reply With Quote

buy a hosting package from http://www.vizaweb.com/ and they will install it for free
ed
Member

Registered: 10th Sep 03
User status: Offline
27th May 04 at 14:03   View User's Profile U2U Member Reply With Quote

All the Cron stuff came in a Cron folder, but Cron doesnt work... And it is PHP Auction
MikeLamb
Member

Registered: 23rd Sep 03
Location: Crowthorne Drives: Veccy SRI
User status: Offline
27th May 04 at 14:03   View User's Profile U2U Member Reply With Quote

can u use unix at all? using telnet u can "pretend" u are on the server and run the script! does the hosting u are using allow telnet access?
ed
Member

Registered: 10th Sep 03
User status: Offline
27th May 04 at 14:24   View User's Profile U2U Member Reply With Quote

Looking at the terms and conditions there is no bit saying Telnet isnt allowed, but when I try and connect to www.ukflava.com (that could be the wrong address though, I'm guessing) It returs error The server comes installed with CRON on it, so I think I can bodge it a bit, but I'll be missing an .exe called auction update which I need apparently if I don't compile the bash script...
willay
Moderator
Organiser: South East, National Events
Premium Member


Avatar

Registered: 10th Nov 02
Location: Roydon, Essex
User status: Offline
27th May 04 at 14:26   View Garage View User's Profile U2U Member Reply With Quote

cron is normally accessable from the command line when you have a shell on the hosting machine.

from the freebsd manual, it says cron is...


NAME
cron - daemon to execute scheduled commands (Vixie Cron)
willay
Moderator
Organiser: South East, National Events
Premium Member


Avatar

Registered: 10th Nov 02
Location: Roydon, Essex
User status: Offline
27th May 04 at 14:27   View Garage View User's Profile U2U Member Reply With Quote

cron is used to run scripts/programs/whatever at certain time sof the day, for example you can have a cron entry so it runs mycoolprogram.sh every 5 minutes.
ed
Member

Registered: 10th Sep 03
User status: Offline
27th May 04 at 14:28   View User's Profile U2U Member Reply With Quote

Cheers for that... Got CRON running now, just need to know how to compile me script using the bash file
willay
Moderator
Organiser: South East, National Events
Premium Member


Avatar

Registered: 10th Nov 02
Location: Roydon, Essex
User status: Offline
27th May 04 at 14:30   View Garage View User's Profile U2U Member Reply With Quote

bash is a shell actually, if you are writing up a bash script it doesnt actually need any compiling, its just a normal file with commands in, say the file is called mycoolprogram.sh, you can execute it by running:

sh mycoolprogram.sh
or
bash mycoolprogram.sh

I guess.
willay
Moderator
Organiser: South East, National Events
Premium Member


Avatar

Registered: 10th Nov 02
Location: Roydon, Essex
User status: Offline
27th May 04 at 14:30   View Garage View User's Profile U2U Member Reply With Quote

might help:

http://www.tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
ed
Member

Registered: 10th Sep 03
User status: Offline
27th May 04 at 14:32   View User's Profile U2U Member Reply With Quote

How do I run the bash file though, it produces a compiled program, which is what I need... I'm guessing I need to use Telnet, but I have no idea about Telnet or how to use it..

This is the readme, if I'm making no sense at all...

Auction Update is an Open Source Tool intended into c language to be used under
Windows (95/98/ME/NT/2000) to handle the problem of updating auctions checking ending
time and eventually removing them from the auctions database and send emails to
sellers and bidders.
This little tool was mainly developed under Debian 2.2 Linux and using Cygnus compiler
(formely called cygwin) ported under windows as an exutable file. For more info on
Cygnus compiler please refer to: http://sources.redhat.com/cygwin/ .
To compile this tool follow this simple step:
./build.sh
build.sh is a bash script to run the compiler.

Now you have two compiled files:

auctionupdate
and
auctionupdate.exe

Of course under windows environment you should used the second one.
auctionupdate accept two paramter on command line: hostname and uri. Talking simple
words you can run auctionupdate in this way:

./auctionupdate yourhostname /path/to/cron.php

Under windows environment you can run this tool at determined intervals using
a batch file and windows native scheduler.

I've put a sample batch file called run.bat, of course you have to modify it
to suite your needs.

[Edited on 27-05-2004 by 1800ed]
willay
Moderator
Organiser: South East, National Events
Premium Member


Avatar

Registered: 10th Nov 02
Location: Roydon, Essex
User status: Offline
27th May 04 at 14:34   View Garage View User's Profile U2U Member Reply With Quote

right well first you need to ignore all the crap about windows, from what I can tell its hosted on a freebsd server (ukflava that is).

Its alot to explain really cause you have no idea how to access the hosting server in the first place, you need shell access to continue.
ed
Member

Registered: 10th Sep 03
User status: Offline
27th May 04 at 14:40   View User's Profile U2U Member Reply With Quote

This is the annoying thing. It doesn;t say anywhere in the documentation I have been given whether I have shell access or telnet access at all... Any way to find out?
ed
Member

Registered: 10th Sep 03
User status: Offline
27th May 04 at 14:41   View User's Profile U2U Member Reply With Quote

It is a freeBSD server too...

  <<  1    2  >>
New Topic

New Poll

Corsa Sport » Message Board » Off Day » Website Question - CRON 22 database queries in 0.1520700 seconds