Checking the Machine's Operating System

2005-11-21 Thread Mazhar
Hi Folks, I have a requirement from the clinet where in i have to take control of the machines (either by telnet,SSH). My first point to be addressed is how can i take a remote machine TELNET through perl script and also once i take the same i have to check the type of operating system and then

Re: Checking the Machine's Operating System

2005-11-21 Thread Dan Klose
On Mon, 2005-11-21 at 14:16 +0530, Mazhar wrote: Hi Folks, Hello I have a requirement from the clinet where in i have to take control of the machines (either by telnet,SSH). My first point to be addressed is how can i take a remote machine TELNET through perl script and also once i take the

Re: Checking the Machine's Operating System

2005-11-21 Thread John Doe
Mazhar am Montag, 21. November 2005 09.46: Hi Folks, I have a requirement from the clinet where in i have to take control of the machines (either by telnet,SSH). My first point to be addressed is how can i take a remote machine TELNET through perl script and also once i take the same i have

Re: ?php???

2005-11-21 Thread Dr.Ruud
JupiterHost.Net: PHP has very few templating systems and they just kill php's biggest advantage [...] There are plenty of PHP templating systems, and coding PHP gets a lot more pleasant with a good template system. I think what he meant was, most PHP template systems are simply drop in

Execute newgrp system command

2005-11-21 Thread Suvajit Sengupta
Hi, I want to login into a new group using 'newgrp' UNIX command.Every newgrp command invokes a new shell. But when I am trying to execute this system command from a perl script the script is terminating and returning the prompt of the new shell . Can anyone suggest on what can be done to

Modifying column values of file records and appending to end of file.

2005-11-21 Thread Danny Fang
Hi, I'm new to PERL and would like to seek help for the task mentioned below: I'm attempting to read the contents of a file containing rows with the format shown below:

Anyone know how to conver perl to exe

2005-11-21 Thread Anish Kumar K.
Hi All Anyone know how to convert perl to an exe. I wanted to know of any utility available in perl. Thanks Anish

Re: how to interupt a running program

2005-11-21 Thread Shawn Corey
S, karthik (IE03x) wrote: I need to control a perl program from another perl program. See: perldoc perlipc (search for Signals) perldoc perlvar (search for %SIG) perldoc -f kill Also: perldoc -f fork perldoc -f wait The kill function sends a signal to another process, it does not

Re: Execute newgrp system command

2005-11-21 Thread Shawn Corey
Suvajit Sengupta wrote: Hi, I want to login into a new group using 'newgrp' UNIX command.Every newgrp command invokes a new shell. But when I am trying to execute this system command from a perl script the script is terminating and returning the prompt of the new shell . Can anyone suggest on

Re: Anyone know how to conver perl to exe

2005-11-21 Thread Octavian Rasnita
Hi, Use perlapp from Perl Developer Kit (from www.activestate.com) Or use PAR (search for it with search.cpan.org) Or use perl2exe (from Indigo perl site). Teddy - Original Message - From: Anish Kumar K. [EMAIL PROTECTED] To: beginners@perl.org Sent: Monday, November 21, 2005 3:33 PM

Re: Modifying column values of file records and appending to end of file.

2005-11-21 Thread Shawn Corey
Danny Fang wrote: However, I'm not sure how I could rewrite the newly modified column values of that particular row back into the file - I want to use the particular row which had its columns modified to be duplicated and appended to the end of the current file for a specific number of time

Re: certification in perl

2005-11-21 Thread Randal L. Schwartz
karthik == karthik S [EMAIL PROTECTED] writes: karthik Could someone tell me a worthy certification in PERL (not to learn but karthik to have a recognized one)? None are recognized. If someone is trying to sell you one, it's cash for them, but nothing for you. -- Randal L. Schwartz -

Re: Modifying column values of file records and appending to end of file.

