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 advantages of shell scripting?
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
How to print all the arguments provided to the script?
How can any user find out all information about a specific user like his default shell, real-life name, default directory, when and how long he has been using the system?
What can you do with powershell?
What are the different types of commonly used shells on a typical linux system?
is this growing field and what is average package in this?
Is shell a scripting language?
What is meant by dos operating system?
madhar chod unix ke 10 commands dhang se likh nahi sakta hai
What is the command to find out users on the system?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
What is c in shell script?
What are the four fundamental components of every file system on linux?
What is .sh file in mac?