sraphim Posted July 23, 2004 Posted July 23, 2004 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? Quote
borfast Posted July 23, 2004 Posted July 23, 2004 (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 Edited July 23, 2004 by TCH-Raul Quote
sraphim Posted July 23, 2004 Author Posted July 23, 2004 Thank you,I hope that works!!!! I loaded a dummy auction.We will know sometime in the morning!! Quote
sraphim Posted July 23, 2004 Author Posted July 23, 2004 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 Quote
LisaJill Posted July 23, 2004 Posted July 23, 2004 Put a / before home and try that. You can also set it to run in a few minutes to test it - then put the proper schedule in once it works. =) Quote
sraphim Posted July 23, 2004 Author Posted July 23, 2004 I added the "/" to the front.We will know in 15 minutes Quote
sraphim Posted July 24, 2004 Author Posted July 24, 2004 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 Quote
sraphim Posted July 24, 2004 Author Posted July 24, 2004 Well now it gives me this reply: bin/sh: /home/sraphim/public_html/phpauction/cron/auctionupdate.c: Permission denied Now what? Quote
LisaJill Posted July 24, 2004 Posted July 24, 2004 Check the permissions, they should probably be 755. =) Quote
sraphim Posted July 24, 2004 Author Posted July 24, 2004 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 Quote
LisaJill Posted July 24, 2004 Posted July 24, 2004 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. =) Quote
TCH-Bruce Posted July 24, 2004 Posted July 24, 2004 (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 July 24, 2004 by TCH-Bruce Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.