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
How can I send a mail with a compressed file as an attachment?
What is bash eval?
Explain about login shell?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
c program to display the information of given file similar to givan by the unix or linux command ls -l
What is echo in shell?
How to print the first array element?
What is another name for a bash shell script that you might see?
What is a shell script in windows?
What is the lifespan of a variable inside a shell script?
What are the different variables present in linux shell?
What is the significance of the shebang line in shell scripting?
What is eval in shell script?
Is shell scripting a programming language?
How to write a function?