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 will you copy a file from one machine to other?
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.
Explain about gui scripting?
How will you connect to a database server from linux?
Determine the output of the following command: name=shubham && echo ‘my name is $name’.
What is difference between shell and bash scripting?
Is shell scripting a language?
What are the different types of shell scripting?
Given a file find the count of lines containing the word "abc".
How do we create command aliases in a shell?
is this growing field and what is average package in this?
What is the use of break command?
How does path variable work?
What is basename in shell script?
What is a batch file used for?