need help

2008-08-23 Thread kilaru rajeev
Hi Everyone, I have a situation where I need to open a sftp connection, need to pull the file and have to verify receipt of local file after that have to rename the file in remote dir. For that, I wrote the following code. The code is giving the output given below and coming out of the program.

opening sftp command as a file

2008-03-30 Thread kilaru rajeev
Hi, I am trying to run the following sub routine to copy a file from remote dir to local. I am passing three arguments remote file, local file and the host along with the user name. But, the program is not working. could somebody please help me. sub getFile { my ( $rFile, $lFile, $rHost ) = @_;

Getting error in Net::SFTP with get function

2007-10-31 Thread kilaru rajeev
Hi All, I have the following code as part of my program; print ---= $file, $localFile\n; $sftp - get( $file, $localFile ) || warn(er0r _--- $!.$sftp-status.\n);^M Even though it has downloaded the file properly, it is giving the following message: ---=

Re: Getting error message while installing Crypt-DSA module

2007-10-23 Thread kilaru rajeev
PROTECTED] wrote: On Oct 23, 1:15 am, [EMAIL PROTECTED] (Kilaru Rajeev) wrote: Hi All, I am getting the following error in the *make test* part while istalling the *Crypt::DSA* module. Please give me an advice how to procede. t/03-keygen.*Math::BigInt: couldn't load specified math

Getting error message while installing Crypt-DSA module

2007-10-22 Thread kilaru rajeev
Hi All, I am getting the following error in the *make test* part while istalling the *Crypt::DSA* module. Please give me an advice how to procede. t/03-keygen.*Math::BigInt: couldn't load specified math lib(s), fallback to Math::BigInt::Calc* at

Re: Learning Perl

