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 are the different types of shell scripting?
What is the command to find out users on the system?
Why is shell scripting important?
how to get part of string variable with echo command only?
How do I open the shell prompt?
What is the meaning of $1 in shell script?
What is the lifespan of a variable inside a shell script?
What is shell and terminal?
What are filters explain sort with all the options available?
What are the advantages of shell scripting?
How do I debug a shell script?
What is scripting used for?
How do I run a .sh file?
c program to display the information of given file similar to givan by the unix or linux command ls -l
What is web script?