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 are the different types of shell scripting?

1119


What is the command to find out users on the system?

979


Why is shell scripting important?

1045


how to get part of string variable with echo command only?

1028


How do I open the shell prompt?

1199


What is the meaning of $1 in shell script?

1119


What is the lifespan of a variable inside a shell script?

1660


What is shell and terminal?

1007


What are filters explain sort with all the options available?

1344


What are the advantages of shell scripting?

1045


How do I debug a shell script?

1074


What is scripting used for?

1046


How do I run a .sh file?

1023


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

2221


What is web script?

1095