2005-11-21 Thread John Doe
Danny Fang am Montag, 21. November 2005 13.59: Hi, Hello Danny I'm new to PERL and would like to seek help for the task mentioned below: I'm attempting to read the contents of a file containing rows with the format shown below: version|exchange|... E144100TT|006030766|0521|...

Re: Modifying column values of file records and appending to end of file.

2005-11-21 Thread Jay Savage
On 11/21/05, Danny Fang [EMAIL PROTECTED] wrote: Hi, I'm new to PERL and would like to seek help for the task mentioned below: I'm attempting to read the contents of a file containing rows with the format shown below:

Re: Execute newgrp system command

2005-11-21 Thread Jay Savage
On 11/21/05, Shawn Corey [EMAIL PROTECTED] wrote: Suvajit Sengupta wrote: Hi, I want to login into a new group using 'newgrp' UNIX command.Every newgrp command invokes a new shell. But when I am trying to execute this system command from a perl script the script is terminating and

rearranging a string

2005-11-21 Thread DBSMITH
In my situation I have a string like so: my $string = '20050516'; and I want to rearrange it to look like: 05162005, so I tried: my $newstring = substr($string,0,8).substr($string,0,4).substr($string,8,0); But my problem is: it's leaving 2005 in the beginning of the string to look like

Re: rearranging a string

2005-11-21 Thread Jeff 'japhy' Pinyan
On Nov 21, [EMAIL PROTECTED] said: In my situation I have a string like so: my $string = '20050516'; and I want to rearrange it to look like: 05162005, so I tried: my $newstring = substr($string,0,8).substr($string,0,4).substr($string,8,0); That should be: substr($string, 4, 2) .

Re: rearranging a string

2005-11-21 Thread DBSMITH
Roberto Etcheverry [EMAIL PROTECTED]

Re: rearranging a string

2005-11-21 Thread DBSMITH
[EMAIL PROTECTED] h.com

Perl + OpenSSL

2005-11-21 Thread Ward.P.Fontenot
Can anyone shed some light on why this doesn't work? $certificate = /some/where/file.pem; $encoded = ' . sha1($_) . '; $signed = system(`openssl rsautl -certin $certificate -encrypt -in $encoded`); $signed doesn't end up as a certificate signed value, it ends up as this number 65280. $encoded

Re: rearranging a string

2005-11-21 Thread Jay Savage
On 11/21/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: In my situation I have a string like so: my $string = '20050516'; and I want to rearrange it to look like: 05162005, so I tried: my $newstring =

Find Error Message

2005-11-21 Thread andrewmchorney
Hello I am working on a perl script and the 1st step is to get a list of all the files on the C drive. I am getting an error message - Can't stat c:*.*: No such file or directory Here is my perl script: use strict; use warnings; use File::Find; $| = 1; #Autoflush STDOUT #finddepth comes

RE: Find Error Message

2005-11-21 Thread Timothy Johnson
I think it will work if you just leave out the *.* it will work. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 12:14 PM To: beginners@perl.org Subject: Find Error Message Hello I am working on a perl script and the 1st step is to

Re: Perl + OpenSSL

2005-11-21 Thread Bob Showalter
[EMAIL PROTECTED] wrote: Can anyone shed some light on why this doesn't work? $certificate = /some/where/file.pem; $encoded = ' . sha1($_) . '; $signed = system(`openssl rsautl -certin $certificate -encrypt -in $encoded`); $signed doesn't end up as a certificate signed value, it ends up as

Re: Find Error Message

2005-11-21 Thread Bob Showalter
[EMAIL PROTECTED] wrote: I am getting an error message - Can't stat c:*.*: No such file or directory find(\BadNames,c:\\*.*); What should the find statement look like? The argument should be a directory name (or multiple directories), not a glob pattern. So use C:\\, or c:/ -- To

File Finding

2005-11-21 Thread andrewmchorney
Hello I got the file command to work but it is not as complete as I would have hoped for. I was hoping to get the file size and directory of the file so I could put them into arrays. Is there a way I can do it with the find command? Andrew -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: Perl + OpenSSL

