Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 08:48 pm EST
Geeklog Forums
Info on Cron for Geeklog within a Cpanel interface.
I went to the FAQ and found some great info on setting up the daily digest.
I did however have some issues using the info I was provided here
You see after working with another fellow it was finally figured out by him not I that this is the string that needs to be entered
30 2 * * * php -q -f /home/pathto/emailgeeklogstories
Not 30 2 * * * /path/to/geeklog/emailgeeklogstories as given in the example.
I am not sure if this is specific to a Cpanel interface or not but the Daily Digest is working now and it ROCKS, thank you.
12
23
Quote
Status: offline
matthewcox
Forum User
Junior
Registered: 12/11/03
Posts: 31
Location:Asheville, North Carolina
Most Cpanel installations put php in /usr/bin/php. If you look in the emailgeeklogstories script, you'll notice that the shabang line(line1) tells the system to use /usr/local/bin/php which doesn't exist. To be sure you have the right /path/to/php (or path to php) you can try one these methods (unix only sorry).
Once you get the correct path, change the shabang line to
Of course, my advice to you ScurvyDawg, is to leave yours alone if it works, but hopefully this will help someone else.
Also, if anyone knows any better ways to find the path to php, I'd love to hear.
- login via ssh and type "which php" to get the path.Text Formatted Codejailshell-2.05a$ which php
/usr/bin/php
jailshell-2.05a$
- since some systems don't have the which command, you could tryMost likely, you will only see 2 entries(one bin and one lib).Text Formatted Codefind / -name php -printf '%AY%Ad%AH%AMt%pt%Acn' 2>/dev/null|sort
Text Formatted Codejailshell-2.05a$ find / -name php -printf '%AY%Ad%AH%AMt%pt%Acn' 2>/dev/null|sort
2003160150 /usr/bin/php Tue Dec 16 01:50:54 2003
2003160249 /usr/lib/php Tue Dec 16 02:49:58 2003
jailshell-2.05a$
Choose the 'bin' entry for your path. If you have more than 2, the find statement above lists the php files in the order that they were last accessed. Most likely the most recently accessed bin/php is the one you're after. - If all else fails, email your sysadmin for the /path/to/php
Once you get the correct path, change the shabang line to
Text Formatted Code
#!/correct/path/to/php -qOf course, my advice to you ScurvyDawg, is to leave yours alone if it works, but hopefully this will help someone else.
Also, if anyone knows any better ways to find the path to php, I'd love to hear.
11
15
Quote
Status: offline
ScurvyDawg
Forum User
Full Member
Registered: 11/06/02
Posts: 523
cool, I did not know that was why the basic documentation did not work for me.
Thanks
Thanks
20
12
Quote
All times are EST. The time is now 08:48 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content