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

what is tickets $ what low,medium,high priorite pls define time also

2111


How do you find out What is your shell?

1031


How to get the last line from a file using just the terminal?

1174


What is a shell script? Can you name some of its advantages?

996


What is $1 in shell scripting?

999


How to print pid of the current shell?

953


What is the meaning of $1 in shell script?

1076


What is the difference between break and continue commands?

1054


write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?

4077


What is meant by $1 in shell script?

922


When should shell programming/scripting not be used?

1098


What is the default ubuntu terminal?

1067


Write a command sequence to find all the files modified in less than 2 days and print the record count of each.

1455


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.

2162


How important is shell scripting?

1003