2005-11-21 Thread Ward.P.Fontenot
Well, that explained that. Is there a way to do this then? Or am I barking up the wrong tree? -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 2:06 PM To: Fontenot, Ward P. Cc: beginners@perl.org Subject: Re: Perl + OpenSSL [EMAIL

Re: File Finding

2005-11-21 Thread Chris Charley
Hello I got the file command to work but it is not as complete as I would have hoped for. I was hoping to get the file size and directory of the file so I could put them into arrays. Is there a way I can do it with the find command? Andrew Yes, File::Find will provide the directory. For

about deleting subroutine

2005-11-21 Thread Jennifer Garner
hi,lists, I have seen this thread on perlmonk,and it make me confused too.Can anyone here explain that?Thanks. Quote: --- Basically, deleting subroutines from a symbol table seems a bit buggy, but I don't know if this behavior is documented or not. #!/usr/bin/perl -l sub this { 'this' }

Re: Modifying column values of file records and appending to end of file.

2005-11-21 Thread John W. Krahn
Danny Fang wrote: Hi, Hello, I'm new to PERL and would like to seek help for the task mentioned below: I'm attempting to read the contents of a file containing rows with the format shown below:

RE: File Finding

2005-11-21 Thread Timothy Johnson
Don't forget that each module has documentation that can be accessed via 'perldoc Module::Name' So try 'perldoc File::Find' (without the quotes) at the command-prompt. Hint: Check the section called The Wanted Function. For the file size, you will probably use the stat function. One way to

Re: ?php???

2005-11-21 Thread JupiterHost.Net
PHP has very few templating systems and they just kill php's biggest advantage [...] ... Oh gotcha :) Sure PHP has API's to template systms done in other languages and probably some doenn all in PHP, Perl has those too, but using them doesn't destroy the entire reason you'd want to use it in

Re: about deleting subroutine

2005-11-21 Thread John W. Krahn
Jennifer Garner wrote: hi,lists, Hello, I have seen this thread on perlmonk, And you thought that the people on the beginners list would be more knowledgeable than the people on perlmonks.org? and it make me confused too.Can anyone here explain that? Explain why it makes you confused? No.

Re: local $/ = '';

2005-11-21 Thread John W. Krahn
Brian Volk wrote: Hi All~ Hello, I'm trying to get my head around local $/ = ''; #enable paragraph mode. Did you read the documentation for it in perlvar.pod? perldoc perlvar Is there anything in the documentation that you don't understand? If I have a tab delimited file that looks like

Re: about deleting subroutine

2005-11-21 Thread Randy W. Sims
Jennifer Garner wrote: hi,lists, Hi Jennifer, I have seen this thread on perlmonk,and it make me confused too.Can anyone here explain that?Thanks. Quote: --- Basically, deleting subroutines from a symbol table seems a bit buggy, but I don't know if this behavior is documented or not.

Re: Re: about deleting subroutine

2005-11-21 Thread Jennifer Garner
hi,Randys, Bug #37128: undefing *foo{CODE} does not fully work http://rt.perl.org/rt3/Ticket/Display.html?id=37128 When I try to access that url,it require me to be verified by username and passwd. So I can't access that url. On Mon, 21 Nov 2005 22:30:00 -0500, Randy W. Sims [EMAIL PROTECTED]

Re: about deleting subroutine

2005-11-21 Thread Randy W. Sims
Jennifer Garner wrote: hi,Randys, Bug #37128: undefing *foo{CODE} does not fully work http://rt.perl.org/rt3/Ticket/Display.html?id=37128 When I try to access that url,it require me to be verified by username and passwd. So I can't access that url. username: guest passwd: guest Randy. --

Re: Execute newgrp system command

2005-11-21 Thread Suvajit Sengupta
Hi, Thanks for the suggestion. There are some tasks which are directly tied to the group-id. Owing to the requirement it may happen my perl script need to switch groups to achieve a specific task. So my plan is to change to a new group with new grp command after exporting the