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 is tickets $ what low,medium,high priorite pls define time also
How do you find out What is your shell?
How to get the last line from a file using just the terminal?
What is a shell script? Can you name some of its advantages?
What is $1 in shell scripting?
How to print pid of the current shell?
What is the meaning of $1 in shell script?
What is the difference between break and continue commands?
write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?
What is meant by $1 in shell script?
When should shell programming/scripting not be used?
What is the default ubuntu terminal?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.
How important is shell scripting?