creating multiple threads in perl

2008-05-28 Thread perl pra
Hi gurus, I need to create "n" mulitple threads simaltaneously and all the threads should do same operation(just like Jmeter). i have a subroutine sub printname{ my ($tid)[EMAIL PROTECTED]; print "name is guru tid is $tid\n"; } all the threads

creating simaltaneous threads

2008-06-04 Thread perl pra
hi gurus, I want to create 100 threads/processes simaltaneoulsy (at the same time), and those 100 threads/processes should execute a subrountine at the same time. can anybody help me giving some ideas reagarding this, I tried creating this 100 process using fork in a for loop but that does no

NTML Authentication and getting the webpage

2008-09-30 Thread perl pra
Hi Gurus, I am accessing a web page http://www.outsidedomain.com using LWP::userAgent. I am getting 407 ISA authentication required/500/501 errors after understanding our network set up , I understood that i need to do NTLM proxy authentication. I used module NTLM::Authen, but no luck. Can som

hwo to get time in milliseconds

2008-12-26 Thread perl pra
hi All, I need to get current time in milliseconds. Any pointers would be highly appreciated thanks, siva

Thread managment in Perl

2008-12-26 Thread perl pra
Hi All, I am able to create simaltaneous threads and access a subroutine(which performs firing of reqeusts). with the created threads. Some time I get the following error *"Free to wrong pool 225f40 not 13ddbd50 at C:/Perl/lib/constant.pm line -1." .*Whats the reason for the error? ** Please chec

Thread managment in Perl

2008-12-26 Thread perl pra
Hi All, I am able to create simaltaneous threads and access a subroutine(which performs firing of reqeusts). with the created threads. Some time I get the following error *"Free to wrong pool 225f40 not 13ddbd50 at C:/Perl/lib/constant.pm line -1." .*Whats the reason for the error? ** Please chec

Re: Thread managment in Perl

2008-12-30 Thread perl pra
Hi All, I am trying out a jmeter like tool with perl.The following are the tasks that my perl script needs to do. 1) Fire specified number of http requests in one second. 2) log the response times of the request. 3) the Thread should be freed once it completes the task. The following are the is

Re: Thread managment in Perl

2008-12-31 Thread perl pra
Hi All, I dont see error if i run the same script on Linux. But it still firing 100 requests in 6 seconds insted of 1 second. Any pointers on this? Thanks, PP On 12/30/08, zentara wrote: > > On Tue, 30 Dec 2008 14:47:08 +0530, perl...@gmail.com ("perl pra") > wrote: >

Fwd: Thread managment in Perl

2008-12-31 Thread perl pra
Hi All, I dont see error if i run the same script on Linux. But it still firing 100 requests in 6 seconds insted of 1 second. Any pointers on this? Thanks, PP On 12/30/08, zentara wrote: > > On Tue, 30 Dec 2008 14:47:08 +0530, perl...@gmail.com ("perl pra") > wrote: &g

running perl script on remote windows machine

2009-02-06 Thread perl pra
Hi I have a pel script I want to execute this perl script on remote machine and get the information related to remote machine.(both local and remote machines are Windows machines) Hwo can i do that thanks, PP

accessing remote registry

2009-02-06 Thread perl pra
Hi All, Can anybody help in accessing the registry of remote windows machine and get the keys in the folder *HKEY_LOCAL_MACHINE/SOFTWARE * ** I have tried using win32::Registry, but i am getting the error "cannot open the registry",But the same script works if i assign $node to my local Ip. Can

Re: accessing remote registry

2009-02-09 Thread perl pra
Hi Jenda, I get the same error even if i remvoe the backslashes. Thanks, siva On 2/6/09, Jenda Krynicky wrote: > > From: perl pra > > Can anybody help in accessing the registry of remote windows machine and > get > > the keys in the folder *HKEY_LOCAL_MACHINE/SOFTWAR

MSI Installer Automation

2009-04-10 Thread perl pra
Hi All, Can anybody help me in MSI Installer Automation. How can i do that in perl. Is there any module which does that . Thanks in Advance, Siva

could not connect to Mssqlserver

