Re: Automated tasks

From: Riley Williams (rhw@MemAlpha.CX)
Date: Thu Aug 09 2001 - 01:51:33 EST


Hi Sarada.

> I have a process here before which I have to complete some pre
> required tasks ...Right now I do them manually.....i want an
> automated process that will do them automatically....

> Is there any way.....

> Will makefile or shell file come to my rescue....

A shell script would sort this out for you, but without details of the
tasks, I couldn't write one for you.

Basically, your shell script looks like this:

 1. The following line at the top of the script:

        #!/bin/bash

 2. The commands to be run, one per line, in the order they are to be
    run.

So, for example, if I need to...

 1. Change to the temporaries directory.

        cd /tmp

 2. Remove anything therein with 'AntiVirus' at the start of its name
    (as a security measure):

        rm -f AntiVirus*

 3. Run a virus scanner called `AntiVirus`:

        AntiVirus

...I would set up the following batch file:

        #!/bin/bash
        cd /tmp
        rm -f AntiVirus*
        AntiVirus

It's literally as simple as that.

Best wishes from Riley.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Aug 15 2001 - 21:00:23 EST