[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Cron for SMA
- Subject: RE: [cobalt-users] Cron for SMA
- From: "Greg O'Lone" <greg@xxxxxxxxxxxxxxxx>
- Date: Tue Nov 5 09:13:00 2002
- Organization: Stretched Out Software Inc
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
Have you tried:
#!/bin/sh
/usr/local/bin/sma -f /home/users/systems/public_html/maillog/sma.conf
/var/log/maillog > /home/users/systems/public_html/maillog/maillog.html
--
Greg
> -----Original Message-----
> From: cobalt-users-admin@xxxxxxxxxxxxxxx
> [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx] On Behalf Of
> Santiago Montalván
> Sent: Tuesday, November 05, 2002 11:46 AM
> To: cobalt-users@xxxxxxxxxxxxxxx
> Subject: Re: [cobalt-users] Cron for SMA
>
>
> 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.
>
> Any ideas would be appreciated.
>
> Santiago.
> _______________________
> Santiago Montalván
> IT Consultant
> MontalvanWare.Com
> 503-341-7159
> ----- Original Message -----
> From: "aljuhani" <aljuhani@xxxxxxxxx>
> To: <cobalt-users@xxxxxxxxxxxxxxx>
> Sent: Tuesday, November 05, 2002 7:00 AM
> Subject: RE: [cobalt-users] Cron for SMA
>
>
> > Hello.
> >
> > I have just found that the sma command is under
> /usr/local/bin/ so you
> need to
> > change your cron script to:
> >
> > #!/bin/sh
> > cd /usr/local/bin/
> > sma -f /usr/local/src/sma-1.3.1/sma.conf /var/log/maillog >
> > /home/users/admin/public_html/sma.html
> >
> > the -f command makes the sma read and apply your configuration file
> settings
> > under /usr/local/src/sma-1.3.1/ which is sma.conf. You can
> pico that
> > file
> and
> > change the configs if you want.
> >
> > Sorry about the last reply but I was thinking of simulating
> a keyboard
> input
> > as the && sometimes works for certain scripts.
> >
> > Regards,
> >
> > Al-Juhani
> > aljuhani@xxxxxxxxx
> >
> > >===== 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
>
> --
>
>
--