Jump to content

Cron


Recommended Posts

It's quite easy, just use the path to your home directory, which is something like /home/yourusername/public_html/phpauction/cron

 

After that, you just need to specify at which intervals you want it to run.

 

Note that there are two interfaces for the cron jobs administration, a more complex and more powerfull one and another one more simple but that is probably enough for what you need to do.

 

Also, I'm moving this post to a more appropriate forum for better organization :blink:

Edited by TCH-Raul
Link to comment
Share on other sites

Well that didn"work.may be I put the thing in wrong.Any way I get this"

/bin/sh: home/sraphim/public_html/phpauction/cron: No such file or directory

From the looks of that ,The crontab is either adding something or looking for a

/bin/sh:

Now keep in mind I am a dummy when it comes to these things so please use one syllable words that a chimp might understand :)

Link to comment
Share on other sites

Now the "cron" tells me that "cron is a directory.I am adding this:

/auctionupdate.c[/b

This is supposed to be the file that runs the "cron"

it will run again in 15 minutes :goof:

Link to comment
Share on other sites

I have done that and they are 755.There is a reference to a "compiler" in the readme file.Is that what the "crontab" keeps trying to add?I have put is here"

 

Auction Update - command line tool to handle cron jobs

 

======================================================

 

 

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.

 

For any problem please contanct me by email at: marcello@nextremnet.it

 

If you can make any sense out of it

Link to comment
Share on other sites

I'm not sure that you can run this script, it says that it requires " (95/98/ME/NT/2000) " and our servers are Linux. But later in the instructions it gives you a command for non-windows.

 

How did you manage to run ./build.sh? That is usually run from shell and might explain why you're having difficulties.

 

I haven't used that script though, so perhaps someone else has some insight. =)

Link to comment
Share on other sites

Well first of all auctionupdate.c is a "c" source file so it will not execute it needs to be compiled before it can be run. That is what the "build.sh" file is for, to compile it.

 

Then the crontab would look something like this.

 

/home/username/path/to/auctionupdate localhost /home/username/path/to/cron.php

 

But you don't have shell access you cannot run the "build.sh" file.

 

Open a help desk ticket (link above) and explain what you are wanting to do and ask if they could compile the auctionupdate program for you.

Edited by TCH-Bruce
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...