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

Re: [cobalt-users] Cron for SMA



Try ./sma instead of sma. If that directory isn't in your $PATH, there's no way in hell thats going to work.

Also: why are you running the binary out of the build folder?

R

On Tuesday, November 5, 2002, at 06:32 PM, aljuhani wrote:
Hello,

add "&&" to the end of your line in the script to stuff in the keyboard. Your
script will look as below:

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

Al-Juhani
aljuhani@xxxxxxxxxx

===== Original Message From cobalt-users@xxxxxxxxxxxxxxx =====
I am trying to get a half-hourly cron to work for SMA maillog reporting and
I keep getting the same error:

Date: Mon, 4 Nov 2002 22:34:00 -0800
From: root (Cron Daemon)
To: root
Subject: Cron <root@ns1> run-parts /etc/cron.half-hourly

/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)

The name of the cron is sma.sh and it is chmod to 755.

any ideas why this is not working? The cron executes but it cannot find the
sma file, if I run it manually it works just fine...

Thanks!

Santiago.
_______________________
Santiago Montalv†n
IT Consultant
MontalvanWare.Com
503-341-7159


_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users

_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users