2009-04-14 Thread perl pra
Hi Gurus, I need to connect to MSSQL SERVER (express edition on remote system) through a perl script. But I get the following error with the code below can any body help me in that. ERROR Use of uninitialized value $Win32::ODBC::ErrConn in concatenation (.) or string at C:/Perl/lib/

perl script errors while connecting to sql server

2009-04-16 Thread perl pra
Hi Gurus, I need to connect to MSSQL SERVER (express edition on remote system) through a perl script. But I get the following error with the code below can any body help me in that. ERROR Use of uninitialized value $Win32::ODBC::ErrConn in concatenation (.) or string at C:/Perl/lib/

Re: perl script errors while connecting to sql server

2009-04-19 Thread perl pra
connections from remote machines/hosts out-of-the-box. > > Look up the Microsoft KB article and turn-on support for remote connections > and then try. > > http://support.microsoft.com/kb/914277 > > -- Jayesh > > > > > - Original Message > From: perl pr

dragandrop with win32::IE automation.

2009-04-19 Thread perl pra
Hi gurus, Can I drag and drop a text using win32::IE Automation.here is my requirement.I have a text in a table i have to drag and drop that text into another area of webpage. Can i do that using Win32::IEAutomation? Thanks in Advance, PP

Re: file handle in perl

2009-06-18 Thread perl pra
you can also Tie::File. On Wed, Jun 17, 2009 at 2:42 PM, Irfan Sayed wrote: > Hi All, > > I am struggling with file handling in perl. i want to do following > operation . > > 1: open the file > 2: read the file > 3: do the changes in specific lines > 4: save the file > 5: close the file > > i am

Accessing windows webservices

2009-07-30 Thread perl pra
Hi all, I have a windows webService which i wanted to consume through perlclient.Below are the details. I have a windows webservice, Now i wanted to test these services, I wanted to consume them with perl client, These webservices are WSSE authenticated.I have tried with SOAP::Lite to generate t

Re: Accessing windows webservices

2009-08-05 Thread perl pra
> > Hi all, > > I have a windows webService which i wanted to consume through > perlclient.Below are the details. > > I have a windows webservice, Now i wanted to test these services, I wanted > to consume them with perl client, These webservices are WSSE authenticated.I > have tried with SOAP::Li

Accessing . NET Webserivices

2009-08-14 Thread perl pra
Hi all, I have a webserives built in .NET and WSE authentication which i wanted to consume through perlclient.Below are the details. I have a windows webservice, Now i wanted to test these services, I wanted to consume them with perl client, These webservices are WSSE authenticated.I have tried

installing perl modules on 64-bit Os

2009-08-15 Thread perl pra
Hi Gurus, I have installed "ActivePerl-5.10.0.1004-MSWin32-x86-287188.msi" on WindowsServer 2008 64-bit OS. I can run the scripts that I have written on 32-bit OS,My query is whats the processes of installing perl modules on 64-bit OS. In 32-bit we use nmake to install, how to install modules on

.eml parsing and downlaod

2009-09-08 Thread perl pra
Hi Gurus, Can anybody let me know how can I download attachment of a .eml file using perl script to a specified location. Thanks in Adavance PP

could not execute psexec

2009-12-07 Thread perl pra
Hi All, I need to execute "*psexec.exe"* which is in C:\Windows\system32 through perl scirpt. .I am getting the error "*'psexec' is not recognized as an internal or external command,operable program or batch file"* Below is the perl script. --- SNIP #!/usr/bin/perl -w use strict; use warnings;

Re: could not execute psexec

2009-12-07 Thread perl pra
ght telnet-replacement that lets you execute ... Just copy > PsExec onto your executable path. Typing "PsExec" displays its > usage" (From the fine on-line documentation.) > > Sounds like you have an installation issue > > > B > > > > > On

Detaching the .eml attachment

2010-01-25 Thread perl pra
Hi All, I have a .eml file which has either PDF/xls attachment, I want to strip this attachment from .eml and store in the local hard drive. I have tried it with the Email::Attachment::Stripper with no luck. please help me in this. Thanks, siva

