Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Is shell script a programming language?

1023


How to calculate the number of passed arguments?

1080


What does $@ mean in shell?

1033


What is shell application?

984


What does $0 mean in shell script?

995


What are the various stages of a linux process it passes through?

1175


What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?

1056


What is basename in shell script?

1053


What is $1 in shell scripting?

1037


Determine the output of the following command: name=shubham && echo ‘my name is $name’.

977


What are the different communication commands available in the shell?

962


What is a shell in operating system?

1100


c program to display the information of given file similar to givan by the unix or linux command ls -l

2212


What is shell environment?

987


What is the significance of the shebang line in shell scripting?

1113