* (no subject)
@ 2001-08-09 5:34 Sarada prasanna
2001-08-09 6:14 ` Makefile or Shell file Milind
2001-08-09 6:51 ` Automated tasks Riley Williams
0 siblings, 2 replies; 3+ messages in thread
From: Sarada prasanna @ 2001-08-09 5:34 UTC (permalink / raw)
To: 'linux kernel mailing list'
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....
cspn
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Makefile or Shell file
2001-08-09 5:34 Sarada prasanna
@ 2001-08-09 6:14 ` Milind
2001-08-09 6:51 ` Automated tasks Riley Williams
1 sibling, 0 replies; 3+ messages in thread
From: Milind @ 2001-08-09 6:14 UTC (permalink / raw)
To: Sarada prasanna; +Cc: linux-kernel
I think any of them will help you out , but based on your requisites.
If you have tasks that are independent , then you can go for shell file and
execute
it using sh(sh-posix) or ksh(korn shell) or bash/ksh if you are using linux.
Makefile is generally used for a sequence of dependent tasks, normally the
makefile has a hierarchical structure, eg
target (exe): <a.o> <b.o>
<other dependencies like .a , .h files>
a.o : cc <options> a.c
<other dependencies like .h , .a files>
b.o: cc <options> b.c
.
.
.
So its really question of nature of tasks.
Sarada prasanna wrote:
> 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....
>
> cspn
> -
> 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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Automated tasks
2001-08-09 5:34 Sarada prasanna
2001-08-09 6:14 ` Makefile or Shell file Milind
@ 2001-08-09 6:51 ` Riley Williams
1 sibling, 0 replies; 3+ messages in thread
From: Riley Williams @ 2001-08-09 6:51 UTC (permalink / raw)
To: Sarada prasanna; +Cc: Linux Kernel
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-08-09 6:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-09 5:34 Sarada prasanna
2001-08-09 6:14 ` Makefile or Shell file Milind
2001-08-09 6:51 ` Automated tasks Riley Williams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox