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 the significance of $#?

1167


How do you debug a script?

1123


Is shell a part of kernel?

1113


Determine the output of the following command: [ -z “” ] && echo 0 || echo 1

1029


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

2210


What is echo $shell?

1129


How to debug the problems encountered in the shell script/program?

1193


What is shift command in shell script?

1088


What is the first line in every perl script called?

1096


How can I send a mail with a compressed file as an attachment?

1074


What exactly is a shell?

1130


Is scripting and coding the same thing?

1039


Please give me example of " at command , contrab command " how to use

2841


Is it possible to substitute "ls" command in the place of "echo" command?

1102


What is batch file programming?

1201