Script S1 (which copies .dat files from one directory1 to
another directory2) run continuously.
Write Script S2 which kills S1 first, compresses all .dat
files in directory1 and directory2 successfully, re-run
Script S1 and stops self i.e. S2.
Answer Posted / ganesh
Hi Vipul,
Script1 have to run continuously.. So,
Script1 should be
#!bin/sh
while true
do
cp directory1/*.dat directory2/
done
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
What is the significance of $#?
How do you debug a script?
Is shell a part of kernel?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
what is tickets $ what low,medium,high priorite pls define time also
What is echo $shell?
How to debug the problems encountered in the shell script/program?
What is shift command in shell script?
What is the first line in every perl script called?
How can I send a mail with a compressed file as an attachment?
What exactly is a shell?
Is scripting and coding the same thing?
Please give me example of " at command , contrab command " how to use
Is it possible to substitute "ls" command in the place of "echo" command?
What is batch file programming?