The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 07-03-2009
kenkanya kenkanya is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 18
Hi,
Thanks to all you folks (KevinADC, hansini, pludi) for giving me direction.
Iam not using any extensive perl stuff. Only basics or may be small part of perl.(Iam yet to go in for big programs, though!!)

Below is the perl part iam using on unix. I have put these contents in a shell script and running it. This saves my time (by opening in vi, editing, saving).
I plan to use the same on windows too.(Just editing a file contents).

The file contents in the shell script on unix (just the perl part) iam giving below:
perl -pi -e '
s|hubURL=http://PSEMHUB:80/PSEMHUB/hub|hubURL=http://ffasuv.relix.com:7001/PSEMHUB/hub|g;
s|agentport=5283|agentport=9940|g;
s|pinginterval=10000|pinginterval=60000|g;
s|unixdrivestocrawl=/usr/home|unixdrivestocrawl=/u/ds4e/relix|g' config.prop

I shall update how it works on windows after i download and install perl on windows. I hope i will create a batch script and put in these contents and check the same.