encrypt a text file

2008-08-26 Thread practicalperl
hello, how to encrypt a text file and decrypt it with perl? for example, I have a config file, svr.conf I want to encrypt it to svr.conf.encrypt. But I should also have the ability to decrypt the encryped one to the original text. Any suggestion is welcome. thanks. -- To unsubscribe, e-mai

Re:perl script on remote server linux

2008-08-26 Thread TADIPAH
Thanks a ton Jeff. It works. Thanks, harsha Jeff Pang <[EMAIL PROTECTED]> 08/27/2008 12:52 AM Please respond to Jeff Pang <[EMAIL PROTECTED]> From Jeff Pang <[EMAIL PROTECTED]> To "Perl Beginners [Beginners Perl]" cc Subject Re:perl script on remote server linux Try the code b

Re:perl script on remote server linux

2008-08-26 Thread Jeff Pang
Try the code below, wish it works fine for you. open FILE, "server_list.txt" or die $!; while() { print "the host is: $_"; chomp; system "ssh -x -t $_ \"sudo /home/tadipah/test.sh\" "; } close FILE; --Jeff > Message du 27/08/08 06:33 > De : [EMAIL PROTECTED] > A : beginners@perl.o

perl script on remote server linux

2008-08-26 Thread TADIPAH
I am trying to execute a perl script from source A to invoke another script on 5 remote servers. The script is as follows: #!/usr/bin/perl open file, "server_list.txt"; @content = ; $tot=$#content+1; print "$tot \n"; while ($tot > 0) { $m = shift @content; print "$m \n"; `ssh -x -t $m

Re: matching ' in regx

