Perl for Unix & Windows


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Perl for Unix & Windows
# 1  
Old 07-02-2009
Perl for Unix & Windows

Hi
Even though this is unix forum, iam posting this thread as iam not sure of which forum should i post this too.
I understand perl can be used in unix environment and i have used the same for automation of my processes.
Eg:
Open a file
search the text string
replace the text string
close the file

Iam looking for similar "perl for windows". Where i can do the same. Iam not sure if this can be done through the batch file though! (Again, because i could not find any information of using or creating batch scripts i could not continue further).
I somehow believe that "perl for windows" can be used for this automation

Open a file
search the text string
replace the text string
close the file
on windows environment.

Where do i get "perl for windows" or is it possible through the batch script or any other freeware?

Do request you to direct me, so that i can automate on windows too, how i did on unix!

thanks
# 2  
Old 07-02-2009
If you enter the terms "perl for windows" into a certain popular search engine (which also powers this sites search), the very first result will be that of a company providing the probably most used Perl distribution.

Or go to perl.org -> Downloads, download the source and compile it yourself.
# 3  
Old 07-02-2009
Now the Active perl has release version 5.10. I am not sure how extensively you are using the perl libraries in your scripting, still some of the ppm packages are not available for 5.10. For the version 5.8.X you can find pretty much all the ppm packages.
# 4  
Old 07-02-2009
For Windows there is activeperl you can get from ActiveState Home and Strawberry perl that you can get from Strawberry Perl. If you neede to run perl scripts automatically on Windows you use the task manager for that.

If you have a new version of Windows I recommend Strawberry perl 5.10, make sure you get the correct version for your OS, XP/Vista/2000 32 bit or 64 bit.
# 5  
Old 07-03-2009
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:
Code:
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.
# 6  
Old 07-03-2009
Change the single-quotes that surround the code to double-quotes when running on Windows.
# 7  
Old 07-06-2009
Thanks KevinDAC.
That's really an information. I shall do the same too when checking.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Unix services for windows & Linux\Red Hat

I am not too familiar with linux, so please keep that in mind while reading this post. We have a few linux servers joined to the domain, and linux services for windows running. I have a user that can connect to one linux server, but not another. I ran the cat /etc/passwrd and noticed the user... (0 Replies)
Discussion started by: dcatcha
0 Replies

2. Solaris

Compatibility between Unix & Windows

Pl. let me know whether Sun Solaris Server (Unix OS) is compatible with Windows Server or Vise Versa. Can i update the data first in Windows Server and then copied it to Sun Solaris Server or Vise Versa. (1 Reply)
Discussion started by: seemaitri
1 Replies

3. AIX

sftp between Unix & windows

Guys, sftp between Unix & Windows I'd like to get good software or a way to how to configure sftp between ( windows to Unix ) and ( Unix to windows ) to be automatic login between the different operating systems without asking password .. Pls assist in this regard … (3 Replies)
Discussion started by: Mr.AIX
3 Replies

4. Shell Programming and Scripting

ftp from windows to unix using a perl script on unix machine

i need to ftp a file from windows to a unix machine by executing a sript(perl/shell/php) from that unix machine.i can also use HTML and javascript to build forms. (3 Replies)
Discussion started by: raksha.s
3 Replies

5. UNIX for Dummies Questions & Answers

FILE MANAGEMENT in WINDOWS & UNIX

Hi, I am a new member here. I am in my final year of engineering in Computer & Information Systems. Wanted to know, how file management is done in both windows and unix. Kindly, tell me anyone who knows it in detail, or has any links regarding it. Thanks (1 Reply)
Discussion started by: farazcis
1 Replies

6. UNIX for Dummies Questions & Answers

Networking unix & windows

I have very basic question: I have 2 windows sytem & 1 Unix system & wanted to put all three system into one network to each other. what kind of other hardware I need? like cable , router? can anybody tell me the configuration? like how to connect to external hardware to put into network? ... (9 Replies)
Discussion started by: kar1
9 Replies

7. UNIX for Dummies Questions & Answers

Different Format in Unix & Windows

I used the following commands to store the discription of "sed" into a unix file: man sed > sed.txt But, after I download the file "sed.txt" to a Windows XP system, the file can not be displayed correctly. How to change the format of a Unix file to a Windows one? (5 Replies)
Discussion started by: endeavour1985
5 Replies

8. IP Networking

UNIX OS & Windows XP

Hello, Can someone please tell me if it is possible to install a Unix Os on a system that already has a Windows XP? If so, how do i go about it doing it?: (6 Replies)
Discussion started by: Ike
6 Replies

9. UNIX for Advanced & Expert Users

Connectivity B/w Unix & windows

i want to install ScO UNIX 5.1 in a windows 98 system. i want it as a DUAL BOOT system. can i doit? If yes How. and also i want to network unix with my clients. is it poosible to network both unix & windows thru a single network card. if yes how? also i wanted to know that thru a switch can i... (3 Replies)
Discussion started by: jigs
3 Replies

10. UNIX for Dummies Questions & Answers

seperate hard drive for unix & x windows

thanks for your help, i didnt realise you could download the operating system from sun.com:D Ive just had a new hard drive installed 20 GIG for unix and x windows. How can i connect this hard drive for unix and x windows only? and are there any helpful tutorials for starters?? Many thanks (4 Replies)
Discussion started by: jeffersno1
4 Replies
Login or Register to Ask a Question