Re: help automating tasks with a script

2002-08-21 Thread Javier Gostling
On Tue, Aug 20, 2002 at 01:10:42PM -0700, Desmond Lee wrote: > Just a couple more questions: > > The documentation > >(http://www.redhat.com/docs/manuals/linux/RHL-7.2-Manual/custom-guide/cron-task.html) > says the following: > "To start the cron service, use the command /sbin/service crond st

Re: help automating tasks with a script

2002-08-20 Thread Anthony E. Greene
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 20-Aug-2002/13:37 -0700, Desmond Lee <[EMAIL PROTECTED]> wrote: >Hi ANthony > >Thanks a bunch for your reply No problem. You'll be in a position to help someone else sooner than you think. [script snipped] >This is so cool. I tried it out and it

Re: help automating tasks with a script

2002-08-20 Thread Desmond Lee
Hi ANthony Thanks a bunch for your reply >It would probably be best to put all the required commands into a script >and just call the script using cron. Such a script might look like this: > >#!/bin/sh ># ># Scan files for viruses and email a notice of the results. > ># Who gets notified. >[EMAI

Re: help automating tasks with a script

2002-08-20 Thread Desmond Lee
Hi Javier Thanks a bunch for your help. >man is your friend. man 5 crontab says: > >"...cron(8) will look at MAILTO if it has any reason to send mail as a >result >of running commands in ``this'' crontab. If MAILTO is defined (and >non-empty), >mail is sent to the user so named. If MAILTO is

Re: help automating tasks with a script

2002-08-20 Thread Anthony E. Greene
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 20-Aug-2002/11:28 -0700, Desmond Lee <[EMAIL PROTECTED]> wrote: >What i'm trying to do is automate a virus scan and back up on some of the >folders on my server. I'm really new at this so any help is much >appreciated :) > >First off, to automate a

Re: help automating tasks with a script

2002-08-20 Thread Javier Gostling
On Tue, Aug 20, 2002 at 11:28:34AM -0700, Desmond Lee wrote: > First off, to automate a process i have to set it up in the /etc/crontab > correct? That's correct. > Also, what do i do if i want the info to be sent to someone other that root > when the virus scan and back up run? man is your

help automating tasks with a script

2002-08-20 Thread Desmond Lee
Hi there What i'm trying to do is automate a virus scan and back up on some of the folders on my server. I'm really new at this so any help is much appreciated :) First off, to automate a process i have to set it up in the /etc/crontab correct? Also, what do i do if i want the info to be sen