2008-08-26 Thread Dan Baker
Mr. Shawn H. Corey wrote: $UploadedImage = 'badname\'s.jpg' ; if ( $UploadedImage =~ m/'/ ) { ... How do I match the ' ? You match it exactly like you're doing. Since CGI is involved, I'd look elsewhere from the problem. Are you absolutely certain that some software between the browser a

Re: matching ' in regx

2008-08-26 Thread Mr. Shawn H. Corey
On Tue, 2008-08-26 at 17:59 -0600, Dan Baker wrote: > I have a thing driving me NUTS trying to detect a ' in a variable > with regex, and either strip it out or at least detect and error out. > for instance, this just does NOT work. > > $UploadedImage = 'badname\'s.jpg' ; > > if ( $Uploaded

RE: matching ' in regx

2008-08-26 Thread Wagner, David --- Senior Programmer Analyst --- WGO
From: Dan Baker [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2008 17:00 To: beginners@perl.org Subject: matching ' in regx I have a thing driving me NUTS trying to detect a ' in a variable with regex, and either strip it out or at least detect and error out. for instance, this just d

matching ' in regx

2008-08-26 Thread Dan Baker
I have a thing driving me NUTS trying to detect a ' in a variable with regex, and either strip it out or at least detect and error out. for instance, this just does NOT work. $UploadedImage = 'badname\'s.jpg' ; if ( $UploadedImage =~ m/'/ ) { &Warning_Status( $cCgiStatusFile ,

Re: How to create windows service

2008-08-26 Thread Jenda Krynicky
From: "nikhil mehra" <[EMAIL PROTECTED]> > Assuming I am doing ent level scripting, I want my app to run in background > and not in foreground. > > I want the perl script to be registered under windows services so that we > can run it on demand. Is it possible ? does anyone know ? how to registe

How to create windows service

2008-08-26 Thread nikhil mehra
HI, Assuming I am doing ent level scripting, I want my app to run in background and not in foreground. I want the perl script to be registered under windows services so that we can run it on demand. Is it possible ? does anyone know ? how to register it under windows services. -- Nikhil Mehra

HV in XS

2008-08-26 Thread Patrick Dupre
I am desesperated ! Assuming the following perl sub: sub sub1 { my %a ; $a {a} = 1 ; $a {b} = 2 ; foreach (keys %a) { print $_, " => ", $a {$_}, "\n" ; } return \%a ; } Using XS, I am tring to get the hash using: PREINIT: int count ; SV *ret ; HV *ptr ; SV *

Re: How to compress an exe file?

2008-08-26 Thread Dr.Ruud
"sanket vaidya" schreef: > I have made an exe using PAR::Packer. Now I want to > reduce the size of exe. Can anyone suggest me > how to do that? There are several utilities for that, like exepack and pecompact. -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTE

Re: XPUSHs

2008-08-26 Thread Rob Dixon
Patrick Dupre wrote: > > I need to make a XPUSHs of a referene on an array, but XPUSHs takes only > scalar, so it looks like that I need convert my AV* into a scalar > with a newSV, but I do not know exactly. > Can I have some help ? It would be better to calculate the amount of stack space you n

Re: Send both parts of a multipart email

2008-08-26 Thread Dr.Ruud
Rob Dixon schreef: > Dr.Ruud wrote: >> Rob Dixon schreef: >>> - Outlook is many years old, and even the email client on Vista is >>> better. >> >> I guess you are mixing up Outlook and Outlook Express there. > > No I understand the difference. Outlook first came out in 1997 and > has been tweake

Re: Send both parts of a multipart email

2008-08-26 Thread Dr.Ruud
Jeff Pang schreef: > Outlook Express is just an email client, which even can't support > IMAP protocal. No, Outlook Express works fine with IMAP. -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://le

what is the best GUI to display this result

2008-08-26 Thread Aruna Goke
I am writing a raffle draw promo using perl and i have the script as below. what i intend to achieve is to print all the numbers in the array to gui screen, clear the screen and display randomly selected one as the winner. however, I have run my script in the cmd line .. it works fine but I n

RE: Perl and "vi" (not "vim") , ctags like feature in Perl !

2008-08-26 Thread Stewart Anderson
> -Original Message- > From: Amit Saxena [mailto:[EMAIL PROTECTED] > Sent: 26 August 2008 15:51 > To: anders > Cc: beginners@perl.org > Subject: Re: Perl and "vi" (not "vim") , ctags like feature in Perl ! > > On Mon, Aug 25, 2008 at 9:03 PM, anders <[EMAIL PROTECTED]> > wrote: > > > On 2

Re: Perl and "vi" (not "vim") , ctags like feature in Perl !

2008-08-26 Thread Amit Saxena
On Mon, Aug 25, 2008 at 9:03 PM, anders <[EMAIL PROTECTED]> wrote: > On 25 Aug, 16:32, [EMAIL PROTECTED] (Amit Saxena) wrote: > > Hi all, > > > >- I am using Perl 5.8.4 and "vi" (not "vim") on Solaris 9. > > > > While developing my Perl programs, I have to open two sessions one for my > > "vi"

Re:NET ssh module

2008-08-26 Thread Jeff Pang
No, if you can't connect to internet, you couldn't install Perl modules on the host like your way. You may try to download that module (and its dependency) from CPAN and install it by hand. --Jeff Créez votre adresse électronique [EMAIL PROTECTED] 1 Go d'espace de stockage, anti-spam et ant

NET ssh module

2008-08-26 Thread Irfan J Sayed (isayed)
Hi All, I am trying to install Net-ssh module. I am getting error like not able to access FTP site to fetch CPAN files. Please find the attached log. The box where i want to install this module does not have the internet connection. Please sugget. Regards Irf. [EMAIL PROTECTED] Net-SSH-Perl

Re: XPUSHs

2008-08-26 Thread sisyphus
On Aug 25, 10:08 pm, [EMAIL PROTECTED] (Patrick Dupre) wrote: > Hello, > > I need to make a XPUSHs of a referene on an array, but XPUSHs takes only > scalar I find no problem in XPUSHs'ing an AV on perl 5.10. Here's a simple Inline::C demo: -- use warnings;

Re: Perl and "vi" (not "vim") , ctags like feature in Perl !

2008-08-26 Thread anders
On 25 Aug, 16:32, [EMAIL PROTECTED] (Amit Saxena) wrote: > Hi all, > >    - I am using Perl 5.8.4 and "vi" (not "vim") on Solaris 9. > > While developing my Perl programs, I have to open two sessions one for my > "vi" session and another where I run my perl programs. Moreover, in some > scenarios,