2007-10-09 Thread kilaru rajeev
I think Learning perl is a better choice as per my knowledge. You can go for the remaining after this. Thanks, Rajeev Kilaru On 10/9/07, Paul Lalli [EMAIL PROTECTED] wrote: On Oct 9, 7:28 am, [EMAIL PROTECTED] (Bhargav Purohit) wrote: Instead to of starting directly with Camel Book(Learning

Re: Getting error with make while installing the module

2007-09-19 Thread kilaru rajeev
: --- kilaru rajeev [EMAIL PROTECTED] wrote: *cc* is installed at */usr/ucb/cc* but it is pointing to * /opt/SUNWspro/bin/cc.* Please help me to make it point to the /usr/bin/cc. You may take a look at Makefile.PL and change something about the complier. But as a fast solution,how about

Unable to locate make

2007-08-30 Thread kilaru rajeev
Hi All, I got a problem while installing the module with *CPAN.pm* shell. At the begining, it was asked to for some confiuguration settings. It could able to find almost all settings except make. At first, I ignored that and moved to install the modules but it is saying like the make test failed.

Re: Unable to locate make

2007-08-30 Thread kilaru rajeev
, it is not asking for the location again. How can I reconfigure the cpan.pm shell settings. Thanks, Chas On 8/30/07, Chas Owens [EMAIL PROTECTED] wrote: On 8/30/07, kilaru rajeev [EMAIL PROTECTED] wrote: Hi All, I got a problem while installing the module with *CPAN.pm* shell. At the begining

Re: Net:SFTP Configuration

2007-08-27 Thread kilaru rajeev
: Received stat reply T:101 I:0 Couldn't stat remote file: No such file or directory at sample.pl line 32 ERROR with get: No such file or directory Finished * **I am not getting what it meant. Could you please helpme? Thanks, Rajeev Kilaru On 8/24/07, kilaru rajeev [EMAIL PROTECTED] wrote: Hi

Re: Net:SFTP Configuration

2007-08-24 Thread kilaru rajeev
(0xcdbe18) HASH(0xcdbec0) HASH(0xcdbf68) I am not sure about the return value of the $sftp-ls(). I thought it will return a list as in Net::FTP. How I should use it? Please help me. Thanks, Rajeev Kilaru On 8/16/07, Chas Owens [EMAIL PROTECTED] wrote: On 8/16/07, kilaru rajeev [EMAIL

Re: Net:SFTP Configuration

2007-08-24 Thread kilaru rajeev
Hi Chas, It is perfect. Thanks a lot. Regards, Rajeev Kilaru On 8/24/07, Chas Owens [EMAIL PROTECTED] wrote: On 8/24/07, kilaru rajeev [EMAIL PROTECTED] wrote: Hi Chas, I was not given the proper arguments to the *new* function. That is why, it was failed to connect. This time I

Re: Net:SFTP Configuration

2007-08-16 Thread kilaru rajeev
Message- From: kilaru rajeev [EMAIL PROTECTED] Sent: Aug 16, 2007 1:28 PM To: beginners@perl.org Subject: Net:SFTP Configuration Hi All, I have installed Net:SFTP on my UNIX (SOLARIS) machine. I have generated the Public and Private key pair. I have installed the Public on my remote

Re: Net:SFTP Configuration

2007-08-16 Thread kilaru rajeev
to the server. Thanks, Rajeev Kilaru On 8/16/07, Chas Owens [EMAIL PROTECTED] wrote: On 8/16/07, kilaru rajeev [EMAIL PROTECTED] wrote: Hi Jeff, I could able to connect to the remote machine with normall ssh. When I treid to connect through a perl program it is giving following error

Net:SFTP Configuration

2007-08-15 Thread kilaru rajeev
Hi All, I have installed Net:SFTP on my UNIX (SOLARIS) machine. I have generated the Public and Private key pair. I have installed the Public on my remote machine with the server as OpenSSH. All the dependent modules are also installed. Please let me know what are all the remaining things I need

Global symbol $var1 requires explicit

2007-07-08 Thread kilaru rajeev
Hi, Please explain me whats wrong with the following code as it is respondingwith the some errors. #!/usr/bin/perl -w use strict; $var1 = 'Hello World'; # always wanted to do that :-) $var2 = $var1\n; print $var2; exit; output: Global symbol $var1 requires explicit package name at sample.pl

Re: Global symbol $var1 requires explicit

2007-07-08 Thread kilaru rajeev
On 7/8/07, Ken Foskey [EMAIL PROTECTED] wrote: On Sun, 2007-07-08 at 22:27 +0530, kilaru rajeev wrote: Hi, Please explain me whats wrong with the following code as it is respondingwith the some errors. #!/usr/bin/perl -w use strict; # Since you are use strict you must declare all

How to add a dir to @INC

2007-03-21 Thread kilaru rajeev
Hi, Can anybody help me to add a directory to @INC variable? Thanks, Rajeev Kilaru

Re: How to add a dir to @INC

2007-03-21 Thread kilaru rajeev
Thank you for your help, Rajeev Kilaru On 3/21/07, Rob Dixon [EMAIL PROTECTED] wrote: kilaru rajeev wrote: Hi, Can anybody help me to add a directory to @INC variable? use lib '/my/dir'; Take a look at perldoc lib HTH, Rob

Re: FW: Array manipulation

2007-02-13 Thread kilaru rajeev
Hi Irfan, Please find the following way. @a = (1,2,3,4,2,3,5); print --- @a\n; my %b = undef; foreach (@a){ print --- $_; $b{$_} =undef; } @a = keys(%b); print \n### @a; rgds, Rajeev Kilaru On 2/13/07, Sayed, Irfan (Irfan) [EMAIL PROTECTED] wrote: Hi All, I have one

Re: FW: Array manipulation

2007-02-13 Thread kilaru rajeev
I got the output like .. P:\C:\Documents and Settings\rkilaru\Desktop\prog.pl --- 1 2 3 4 2 3 5 --- 1--- 2--- 3--- 4--- 2--- 3--- 5 ### 4 1 3 2 5 P:\ Rajeev On 2/13/07, kilaru rajeev [EMAIL PROTECTED] wrote: Hi Irfan, Please find the following way. @a = (1,2,3,4,2,3,5); print

Re: command execution

2007-02-02 Thread kilaru rajeev
Hi Irfan, You can capture the exit status in the following way. system(command); $ExitStatus = $? 8; Regards, Rajeev kilaru On 2/2/07, Sayed, Irfan (Irfan) [EMAIL PROTECTED] wrote: Hi All, I am executing following script. but even if the command execution fails it prints as success exit

Re: command execution

2007-02-02 Thread kilaru rajeev
is the meaning of $? 8; Regards Irfan. -- *From:* kilaru rajeev [mailto:[EMAIL PROTECTED] *Sent:* Friday, February 02, 2007 8:23 PM *To:* Sayed, Irfan (Irfan) *Subject:* Re: command execution Is it working, Irfan? Rajeev On 2/2/07, kilaru rajeev [EMAIL PROTECTED] wrote: Hi

module to calculate time difference between two

2006-12-12 Thread kilaru rajeev
Hi All, I want to calculate the time difference(hh:mm:ss) between two when they are provided with date and time. Could anyone provide the module to handle this? -- Thanks and Regards, Rajeev Kilaru Associate Charles River Team Franklin Templeton Technologies (FTT-ISC) Hyderabad Work Pone:

Re: How to read unicode data?

2006-12-07 Thread kilaru rajeev
Thanks for your help. Rajeev Kilaru On 12/7/06, zentara [EMAIL PROTECTED] wrote: On Tue, 5 Dec 2006 19:18:50 +0530, [EMAIL PROTECTED] (kilaru rajeev) wrote: Hi All, I got a Little-endian UTF-16 Unicode C program character data, with very long lines, with CRLF line terminators file. I want

Error while connecting to database

2006-12-06 Thread kilaru rajeev
install_driver(Oracle) failed: Can't load '/u05/crd.v814/shared/perl/lib/site_perl/5.8.3/sun4-solaris/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so.1: perl5.8.3: fatal: libclntsh.so.9.0: open failed: No such file or directory at

Re: Error while connecting to database

2006-12-06 Thread kilaru rajeev
line 315 Regards, Rajeev Kilaru On 12/7/06, kilaru rajeev [EMAIL PROTECTED] wrote: install_driver(Oracle) failed: Can't load '/u05/crd.v814/shared/perl/lib/site_perl/5.8.3/sun4-solaris/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so.1: perl5.8.3: fatal: libclntsh.so.9.0: open failed

How to read unicode data?

2006-12-05 Thread kilaru rajeev
Hi All, I got a Little-endian UTF-16 Unicode C program character data, with very long lines, with CRLF line terminators file. I want to sort it and then what to extract some patterns from it. Could anyone let me know about this? I wrote the program as it is an ordinary text file but i didnt get

Re: Perl Query - Conversion of EXE file

2006-12-05 Thread kilaru rajeev
Jenda, I got a doubt here. Suppose the file does not contain any thing perl code. If it contains only some data for configuration, is it possible to include by using 'require' ? Rajeev On 12/5/06, Jenda Krynicky [EMAIL PROTECTED] wrote: From: Dharshana Eswaran [EMAIL PROTECTED] Anyway ..

Re: Perl Query - Conversion of EXE file

2006-11-30 Thread kilaru rajeev
Hi Dharshana, Just Zipping the file will wont work. You have to include them in program with 'use or 'require'. Try to do that. Rajeev On 12/1/06, Dharshana Eswaran [EMAIL PROTECTED] wrote: Hi Randal, I am trying to generate an exe file from few perl programs. I have 4 files which are

Re: How to make a perl program to an exe file

2006-11-21 Thread kilaru rajeev
Hi Dharsana, Please check this link. http://perldoc.perl.org/perlcc.html I hope this will clarify your questions. Regards, Rajeev Kilaru On 11/21/06, kilaru rajeev [EMAIL PROTECTED] wrote: There are some programs call perlcc like that. You can change Perl files as the executable. rgds

Re: Looking for a Perl module for proper IP sorting

2006-11-13 Thread kilaru rajeev
Hi Roman, Please sort the IP addresses with this way could help you, @list = sort { $b = $a } @ip_addresses; rgds, Rajeev -- Forwarded message -- From: Roman Daszczyszak [EMAIL PROTECTED] Date: Nov 13, 2006 7:08 PM Subject: Looking for a Perl module for proper IP sorting To:

getting the exported variable into a perl variable

2006-08-11 Thread kilaru rajeev
Hi, I got a program which will access a exported variable in the shell. Can anyone help me with this?

Copying files in windows from one directory to the other

2006-07-12 Thread kilaru rajeev
Hi, I got some files in $BNY_DOWNLOAD which is a directory in windows. Now i have to identify most recent one in that file and have to move it $BNY_DATA directory it is also a directory. To identify the most recent file I used sort command and sorted it by using -M and and space ship operators.

Searching for a word in a file ....... need a faster way.

2006-07-04 Thread kilaru rajeev
Hi all, I'm searching for a word in a file. I wrote the code like this. while ( FH ) { if ( /search_pattern/ ) { executebale. } } or Can I use like, @list = FH; grep();# using grep on list Let me know a faster way to search. Regards, Rajeev

About Encryption/ Decription

2006-06-16 Thread kilaru rajeev
Hi, Please tell me how can we encrypt or decript file. Please give me the information regarding this. Regards, Rajeev

How to display the output of perl program on a web browser

2006-01-25 Thread kilaru rajeev
Hi, I'm working on unix system with perl. I'm getting some data from database using DBI module. I want to display its output on a web browser like netscape or firefox. Please help me in this. thanks and regards, Rajeev kilaru