regex in <>

2004-11-05 Thread Jutu Subramanian, Srinivasan (Cognizant)

Hi,
pattern: abcdijklmnopuvwxyz

>From the above pattern, How to find the parameter $1=efgh and $2=qrst within <>. What 
>is the regex to written in perl?

regards
Srinivas

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Questions - using fork and exec

2004-11-04 Thread Jutu Subramanian, Srinivasan (Cognizant)

Hi,
I have some doubts in perl for the specification on windows perl version 5.4.0.

Please give me answers below questions.

1. Why fork and exec is not working on windows with effectiveley more than 64 threads?
2. $SIG{CHLD}='IGNORE' is not working on windows
3. If I do the double fork and the waitpid used with fork, It executes parent process 
then child exectues. After execution of child only next parent start to execute? What 
is the reason?
4. If I use the REAPER with fork and exec for the perl version 5.4.0, It executes 
parent process then child exectues. After execution of child only next parent start to 
execute? What is the reason?
   For the perl version 5.8.0 or more, It works fine as parent process first executes 
independent of child. But, While the first child is running for the 64th parent 
process executes, fork didn't work.

Can you please clarify? Thanks in advance.

regards
Srinivas

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: fork didn't work

2004-11-02 Thread Jutu Subramanian, Srinivasan (Cognizant)

Hi,
Thanks for your information.
Can I have sample code and where to get the ppd to install the Proc::background perl 
modules
If you know, Kindly tell me.

regards
Srinivas

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Roger Keane
Sent: Tuesday, November 02, 2004 9:08 PM
To: [EMAIL PROTECTED]
Subject: Re: fork didn't work


Jutu Subramanian, Srinivasan (Cognizant) wrote:

 >
 > Hi,
 > I need to execute a perl application from one perl application.
 > I should do with fork and exec. The execution of another one perl application is 
 > the independent
 > to the parent process.So, I don't want to use wind32::CreateProcess.

Using fork() in Perl on Windows means using threads.
If you are creating another process anyway, use system() or Proc::Background.
You should create new background processes with fork() on Unix platforms.
You should create new background processes with Win32::CreateProcess() on Windows 
platforms.
Proc::Background does that for you.

 > If I use the fork and exec, Need to do the process of Reaping dead children.

Proc::Background is able to reap finished child process.
Proc::Background is able to return the status of the finished child process.
Proc::Background is able to wait for child process to finish.
Proc::Background is able to kill the child process.
Proc::Background is able to check that the child process is still alive.

 >
 >This method is also wait for the forked process to complete its work. 
 > So, the next parent
 > process continues only after the child process exits.
 > It overcomes the fork limitation of compiled  in limit of 64  active threads.
 >
 > The output for the sample code is given below.
 > PARENT PROCESS=1
 > filter.pl called with parameter 1
 > PARENT PROCESS=2
 > filter.pl called with parameter 2
 > PARENT PROCESS=3
 > filter.pl called with parameter 3
 >
 > Actually, Firt perl program(parent)  is not to wait for the another perl 
 > program(child) completes.
 > Parent process keeps on running 24 hours. So, Child process getting accumulated in 
 > the process table.
 > If we harvesting the dead children by the method of Reaping dead children, We would 
 > be getting the
 > result as mentioned above. It is similar to the usage of wait at the parent 
 > process. Is it comfortable
 > to use the reaping dead children. Kindly advice me on this and revert back for any 
 > clarifications.


Proc::Background allows you to create and manage multiple background processes 
concurrently.
If you do not need to manage multiple background processes concurrently, use system().
If you only need to manage multiple background processes concurrently on Windows and 
want
to learn more about the Win32 API use Win32::CreateProcess.  If you need your code to 
run
on both Unix and Win32 systems, use Proc::Background.  If you do not want to learn 
about
the Win32 API, or want a simpler API than Win32::CreateProcess, use Proc::Background.

 > regards
 > Srinivas
 >

hope that helps,
rgr


___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: fork didn't work

2004-11-01 Thread Jutu Subramanian, Srinivasan (Cognizant)


Hi,
I need to execute a perl application from one perl application.
I should do with fork and exec. The execution of another one perl application is the 
independent to the parent process.So, I don't want to use wind32::CreateProcess.

If I use the fork and exec, Need to do the process of Reaping dead children.

   This method is also wait for the forked process to complete its work. So, 
the next parent process continues only after the child process exits.
It overcomes the fork limitation of compiled  in limit of 64  active threads.

The output for the sample code is given below.
PARENT PROCESS=1
filter.pl called with parameter 1
PARENT PROCESS=2
filter.pl called with parameter 2
PARENT PROCESS=3
filter.pl called with parameter 3

Actually, Firt perl program(parent)  is not to wait for the another perl 
program(child) completes. Parent process keeps on running 24 hours. So, Child process 
getting accumulated in the process table. If we harvesting the dead children by the 
method of Reaping dead children, We would be getting the result as mentioned above. It 
is similar to the usage of wait at the parent process. Is it comfortable to use the 
reaping dead children. Kindly advice me on this and revert back for any clarifications.

regards
Srinivas

