Jump to content

Recommended Posts

Posted

How would i tell the "cron" to run and how do I write the "path to it?

It is in my "phpauction " directory under "cron" and which one do i use?

Posted (edited)

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
Posted

Thank you,I hope that works!!!! I loaded a dummy auction.We will know sometime in the morning!!

Posted

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 :)

Posted

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:

Posted

Well now it gives me this reply:

bin/sh: /home/sraphim/public_html/phpauction/cron/auctionupdate.c: Permission denied

Now what?

Posted

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

Posted

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. =)

Posted (edited)

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

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

×
×
  • Create New...