problem while installing bugzilla

2010-08-11 Thread perl pra
Hi All, I am having a problem while isntalling Bugzilla , Checksetup.pl throws errors and exits.Below is the detail. when I run checksetup.pl in bugzilla folder I get the following error, Though I have installed latest DBD-mysql which is available in CPAN. ERROR ---

perl DBI problem while installing bugzilla

2010-08-11 Thread perl pra
> Hi All, > > I am having a problem while isntalling Bugzilla , Checksetup.pl throws > errors and exits.Below is the detail. > > when I run checksetup.pl in bugzilla folder I get the following error, > Though I have installed latest DBD-mysql which is available in CPAN. > > ERROR

reading html hyper links as per directory structure

2007-05-15 Thread perl pra
Hello Gurus, I have a html page which has hyper links only it does not have any images. I have to read the html file get the names of the hyper link that is displayed in the page ,create a directory structure and tar/gz the files. ( I have the directories in server with same names which are di

Re: Problem with my code

2007-08-04 Thread perl pra
hi Mihir Kamdar, Please the following highlighted. I have tested it. this excatly does what you need. configure the parent_path,child_path and out_path to your corresponding paths. _ BEGIN use strict; use File::Path; use File::Copy; use warnings; my $parent_path="C:/

Re: Problem with my code

2007-08-04 Thread perl pra
hi Mihir Kamdar, Please the following highlighted. I have tested it. this excatly does what you need. configure the parent_path,child_path and out_path to your corresponding paths. _ BEGIN use strict; use File::Path; use File::Copy; use warnings; my $parent_path="C:

Re: parsing a log file by date

2007-08-04 Thread perl pra
Hi Jeevan, may be this code would help you. I tested the code and it works fine. You can specify start and end months that you want to capture the logs from log file. Change the following peice of code to the one which you want.. $2 <= 8) && ($2 >= 7) The format is $2 <=&& $2 >=

Re: How do I truncate or remove a trailing character

2007-08-04 Thread perl pra
Hi Please try the following ___ BEGIN $value = "12345)" ; chop $value; print "$value"; ___ END On 8/2/07, Bret Goodfellow <[EMAIL PROTECTED]> wrote: > > Okay, I know this has to be simple, but because I am trying to truncate > or remove a special character

Cygwin like Module in perl

2007-08-04 Thread perl pra
Hi Gurus, I want to execute some of the unix commands on windows, Presently we are using Cygwin to run unix commands on Windows. Now I need to convert all the shell scripts into perl scritp. Is there any module in perl which allows me to execute unix commands on Windows. My windows version Wi

Re: Problem with my code

2007-08-05 Thread perl pra
hi jhon, If I use use opendir/readdir I am getting the default directories . and .. into the directoy handle. Is there any way tha i could eliminate this. For example if i want to copy all contentents of the directory(including sub directories) I open a directory Handle using opendir and read

Re: Problem with my code

