ptonev.com
November 21, 2017, 09:10:52 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Must be doing something wrong  (Read 8000 times)
dgammon
Guest
« on: May 23, 2004, 04:44:57 am »

Sorry for such a broad subject there but I have no idea what I may be doing wrong.

Let me ask a few questions to see if I have edited things correctly:

my phpMailNotification.cfg file has:
mail.*mydomain.com*;support;*password*;4175551212@mobile.mycingular.com;%new%/%total%@%account% - %emails%;

my checkm.sh file is:

#!/bin/bash
cd /home/*domain*/
php phpMailNotification.php

for testing purposes I have my cron checking every minute:
* * * * *   http://domain.com/checkm.sh

I have changed the MNOTIFY_CFG_PATH in phpMailNotification.php

Nothing seems to work.  I do have other cron scripts running successfully.

Do you have any idea what I may be missing that is causing it not to work?

I am not familiar with *.sh files so perhaps there?

thanks for your response
Logged
dgammon
Guest
« Reply #1 on: May 23, 2004, 04:48:18 am »

okay, my cron is sending this to my default email box:

/bin/sh: http://domain.com/checkm.sh: No such file or directory

perhaps I have an incorrect cron command?  what do you think?
Logged
dgammon
Guest
« Reply #2 on: May 23, 2004, 07:29:44 am »

ok, well I have been messing around with it a little and got all the error removed out of cron job.  Now it is giving me "No input file found" or something like that.  Any ideas?
Logged
ptonev
Administrator
Newbie
*****
Posts: 135


3119712
View Profile WWW
« Reply #3 on: May 24, 2004, 08:04:51 am »

First you don't must call (execute) SH files from browser. You can call PHP file from browser.

SH is shell command file on Linux/Unix.

checkm.sh must be add in cron filter that it call on very several time. That this will be call PHP that will be check your email account.

Second check for right on directory when you put php file. It must have 0777 right that can php make file and write it.

That is. Try again and write if you try faild.
Logged
Patches
Guest
« Reply #4 on: September 24, 2004, 08:42:07 pm »

I found an easier to make cron run this, if you php is a cgi install.

First add this to the top of the php script
#!/usr/local/bin/php -q

Next use this as your cron line

* * * * php /path/phpMailNotification.php
Logged
ptonev
Administrator
Newbie
*****
Posts: 135


3119712
View Profile WWW
« Reply #5 on: September 24, 2004, 09:46:55 pm »

Hi, Patches.

I am not Linux/Unix expert and con't comment your message.

best regards,
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!