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
Is shell script a programming language?
How to calculate the number of passed arguments?
What does $@ mean in shell?
What is shell application?
What does $0 mean in shell script?
What are the various stages of a linux process it passes through?
What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?
What is basename in shell script?
What is $1 in shell scripting?
Determine the output of the following command: name=shubham && echo ‘my name is $name’.
What are the different communication commands available in the shell?
What is a shell in operating system?
c program to display the information of given file similar to givan by the unix or linux command ls -l
What is shell environment?
What is the significance of the shebang line in shell scripting?