2007-08-05 Thread perl pra
Thanks a lot Regards, Siva On 8/6/07, Mumia W. <[EMAIL PROTECTED]> wrote: > > On 08/06/2007 12:32 AM, Jeff Pang wrote: > > [...] > > while(my $obj = readdir DIR) { > > next if $obj =~ /^\.+$/; #or [...] > > More, precisely, you might use this: > >next if $obj =~ /\A\.\.?\z/; > > > >

perl script to crawl the web

2007-08-27 Thread perl pra
Hi Gurus, I need to write a perl script for a web spider that will crawl the web looking for specific file(s) that I specify (such as .mp3) and store the URL's into a mysql database. This needs to work on a linux server. I will also require a skip list that will skip certain sites that I input in

oops concepts

2007-09-12 Thread perl pra
Hi Gurus, I am aware of perl, Now I need to code in perl using oops. I have few queries Please clear my queries. What is bless? When bless used, What differene it makes if we bless a variable? How do we create a constructor of class. How do we call a method in class. how do we use public pri

testing Non_SOAP webservices

2008-02-26 Thread perl pra
Hi gurus, I need to test non-SOAP webservices.Can anybody tell how could i do that in perl. basically i need to send the following xml file as pay load to the url. - http

validating xml file with xsd

2008-02-28 Thread perl pra
Hi gurus, I wanted to modify xml file against xsd is there any perl module. Below are the details: XML file --- http://services.ws.faculte.com"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:ws="Webservices.xsd"> 1 XSDFile - http://services.ws.faculte.com/

Validating xml file against xsd

2008-02-28 Thread perl pra
Hi gurus, I wanted to validate xml file against specified xsd file. Is there any perl module which does this? Below are the details: XML file --- http://services.ws.faculte.com"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:ws="Webservices.xsd"> 1 XSDFile --

wsdl2perl,perl2xml

2008-04-07 Thread perl pra
Hi Gurus, I have a wsdl file i need to do the following in perl. I need to convert the wsdl into perl object or perl code. Then user perl object/perl code to generate the request xml files with different data types into the tags. can anybody give me some idea or Is there any other way of doing

blessing a hash

2008-04-15 Thread perl pra
Hi Gurus, How can I bless a hash. below is my code: package load; use strict; use warnings; sub new { my $class=shift; my %samp=('1' => "xxx", '2' => ""); } sub print { here i need to print $samp{1}

Re: blessing a hash

2008-04-15 Thread perl pra
Chas. Owens <[EMAIL PROTECTED]> wrote: > On Tue, Apr 15, 2008 at 9:54 AM, perl pra <[EMAIL PROTECTED]> wrote: > > Hi Gurus, > > > > How can I bless a hash. > > > > below is my code: > > > > package load; > > > >

Re: csv file question

2008-05-09 Thread perl pra
Hi please check the following script , you need not to handle null because it is in quotes,I have tested the following code it works fine use strict; use warnings; my %has; my $NULL=0; (open my $FH, '<', "mail.csv") or die "$!"; while(<$FH>) { my($one,$two,$three)=split(/\,/,$_); $has{$one

READ TEXT FILE AND SET EACH LINE AS ENV VARIABLE.

2006-10-14 Thread perl pra
hi ALL, I am new to perl and I need some help from you guys, I have text file which looks like following(its about 100 lines) OUTPUTDIR=C:\Project\Module\outputdir INPUTDIR=C:\Project\Module\Inputdir Now I have to use each and every line of the text file in my perlscript as command line argum

Fwd: READ TEXT FILE AND SET EACH LINE AS ENV VARIABLE.

2006-10-14 Thread perl pra
hi ALL, I am new to perl and I need some help from you guys, I have text file which looks like following(its about 100 lines) OUTPUTDIR=C:\Project\Module\outputdir INPUTDIR=C:\Project\Module\Inputdir Now I have to use each and every line of the text file in my perlscript as command line argum

Re: READ TEXT FILE AND SET EACH LINE AS ENV VARIABLE.

2006-10-14 Thread perl pra
thanks a lot . it works.. --perlpra On 10/14/06, Dr.Ruud <[EMAIL PROTECTED]> wrote: "perl pra" schreef: > Subject: READ TEXT FILE AND SET EACH LINE AS ENV VARIABLE. Don't shout. > Is there any other way of using the values in text file as varibales > in

how to configure the options.

2006-10-15 Thread perl pra
hi All, I have to call some perl scripts with command line arguements from another perl script. (some thing like this) perl -s -a $ENV{X} -b $ENV{Y} -c $ENV{Z} ; ( -a , -b, -c are also the arguments to call the script) ( the $ENV{x}=C:\xyz\abc,$ENV{Y}=abc,$ENV{Z}=5). I understand we

hwo to configure the Getopt:::STD options for command line arguments.

2006-10-16 Thread perl pra
hi All, I have to call some perl scripts with command line arguements from another perl script. (some thing like this) perl -s -a $ENV{X} -b $ENV{Y} -c $ENV{Z} ; ( -a , -b, -c are also the arguments to call the script) ( the $ENV{x}=C:\xyz\abc,$ENV{Y}=abc,$ENV{Z}=5). I understand we

How to pass string in command line argument.

2006-10-26 Thread perl pra
hi , I want to pass a command argument to perl script with double quotes (" ); below is my scenario my xml file is something like this .. 123 this is my name 234 this is others name my perl script is something like this my $xmlfile = "./samp1.xml"; my $ref =

killing processes

2006-10-27 Thread perl pra
s if i run it in unix or linux iam getting the following error kill: "`awk" is not a job kill: "{print }`" is not a job grep: write error on standard output: The pipe is being closed. need solution for above . and Is there any way in perl to kill processes independent of OS .. If there is hwo can i do that ? wating for solutions. Thanks Perl Pra

KILLING Processes in unix

2006-10-27 Thread perl pra
s if i run it in unix or linux iam getting the following error kill: "`awk" is not a job kill: "{print }`" is not a job grep: write error on standard output: The pipe is being closed. need solution for above . and Is there any way in perl to kill processes independent of OS .. If there is hwo can i do that ? wating for solutions. Thanks Perl Pra

Re: How to pass string in command line argument.

2006-10-27 Thread perl pra
hope that explains the problem i have.. Is there any other way to solve the problem ...other than the way which i am employing.. I am stuck up. please give me some solution. Waiting for solutions.. Thanks in advance Perl Pra On 10/26/06, Mumia W. <[EMAIL PROTECTED]> wrote: On 10/26/2006 0

type casting

2006-11-21 Thread perl pra
hi gurus, I have problem in type casting, here is the problem.. I get two values after greping and spliting a file( the values are some thing like this "367" and "522>\n") fetching of those two values from file would be in loop .. now for each interation i have to compare these values and r

Re: type casting

2006-11-22 Thread perl pra
Thanks John it worked Rohit On 11/22/06, John W. Krahn <[EMAIL PROTECTED]> wrote: perl pra wrote: > hi gurus, Hello, > I have problem in type casting, here is the problem.. That is not your problem. > I get two values after greping and spliting a file( the values a

Problem with replacing string in file

2006-11-25 Thread perl pra
hi Gurus, I have a problem to replace strings of file thru perl script. Here is the problem in detail... I have a text file some thing like this.. PROJ_FOLER=C:\Proj PROJ_LOGS=C:\PROJ\LOGS I have same line in config file some thing like this. PROJ_FOLDER=D:\Proj PROJ_LOGS=D:\PROJ\LOGS.

Re: Problem with replacing string in file

2006-11-29 Thread perl pra
thanks rob and Samstag.. have done it thanks a lot. On 11/25/06, Rob Dixon <[EMAIL PROTECTED]> wrote: Mumia W. wrote: > > On 11/25/2006 06:40 AM, perl pra wrote: >> >> Here is the code i have written... >> [snip] >> >> open $LOGFILE, '<&#x

xml read Error (while reading xml file with foriegn characters)

2007-01-07 Thread perl pra
Hi Guru, I have a problem with reading xml file which has foriegn characters (like plutôt) using xml::Simple. I get xml read error. Then I included encoding=iso8859-1 at the top of xml file. I am able to read the xml file , but the characters are changed to plut?t instead of plutôt, Becaus

XML READ ERROR

2007-01-08 Thread perl pra
Hi Gurus, I have a problem with reading xml file which has foriegn characters (like plutôt) using xml::Simple. I get xml read error. Then I included encoding=iso8859-1 at the top of xml file. I am able to read the xml file , but the characters are changed to plut?t instead of plutôt, Becau

problem install XML::LibXSLT on RHEL

2012-06-03 Thread Perl Pra
Hi Gurus, I have written a program that uses XML::LibXSLT. When i Run the program it complain about not findind the XML/LibXSLT @INC. I have installed perl-libxml and perl-lib-xslt successfully .Still my perl progam complains about XML::LibXSLT not installed. 1) * when I run Perl MakeFile.PL t

click on image in win32::IeAutomation

2012-07-31 Thread Perl Pra
I am using Win32::IE Automation to automate login of a page. I could provide username and password in the respectivve fields,But the login is a image on which I need to click. Below is the page source for that login image . So to click on the image I am doing the following. I used $ie->getIm