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

Re: [cobalt-users] Cron for SMA



>
> /etc/cron.half-hourly/sma.sh: sma: command not found
>
> This is the cron I am using:
>
> #!/bin/sh
> cd /usr/local/src/sma-1.3.1/
> sma /var/log/maillog > /home/users/admin/public_html/sma.html (NOTE: I have
> changed web for public_html)
>

You  would need the full path to that sma comamnd
eg
/usr/local/bin/sma or where ever it is
as cron does not have all the path info that your shell has this
is why it works form shell and not cron