Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Cron Problem

Quote Reply
Cron Problem
Hi,

I am having problems running the cron job for incoming.pl. It has been set by Gossamer personnel to execute incoming.pl every two minutes, but it does not work.

I've tried running the cron job manually and it ran without a problem, so it is not a path or command syntax problem. I've tried different variations of intervals, script location, etc, but could not get it to work.

Can anyone help me on this? My server is a Linux server with Red Hat 7.0

Thanks,

Gokhan



Quote Reply
Re: Cron Problem In reply to
On RedHat servers, you must use bash/shell commands at the top of the file...I ran into this same problem awhile back when I moved a site to a Linux RedHat server from a BSD-Unix/Apache Server...

Put the following command line at the top of your .sh file:

Code:

#!/bin/bash


Check your bash location...

Code:

which bash


OR

Code:

whereis bash


Then replace the bash path above.

Then the cronjobs should work.

Regards,

Eliot Lee
Quote Reply
Re: Cron Problem In reply to
If you feel comfortable posting the output from the cron jobs that would be helpful. The cron daemon should e-mail it to the appropriate user account. You can also redirect the output of the cron job to a log file for debugging purposes, e.g.:

incoming.pl 1>>/path/to/output.log 2>>/path/to/error.log