-Original Message-
From: Roger Keane [mailto:[EMAIL PROTECTED]
Sent: Friday, October 29, 2004 11:47 PM
To: Jutu Subramanian, Srinivasan (Cognizant)
Subject: Re: fork didn't work


Jutu Subramanian, Srinivasan (Cognizant) wrote:

> Hai,
>
> The following code having,  compiled in limit of 64 active threads.
> I need to modify the following code as not caring about the exit status of dead 
> children with $SIG{CHLD}.
 > However, do check the status of the dead children and log any that exited 
 > abnormally and I need to run
 > more than the compiled limit of 64 active threads. Any idea how to modify the code?
>

Yes - do not use fork().  Use the Proc::Background module:
 http://search.cpan.org/~bzajac/Proc-Background-1.08/
which provides a nice platform independent wrapper around
Win32::CreateProcess (and fork) and does everything you
need.

rgr


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: fork didn't work

2004-10-29 Thread Jutu Subramanian, Srinivasan (Cognizant)

Hai,

The following code having,  compiled in limit of 64 active threads.
I need to modify the following code as not caring about the exit status of dead 
children with $SIG{CHLD}. However, do check the status of the dead children and log 
any that exited abnormally and I need to run more than the compiled limit of 64 active 
threads. Any idea how to modify the code?

regards
Srinivasan.JS
VNET:46609

start code
sub execFile
{
#Argument as Log file with location
my($logfile)[EMAIL PROTECTED];
   
#child process is created with fork.
my $newpid = fork();
   
#If the fork not successfull
if ( not defined $newpid )
{
# if return value of fork() is undef, something went wrong
&Logger::logEvent("fork didn't work: $!");
die "fork didn't work: $!\n";
}
elsif ( $newpid == 0 )
{
# if return value is 0, this is the child process
&Logger::logEvent("Executing the filter.pl file");
exec "perl.exe D:/called.pl";
}
}#end of execFile
end code

-Original Message-
From: Michael G. Jung [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 6:33 PM
To: Jutu Subramanian, Srinivasan (Cognizant)
Subject: RE: fork didn't work


I'm not a Win32 expert so I haven't copied the list. Have you though
tried setting the CREATE_NEW_PROCESS_GROUP flag?  I believe this will
make your spawned process independent of the parent process - in that if
the parent dies the child will still run.

Good luck.

--mikej


> -Original Message-
> From: Jutu Subramanian, Srinivasan (Cognizant)
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 27, 2004 8:26 AM
> To: Michael G. Jung; [EMAIL PROTECTED]
> Subject: RE: fork didn't work
>
>
>
> Hi.,
>  If I try with fork, Eventhough parent process is not there,
> Child process is created and child process runs the secondary
> application. I hope It is not possible instead of fork using
> Win32::Process::Create. Create makes the another process and
> it is dead when the parent process dead. Is there any other
> way to handle the child process should be running though
> parent is dead. Thanks in advance.
>
> regards
> Srinivas
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> Michael Jung
> Sent: Tuesday, October 26, 2004 5:47 PM
> To: [EMAIL PROTECTED]
> Subject: RE: fork didn't work
>
>
> I understand that each fork under activestate runs as a thread and I
> understnat that there is a compiled in limit of 64 active threads.
>
> Why don't you use Win32::Process::Create instead or fork?
>
> Hope this helps.
>
> --mikej
> Michael Jung
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of
> Jutu Subramanian, Srinivasan (Cognizant)
> Sent: Tuesday, October 26, 2004 7:56 AM
> To: [EMAIL PROTECTED]
> Subject: fork didn't work
>
>
> Hi ,
>
> If I execute the following program, It executes fine till the loop 64.
> fork didn't work at the 65th loop and exit.
> Error thrown:  fork didn't work: 65=Resource temporarily unavailable
> Perl version :  5.6
> OS:  windows 2000 SP4
> May I know the reason and how to handle this?
>
>
> start
> program-
>  use Win32::Process;
> use Cwd;
> for(my $i=1;$i<=100;$i++)
> {
>  &execFile("$i");
> }
> sub execFile
> {
> my $FILTERFILEPATH="D:/PerlEx/perleg/perltoperl/filter.pl";
>
> my($logfile)[EMAIL PROTECTED];
>
> #child process is created with fork.
> my $newpid = fork();
>
> if( $newpid == 0 )
> {
> exec "perl.exe $FILTERFILEPATH $logfile";
> }
> else
> {
> print("PARENT PROCESS=$logfile\n");
> }
> }#end of execFile
> end
> program-
>
> regards
> Srinivas
> This e-mail and any files transmitted with it are for the
> sole use of the
> intended recipient(s) and may contain confidential and privileged
> information.
> If you are not the intended recipient, please contact the
> sender by reply
> e-mail and destroy all copies of the original message.
> Any unauthorized review, use, disclosure, dissemination, forwarding,
> printing or copying of this email or any action taken in
> reliance on this
> e-mail is strictly
> prohibited and may be unlawful.
>
> Visit us at http://www.cognizant.com
>
> ___
> Perl-Win32-Users mail

RE: fork didn't work

2004-10-27 Thread Jutu Subramanian, Srinivasan (Cognizant)

Hi.,
 If I try with fork, Eventhough parent process is not there, Child process is created 
and child process runs the secondary application. I hope It is not possible instead of 
fork using Win32::Process::Create. Create makes the another process and it is dead 
when the parent process dead. Is there any other way to handle the child process 
should be running though parent is dead. Thanks in advance.

regards
Srinivas

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Michael Jung
Sent: Tuesday, October 26, 2004 5:47 PM
To: [EMAIL PROTECTED]
Subject: RE: fork didn't work


I understand that each fork under activestate runs as a thread and I
understnat that there is a compiled in limit of 64 active threads.

Why don't you use Win32::Process::Create instead or fork?

Hope this helps.

--mikej
Michael Jung

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jutu Subramanian, Srinivasan (Cognizant)
Sent: Tuesday, October 26, 2004 7:56 AM
To: [EMAIL PROTECTED]
Subject: fork didn't work


Hi ,

If I execute the following program, It executes fine till the loop 64.
fork didn't work at the 65th loop and exit.
Error thrown:  fork didn't work: 65=Resource temporarily unavailable
Perl version :  5.6
OS:  windows 2000 SP4
May I know the reason and how to handle this?


start
program-
 use Win32::Process;
use Cwd;
for(my $i=1;$i<=100;$i++)
{
 &execFile("$i");
}
sub execFile
{
my $FILTERFILEPATH="D:/PerlEx/perleg/perltoperl/filter.pl";

my($logfile)[EMAIL PROTECTED];

#child process is created with fork.
my $newpid = fork();

if( $newpid == 0 )
{
exec "perl.exe $FILTERFILEPATH $logfile";
}
else
{
print("PARENT PROCESS=$logfile\n");
}
}#end of execFile
end
program-

regards
Srinivas
This e-mail and any files transmitted with it are for the sole use of the
intended recipient(s) and may contain confidential and privileged
information.
If you are not the intended recipient, please contact the sender by reply
e-mail and destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding,
printing or copying of this email or any action taken in reliance on this
e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: fork didn't work

2004-10-27 Thread Jutu Subramanian, Srinivasan (Cognizant)
Title: Message




If anybody know to sort out the problem for the following
exception "run out of memory". It is
throwing for the scenario,
1. Whenever my tool
call another perl script using fork and
exec.
2. Whenever to read the CRC
value for the the invalid compressed data to inflate feed file used in
the zip file.
 If it is sortable, Please let
me know.
ERROR:
The instruction at "0x023b1c53" referenced memory at "0x0002". The memory
could not be "read". 
Click on OK to terminate the program
Click on CANCEL to debug the program.
script :Perl script version 5.6
OS:windows OS 2000 Service pack 4
regards
Srinivas
 
 

  -Original Message-From: Michael G. Jung
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, October 26, 2004
  5:45 PMTo: Jutu Subramanian, Srinivasan (Cognizant);
  [EMAIL PROTECTED]Subject: RE: fork didn't
  work
  
  Each fork under activestate runs as a
  thread. There is a compiled in limit of 64 active threads. 
  Why don’t you use
  Win32::Process::Create instead or fork?
  Hope this helps.
  --mikejMichael
  Jung
  

-Original Message-From:
[EMAIL PROTECTED]
    [mailto:[EMAIL PROTECTED] On Behalf Of
Jutu Subramanian, Srinivasan (Cognizant)Sent: Tuesday,
October 26, 2004 7:56 AMTo:
[EMAIL PROTECTED]Subject: fork didn't
work
Hi ,
 
If
I execute the following program, It executes fine till the loop
64. fork didn't work at the 65th loop and exit.
Error thrown:  fork didn't work: 65=Resource temporarily
unavailable Perl version :  5.6
OS   
:  windows 2000 SP4
May I know
the reason and how to handle this?
 
 
start
program-  use Win32::Process;use
Cwd;for(my
$i=1;$i<=100;$i++){ &execFile("$i");}
sub
execFile{    my
$FILTERFILEPATH="D:/PerlEx/perleg/perltoperl/filter.pl";   
my($logfile)[EMAIL PROTECTED];        #child process
is created with fork.    my $newpid =
fork();    if( $newpid == 0
)    {    exec
"perl.exe $FILTERFILEPATH $logfile";   
}    else   
{    print("PARENT
PROCESS=$logfile\n");    }}#end of execFileend
program-
 
regards
Srinivas

  
  
This e-mail and any files
  transmitted with it are for the sole use of the intended recipient(s)
  and may contain confidential and privileged information.If you are
  not the intended recipient, please contact the sender by reply e-mail
  and destroy all copies of the original message. Any unauthorized
  review, use, disclosure, dissemination, forwarding, printing or
  copying of this email or any action taken in reliance on this e-mail
  is strictly prohibited and may be unlawful.Visit us at
  http://www.cognizant.com

This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. 
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


fork didn't work

2004-10-26 Thread Jutu Subramanian, Srinivasan (Cognizant)
Title: IIS cgi's process ID

(B
(B
(BHi ,
(B 
(BIf 
(BI execute the following program, It executes fine till the loop 64. 
(Bfork didn't work at the 65th loop and exit.
(BError 
(Bthrown:  fork didn't work: 65=Resource temporarily 
(Bunavailable Perl version :  5.6
(BOS    
(B:  windows 2000 SP4
(BMay I know the 
(Breason and how to handle this?
(B 
(B 
(Bstart 
(Bprogram-  use Win32::Process;use Cwd;for(my 
(B$i=1;$i<=100;$i++){ &execFile("$i");}
(Bsub 
(BexecFile{    my 
(B$FILTERFILEPATH="D:/PerlEx/perleg/perltoperl/filter.pl";    
(Bmy($logfile)[EMAIL PROTECTED];        #child process is 
(Bcreated with fork.    my $newpid = 
(Bfork();    if( $newpid == 0 
(B)    {    exec 
(B"perl.exe $FILTERFILEPATH $logfile";    
(B}    else    
(B{    print("PARENT 
(BPROCESS=$logfile\n");    }}#end of execFileend 
(Bprogram-
(B 
(Bregards
(BSrinivas
(B
(BThis e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
(BIf you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. 
(BAny unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly 
(Bprohibited and may be unlawful.
(B
(B  Visit us at http://www.cognizant.com
(B___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: perl.exe application error

2004-10-26 Thread Jutu Subramanian, Srinivasan (Cognizant)

Hai everybody,

   I am getting the problem(perl.exe application error) while using the following perl 
script with fork. Can you please clarify?
windows os/ perl ver-5.6

ERROR:
The instruction at "0x023b1c53" referenced memory at "0x0002". The memory could 
not be "read".
Click on OK to terminate the program
Click on CANCEL to debug the program.

Can you please clarify how to solve the perl.exe Application error

start prog--
use Win32::Process;
for(my $i=0;$i<=1000;$i++)
{
&execFile("1");
}

sub execFile
{
my $FILTERFILEPATH="D:/PerlEx/perleg/Process/calledprog.pl";
   #Argument as Log file with location
my($logfile)[EMAIL PROTECTED];
   
#child process is created with fork.
my $newpid = fork();
   
#If the fork not successfull
if( not defined $newpid )
{
# if return value of fork() is undef, something went wrong
#print("fork didn't work: $!");
die "fork didn't work: $!\n";
}
elsif( $newpid == 0 )
{
# if return value is 0, this is the child process
sleep(1);
print("Executing the filter.pl file\n");
exec "perl.exe $FILTERFILEPATH $logfile";
}
else
{
print("PARENT PROCESS\n");
}
}#end of execFile
end prog--


regards
Srinivas

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


perl.exe application error

2004-10-21 Thread Jutu Subramanian, Srinivasan (Cognizant)

Hai everybody,

   I am getting the problem(perl.exe application error) while using the following perl 
script with fork. Can you please clarify?
windows os/ perl ver-5.6

ERROR:
The instruction at "0x023b1c53" referenced memory at "0x0002". The memory could 
not be "read".
Click on OK to terminate the program
Click on CANCEL to debug the program.

Can you please clarify how to solve the perl.exe Application error

start prog--
use Win32::Process;
for(my $i=0;$i<=1000;$i++)
{
&execFile("1");
}

sub execFile
{
my $FILTERFILEPATH="D:/PerlEx/perleg/Process/calledprog.pl";
   #Argument as Log file with location
my($logfile)[EMAIL PROTECTED];
   
#child process is created with fork.
my $newpid = fork();
   
#If the fork not successfull
if( not defined $newpid )
{
# if return value of fork() is undef, something went wrong
#print("fork didn't work: $!");
die "fork didn't work: $!\n";
}
elsif( $newpid == 0 )
{
# if return value is 0, this is the child process
sleep(1);
print("Executing the filter.pl file\n");
exec "perl.exe $FILTERFILEPATH $logfile";
}
else
{
print("PARENT PROCESS\n");
}
}#end of execFile
end prog--


regards
Srinivas

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


SFTP->put

2004-10-19 Thread Jutu Subramanian, Srinivasan (Cognizant)
Title: SFTP->put






Hi,


    It is getting hanging while I use the 

    $ssh->put($local,$remote);

 How to solve this?


regards

Srinivas



 -Original Message-

From:   Jutu Subramanian, Srinivasan (Cognizant)  

Sent:   Tuesday, October 19, 2004 3:53 PM

To: '[EMAIL PROTECTED]'

Subject:    FW: $ssh->put fails


Hi,

   For the given code, SFTP get connected. But, File is not transfered, 

It is throwing error as 

1. Couldn't get handle: Failure at C:/perl/site/lib/Net/SFTP.pm line 165.

2. Couldn't write to remote file: Failure at C:/perl/site/lib/Net/SFTP.pm line 259.

3. Couldn't close file: Failure at C:/perl/site/lib/Net/SFTP.pm line 199.


---start code--

$ssh =Net::SFTP->new($ip,%args) or die "Cannot connect to Host: $ip: $@";

my $puthandle=$ssh->put($local,$remote);

---end code-


Debug message as attached


  << File: debug.txt >> 

O/S : Windows

Perl version :5.6.0


 

regards

Srinivas




This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.  Visit us at http://www.cognizant.com___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


How to close the Net::SFTP

2004-10-19 Thread Jutu Subramanian, Srinivasan (Cognizant)
Title: How to close the Net::SFTP






Hi, 

   How to close the Net::SFTP connection?


regards

Srinivas




This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.  Visit us at http://www.cognizant.com___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


FW: $ssh->put fails

2004-10-19 Thread Jutu Subramanian, Srinivasan (Cognizant)
Title: FW: $ssh->put fails






Hi,

   For the given code, SFTP get connected. But, File is not transfered, 

It is throwing error as 

1. Couldn't get handle: Failure at C:/perl/site/lib/Net/SFTP.pm line 165.

2. Couldn't write to remote file: Failure at C:/perl/site/lib/Net/SFTP.pm line 259.

3. Couldn't close file: Failure at C:/perl/site/lib/Net/SFTP.pm line 199.


---start code--

$ssh =Net::SFTP->new($ip,%args) or die "Cannot connect to Host: $ip: $@";

my $puthandle=$ssh->put($local,$remote);

---end code-


Debug message as attached


 <> 

O/S : Windows

Perl version :5.6.0


 

regards

Srinivas




This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.  Visit us at http://www.cognizant.compciib06397: sftp: Sent SSH2_FXP_OPEN I:1 P:C:/file.txt
IO::Socket::INET at C:/perl/site/lib/Net/SSH/Perl/SSH2.pm line 295
IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 113
IO::Socket::INET at C:/perl/site/lib/Net/SSH/Perl/SSH2.pm line 295
IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 113
IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 119

Couldn't get handle: Failure at C:/perl/site/lib/Net/SFTP.pm line 165.

pciib06397: sftp: Sent message SSH2_FXP_WRITE I:2 O:0
IO::Socket::INET at C:/perl/site/lib/Net/SSH/Perl/SSH2.pm line 295
IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 113
IO::Socket::INET at C:/perl/site/lib/Net/SSH/Perl/SSH2.pm line 295
IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 113
IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 119
Couldn't write to remote file: Failure at C:/perl/site/lib/Net/SFTP.pm line 259.
pciib06397: sftp: Sent message T:4 I:3
IO::Socket::INET at C:/perl/site/lib/Net/SSH/Perl/SSH2.pm line 295
IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 113
IO::Socket::INET at C:/perl/site/lib/Net/SSH/Perl/SSH2.pm line 295
IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 113
IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 119
Couldn't close file: Failure at C:/perl/site/lib/Net/SFTP.pm line 199.
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


$ssh->put fails

2004-10-19 Thread Jutu Subramanian, Srinivasan (Cognizant)
Title: $ssh->put fails






Hi,

   For the given code, SFTP get connected. But, File is not transfered, 

It is throwing error as 

1. Couldn't get handle: Failure at C:/perl/site/lib/Net/SFTP.pm line 165.

2. Couldn't write to remote file: Failure at C:/perl/site/lib/Net/SFTP.pm line 259.

3. Couldn't close file: Failure at C:/perl/site/lib/Net/SFTP.pm line 199.


---start code--

$ssh =Net::SFTP->new($ip,%args) or die "Cannot connect to Host: $ip: $@";

my $puthandle=$ssh->put($local,$remote);

---end code-


Debug message as attached


 <> 


regards

Srinivas




This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.  Visit us at http://www.cognizant.compciib06397: sftp: Sent SSH2_FXP_OPEN I:1 P:C:/file.txt
IO::Socket::INET at C:/perl/site/lib/Net/SSH/Perl/SSH2.pm line 295
IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 113
IO::Socket::INET at C:/perl/site/lib/Net/SSH/Perl/SSH2.pm line 295
IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 113
IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 119

Couldn't get handle: Failure at C:/perl/site/lib/Net/SFTP.pm line 165.

pciib06397: sftp: Sent message SSH2_FXP_WRITE I:2 O:0
IO::Socket::INET at C:/perl/site/lib/Net/SSH/Perl/SSH2.pm line 295
IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 113
IO::Socket::INET at C:/perl/site/lib/Net/SSH/Perl/SSH2.pm line 295
IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 113
IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 119
Couldn't write to remote file: Failure at C:/perl/site/lib/Net/SFTP.pm line 259.
pciib06397: sftp: Sent message T:4 I:3
IO::Socket::INET at C:/perl/site/lib/Net/SSH/Perl/SSH2.pm line 295
IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 113
IO::Socket::INET at C:/perl/site/lib/Net/SSH/Perl/SSH2.pm line 295
IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 113
IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 119
Couldn't close file: Failure at C:/perl/site/lib/Net/SFTP.pm line 199.
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Invalid compressed data in zip file

2004-10-18 Thread Jutu Subramanian, Srinivasan (Cognizant)

Hi,
I need to test the following zipfile with the following script for the testing 
purpose.

#
Zip file: filname.zip can be opened. But, the zipped file(file which is inside the 
zip) can not be opened. It shows the Error: Invalid compressed data to inflate.
#
script:
#
my $status = $zip->read( $zippedname );
#Create object to CRCComputingFileHandle
my $fh = CRCComputingFileHandle->new();
#To each member/file of the zip file
foreach my $member ($zip->members())
{
#Method for compression
$member->desiredCompressionMethod(COMPRESSION_STORED);
#Filehandle return to status
$status = $member->extractToFileHandle($fh); #exit the flow.
}
#

If I test the script with the above zip file, The script dies at the place 
extractToFileHandle.
How do I handle this. (Even I tried with the 'eval' also. It is not working)
please let me know answer if anybody know?

regards
Srinivas

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Query on SFTP

2004-10-12 Thread Jutu Subramanian, Srinivasan (Cognizant)

Dear All,

  I am getting the following error and how to solve this. Probably, I got the 
answer from the site search.cpan that states it need to install the Mat::GMP. If I am 
correct, I have tried with that also from the path
http://www.kalinabears.com.au/w32perl/math_gmp.html
Please let me know if anybody know the answer.


Error:
SSH2 is the only supported protocol under MSWin32! at 
C:/perl/site/lib/Net/SSH/W32Perl.pm line 57,  line 1.

program:

sub getconnection()
{
### ip and %args description
$ssh =Net::SFTP->new($ip,%args) or die "Cannot connect to Host: $ip: $@";
}

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


CRC computing flow exit for Invalid compressed data

2004-10-04 Thread Jutu Subramanian, Srinivasan (Cognizant)

In the CRCComputingFileHandle.pm,

sub getCRCValue
{

foreach my $member ($zip->members())
{
my $compressedSize = $member->compressedSize();
$status = $member->extractToFileHandle($fh); This part###
}
}

For the above coding, If the zip file CRC computed is success, It return status.
But, If it is failure (for the Invalid compressed data), It supposed to be written 
empty or other status. Instead of that it exit the flow. I tried with 'eval' also. Is 
there any other way to handle the exception for this.
Kindly let me know if anybody know the answer for this.

R
Srinivas

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


close SFTP in perl

2004-10-04 Thread Jutu Subramanian, Srinivasan (Cognizant)

Hi,

How to close the SFTP Connection in perl?
I have several environment like E1,E2 and E3.
If I open the connection individually, I need to close the connection individually 
after the work.
How to handle the close SFTP in perl.
If anybody knows, Kindly inform me.

regards
Srinivas

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


how to use fx2txt($status)

2004-09-29 Thread Jutu Subramanian, Srinivasan (Cognizant)
Title: how to use fx2txt($status)






Hi,

Anybody know how to use the fx2txt($status) and any sample program. (sample example along with put, Net::SFTP connection)

and how to read the sftp status and code?


regards

Srinivasan.JS




This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.  Visit us at http://www.cognizant.com___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Error in the Perl coding

2004-09-28 Thread Jutu Subramanian, Srinivasan (Cognizant)

hai,

How to handle the error case for the following.

1.  my $sftp= Net::SFTP->new($hostname, %sftp_args) or $ftpstatus=1;

If the above said is unsuccessful, ftpstatus should be '1' . But, For my case,
If the username, password is wrong. It terminates the flow.
I m getting the error as 'Error: Permission denied at C:/Perl/site/lib/Net/SFTP.pm 
line 37'

I need to put the above statement in a loop to retry to establish the connection.


2. How SFTP code, SFTP status, SFTP message to be handled like FTP status,code and 
message
   and SFTP close and SFTP binary mode to be handled?

Kindly reply if anybody knows this.

regards
Srinivasan.JS

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


FTP to SFTP

2004-09-19 Thread Jutu Subramanian, Srinivasan (Cognizant)
Title: FTP to SFTP






Hi,


I need to migrate the coding from FTP to SFTP in perl 5.6.1 on windows box. How can I start the coding? Is it using SFTP or using W32Perl ?

If anybody know the net address for this coding part, Please send it to me.

Can you please clarify the following questions 

1. can you please explain the difference between the using Net::SFTP and Net::SSH::W32Perl.?

2. What is the difference between using Net::SSH::Perl and Net::SSH::W32Perl?


regards

Srinivasan.JS

VNET:46609




This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.  Visit us at http://www.cognizant.com___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Math::gmp

2004-09-19 Thread Jutu Subramanian, Srinivasan (Cognizant)
Title: Math::gmp






To install  Math::GMP, We need to install a version of the GMP library.  can

get it at the homepage of GMP:  http://www.swox.com/gmp/

But, I m not getting the GMP libraries from the site. How do we install these libraries and from where need to download.

Any idea?


regards

Srinivasan.JS




This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.  Visit us at http://www.cognizant.com___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: library files- Math::pari

2004-09-18 Thread Jutu Subramanian, Srinivasan (Cognizant)

Hi,
Thanks..I started from starting point to install the Net::SFTP.
Successfully installed. Thanks once again. But, I am getting this problem, How to 
solve it?

problem:
Can't map service name 'ssh' to port number at D:/Perl/site/lib/Net/SFTP.pm line 36

source:
---start---
$ssh =Net::SFTP->new($ip,%args);
---end---


regard
Srinivasan.JS


-Original Message-
From: Sisyphus [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 18, 2004 3:57 AM
To: Jutu Subramanian, Srinivasan (Cognizant)
Cc: perl-win32-users
Subject: Re: library files- Math::pari


Jutu Subramanian, Srinivasan (Cognizant) wrote:
> Thanks for your reply. It successfully removed and installed the Math::Pari. But, 
> Again getting the same error? I am really wondering why it is not working for me. Or 
> I need to install from starting. Is there any problem with the installation process? 
> Guide me if you have any idea in the process?
>

I don't know why this is happening. All I do know is that the error
message is teling you that you have version 2.010500 of Pari.dll and
version 2.010501 of Pari.pm. (I don't know how that has come to happen.)

If that's all that's wrong then one solution would be to grab version
2.010500 of Pari.pm (eg from CPAN) and manually put that file in
C:\Perl\site\lib\Math\ .

perl -MMath::Pari -e "print $Math::Pari::VERSION;"

That *should* produce exactly the same error. You might check that it
does and let us know if it *does not* produce the error.

If there's still a problem then it probably is best to start all over
again from the beginning and install as per the intructions on Scott's
webpage (that I refferred you to a few posts back) - however, with
Scott's ppms I believe that you don't get *both* SSH protocols as it
doesn't provide a Math::GMP.

Cheers,
Rob



This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


GMP library

2004-09-13 Thread Jutu Subramanian, Srinivasan (Cognizant)
Title: GMP library






Hi,

Anybody know how to install the GMP library in windows box. 




This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.  Visit us at http://www.cognizant.com___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: W32ssh.

2004-09-13 Thread Jutu Subramanian, Srinivasan (Cognizant)
Title: RE: W32ssh.






Hi,


I am getting this problem for the code in code.pl and error in the err.txt.

The error clearly says

Can't locate Math/GMP.pm in @INC (@INC contains: C:\Program Files\ActiveState Komodo 2.5 C:/Perl/lib C:/Perl/site/lib .)

But, If I try to install Math/GMP.pm,  I need to install the package GMP library. From where and how to install this package. 

Please check it out. Kindly tell me if you have any idea.



 << File: code.pl >>  << File: err.txt >> 

 <>  <> 




This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.  Visit us at http://www.cognizant.com09/14/2004 11:50:12 Original attachment (code.pl) was Deleted.  The original 
attachment was blocked from delivery due to current attachment blocking rules.  You 
can safely save or delete this replacement attachment.Name "FTPUtil::SFTPSTATUS" used only once: possible typo at 
D:\PerlEx\perleg\NETSFTP\sftp.pl line 17.
<<<---Preparing to open connection to 
E:IP=<199.2.110.33>,PORT=<21>,USERNAME=--->>>
pciib06397: Reading configuration data /.ssh/config
pciib06397: Reading configuration data /etc/ssh_config
pciib06397: Connecting to 199.2.110.33, port 21.
pciib06397: Socket created, turning on blocking...
pciib06397: Remote protocol version ., remote software version 
Can't locate Math/GMP.pm in @INC (@INC contains: C:\Program Files\ActiveState Komodo 
2.5 C:/Perl/lib C:/Perl/site/lib .) at C:/Perl/site/lib/Net/SSH/Perl/Util/SSH1MP.pm 
line 7,  line 1.
BEGIN failed--compilation aborted at C:/Perl/site/lib/Net/SSH/Perl/Util/SSH1MP.pm line 
7,  line 1.
Compilation failed in require at C:/Perl/site/lib/Net/SSH/Perl/Util.pm line 56,  
line 1.
BEGIN failed--compilation aborted at C:/Perl/site/lib/Net/SSH/Perl/Key/RSA1.pm line 6, 
 line 1.
Compilation failed in require at C:/Perl/site/lib/Net/SSH/Perl/SSH1.pm line 13,  
line 1.
BEGIN failed--compilation aborted at C:/Perl/site/lib/Net/SSH/Perl/SSH1.pm line 13, 
 line 1.
Compilation failed in require at C:/Perl/site/lib/Net/SSH/Perl.pm line 51,  line 
1.
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: installing Net::SSHW32 issue.

2004-09-13 Thread Jutu Subramanian, Srinivasan (Cognizant)

Hi,
Thanks for your help.
Pre requisites problem solved. But, After that it throws the make file problem. Can 
you tell me how to sort out.
I have attached the cmd.





-Original Message-
From: Sisyphus [mailto:[EMAIL PROTECTED]
Sent: Monday, September 13, 2004 7:07 PM
To: Jutu Subramanian, Srinivasan (Cognizant)
Cc: perl-win32-users
Subject: Re: installing Net::SSHW32 issue.


Jutu Subramanian, Srinivasan (Cognizant) wrote:
>
> Hi,
> While trying to install the Windows Secure shell perl module, I am gettting this 
> problem.
>
>
>  <>
> While trying to install the IO-Select-Trap, I am getting the following problem.
>
>  <>
>
> Can you please sort out the problem asap.
>

Try running:
nmake clean
followed by:
perl makefile.pl
followed by:
nmake test
followed by:
nmake install

If that doesn't work just copy Trap.pm to your
C:/Perl/site/lib/IO/Select/ folder. (If the folder doesn't exist, then
create it.)

Cheers,
Rob



This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.comD:\Net-SSH-W32Perl-0.05>nmake test

Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

"Makefile out-of-date with respect to C:\Perl\lib\Config.pm"
"Cleaning current config before rebuilding Makefile..."
NMAKE -f Makefile.old clean > NUL || rem

Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

C:\Perl\bin\Perl.exe "-IC:\Perl\lib" "-IC:\Perl\lib" Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Net::SSH::W32Perl
"==> Your Makefile has been rebuilt. <=="
"==> Please rerun the make command.  <=="
false
'false' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code '0x1'
Stop.
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


installing Net::SSHW32 issue.

2004-09-13 Thread Jutu Subramanian, Srinivasan (Cognizant)
Title: installing Net::SSHW32 issue.







Hi,

While trying to install the Windows Secure shell perl module, I am gettting this problem. 



 <> 

While trying to install the IO-Select-Trap, I am getting the following problem.


 <> 


Can you please sort out the problem asap.




This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.  Visit us at http://www.cognizant.com
C:\Perl\lib\Net-SSH-W32Perl-0.05.tar\Net-SSH-W32Perl-0.05>perl makefile.pl
Warning: prerequisite IO::Select::Trap failed to load: Can't locate IO/Select/Tr
ap.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at (eval 12) line
3.
Warning: prerequisite IO::String failed to load: Can't locate IO/String.pm in @I
NC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at (eval 13) line 3.
Writing Makefile for Net::SSH::W32PerlC:\Perl\lib\IO-Select-Trap-0.032.tar\IO-Select-Trap-0.032>nmake

Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

"Makefile out-of-date with respect to Makefile.PL C:\Perl\lib\Config.pm"
"Cleaning current config before rebuilding Makefile..."
NMAKE -f Makefile.old clean > NUL || rem

Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

C:\Perl\bin\Perl.exe "-IC:\Perl\lib" "-IC:\Perl\lib" Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for IO::Select::Trap
"==> Your Makefile has been rebuilt. <=="
"==> Please rerun the make command.  <=="
false
'false' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code '0x1'
Stop.___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


error in Net::SFTP

2004-09-07 Thread Jutu Subramanian, Srinivasan (Cognizant)
Title: error in Net::SFTP






Hi,


I am getting the following error after installing and executing the Net::SFTP application in perl.

Can you please clarify?




Can't locate Net/SSH/Perl/Buffer.pm in @INC (@INC contains: C:\Program Files\ActiveState Komodo 2.5 C:/Perl/lib C:/Perl/site/lib .) at C:/Perl/site/lib/Net/SFTP/Buffer.pm line 6.

BEGIN failed--compilation aborted at C:/Perl/site/lib/Net/SFTP/Buffer.pm line 6.

Compilation failed in require at C:/Perl/site/lib/Net/SFTP/Attributes.pm line 7.

BEGIN failed--compilation aborted at C:/Perl/site/lib/Net/SFTP/Attributes.pm line 7.

Compilation failed in require at C:/Perl/site/lib/Net/SFTP.pm line 8.

BEGIN failed--compilation aborted at C:/Perl/site/lib/Net/SFTP.pm line 8.

Compilation failed in require at D:\PerlEx\perleg\NETSFTP\sftp.pl line 1.

BEGIN failed--compilation aborted at D:\PerlEx\perleg\NETSFTP\sftp.pl line 1.



regards

Srinivasan.JS




This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.  Visit us at http://www.cognizant.com___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: exec usage

2004-09-03 Thread Jutu Subramanian, Srinivasan (Cognizant)

I am having 2 perl program perlone.pl and perltwo.pl.
I need to call perltwo.pl program with argument from one perlone.pl.
perl1.pl does not wait around for perltwo.pl to complete. Now can you please give me 
an idea, How can I use it AS perl 5.6.0 in Win32 ?


perlone.pl

# Some perl codings
perl -w perltwo.pl argument
print "End of the perlone.pl\n";


regards
Srinivasan.JS


-Original Message-
From: $Bill Luebkert [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 1:40 PM
To: Jutu Subramanian, Srinivasan (Cognizant)
Cc: perl-win32-users
Subject: Re: exec usage


Jutu Subramanian, Srinivasan (Cognizant) wrote:

>
> How can I  execute a program seperately by passing parameter as an
> argument in win32.
> Shall I use exec "myprog.pl" "parameter" ?

I would try:
exec "perl myprog.pl parameter";

'perl' may not be necessary if it's properly associated.

> Or any other ways to use in ?

exec will cause your script to cease control and to be replaced by the
other script.  You may want to look at system (perlfunc) if that's not
your wish.  Also look at `` (perlop) to do a system and capture output.

--
  ,-/-  __  _  _ $Bill LuebkertMailto:[EMAIL PROTECTED]
 (_/   /  )// //   DBE CollectiblesMailto:[EMAIL PROTECTED]
  / ) /--<  o // //  Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_http://dbecoll.tripod.com/ (My Perl/Lakers stuff)

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


exec usage

2004-09-03 Thread Jutu Subramanian, Srinivasan (Cognizant)
Title: exec usage







How can I  execute a program seperately by passing parameter as an argument in win32.

Shall I use exec "myprog.pl" "parameter" ?

Or any other ways to use in ?

Please help me asap.


regards

Srinivasan.JS




This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.  Visit us at http://www.cognizant.com___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs