ptonev.com

Products and Projects => php Mail Notification => Topic started by: dgammon on May 23, 2004, 04:44:57 am



Title: Must be doing something wrong
Post by: dgammon 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


Title: update on email response
Post by: dgammon 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?


Title: Must be doing something wrong
Post by: dgammon 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?


Title: Must be doing something wrong
Post by: ptonev 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.


Title: Must be doing something wrong
Post by: Patches 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


Title: Must be doing something wrong
Post by: ptonev on September 24, 2004, 09:46:55 pm
Hi, Patches.

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

best regards,