[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Cron for SMA



On Tuesday, November 5, 2002, at 11:46  AM, Santiago Montalván wrote:
This is the script that I am trying to run and it keeps giving me an error:

#!/bin/sh
cd /usr/local/bin/
sma -f /home/users/systems/public_html/maillog/sma.conf /var/log/maillog >
/home/users/systems/public_html/maillog/maillog.html

I have the sma.conf file in /home/users/systems/public_html/maillog/.  I
keep getting the error sma: command not found.  I have no idea why it is
happening because I checked in /usr/local/bin and sma is there. The cron is
called sma.sh and it is chmod 755.

You don't need the "cd" line, I think. Use the full path to call the "sma"
 command.

#!/bin/sh
/usr/local/bin/sma -f /usr/local/src/sma-1.3.1/sma.conf /var/log/maillog > /home/users/admin/public_html/sma.html

That's all one line (except the shebang, of course) though my mailer might wrap it. Give it a shot and see how it works.

pjm