a From: of
the list and a reply-to to your personal Yahoo account. That may be a Yahoo
mishap so please consider avoiding using Yahoo when posting to mailing lists.
On Sun, 12 Jun 2016 21:23:49
+ (UTC) Rajeev Prasad via beginners wrote:
> hello perl Gurus,
>
> I have put the sam
hello perl Gurus,
I have put the same question on stack exchange, but getting no response...
I am NOT able to send the cookie in response to AJAX call to my webpage.
I am following it exactly as the manual says, putting the cookie in the header
of "$q", but it is not working :(the javascript code
;> No - that one's a mystery to me:) I suspect it's something to do with the
>> terminal and character encoding
>>
>>
>> http://stackoverflow.com/questions/5306153/how-to-get-terminals-character-encoding
>>
>> Andrew
>>
>>
>> On Thu, M
; chomp($logFileName)
>
> otherwise there's a trailing newline character in $logFileName on account
> of the call to date
>
> Andrew
>
> On Thu, Mar 19, 2015 at 6:08 AM, Satya Prasad Nemana
> wrote:
>
>> Hi
>>
>> I have a small program listed below where i
int $logFile "\nPing to host $host ip $ip is successful";
}
else
{
print "\nPing to host $host ip $ip is failure";
print $logFile "\nPing to host $host ip $ip is failure";
}
}
close $logFile;
--
Satya Prasad
so i have this series of numbers:
349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,
i need to go to a website and input some data in a specific input field, and
run the query which opens a new page, i need to download and save it as an html
page on my unix box. there are several blockages i am not able to figure out.
1. authentication is happening via another website, auth atte
thank you Shawn. this works nicely for me.
From: Shawn H Corey
To: beginners@perl.org
Cc: Rajeev Prasad
Sent: Saturday, September 28, 2013 8:49 AM
Subject: Re: formatting a list
On Fri, 27 Sep 2013 22:59:01 -0700 (PDT)
Rajeev Prasad wrote:
> i w
hello,
following is obtained by concatenating 3 values using an underscore to produce
a list:
abc_12_4567
xy4z_xtr4_sdf
PQRSDR_xcvf_scc234
i want them to look neat, something like this: where they look in line. I do
not know before hand how long each word would be
abc124567
xy4z___
how to set length of read buffer when expect object is a PIPE.
my ($pty, $pid) = $ssh->open2pty($command);
my $exp = Expect->init($pty);
_now how can i set the buffer size on this object?
when i print following from script, both of the following values are 0
$exp->match_max()
$exp->max_accum()
i see, it changes 'destination' for the rest of the perl script, you mean.
i have another question which i will submit in new thread.
From: Shlomi Fish
To: Rajeev Prasad
Cc: perl list
Sent: Friday, June 28, 2013 11:45 AM
Subject: Re: printing
28, 2013 4:48 AM
Subject: Re: printing content of a pipe
Hi Rajeev,
see below for some comments on your code.
On Thu, 27 Jun 2013 15:07:50 -0700 (PDT)
Rajeev Prasad wrote:
> in the below code I am not able to print anything except whatever is in the
> $pty. I want to print LINE_START
in the below code I am not able to print anything except whatever is in the
$pty. I want to print LINE_START: in the beginning of each line of the output,
but it does not print that, it only prints what the output of the exceuted
command produced. why is that so?
while(<$pty>) {
in my opinion it is better to use CSS/HTML and javascript to handle frontend
work and perl doing all the backend processing, only generating json data for
frontend to parse and display.
perl is very good and most things have not changed much: like handling time,
text/numeric data, text/database
using outlook and these are working with same sendmail binary from shell script.
From: Rob Dixon
To: perl list
Cc: Rajeev Prasad
Sent: Friday, April 26, 2013 9:21 PM
Subject: Re: Email::Sender::Simple how to set priority?
On 27/04/2013 00:21, Rajeev
following is still coming out as normal priority email.
use strict;
use warnings;
use Email::MIME;
use Email::Sender::Simple qw(sendmail);
my @mesg=qw(fox jumps over the);
my $subject='IMP mesg';
my $message = Email::MIME->create(
header_str => [
From => '',
To => '<'y...@a
Has anyone shared this thread on perl mailing list yet?
since we are looking for a perl devloper, i thought i would put it on the perl
list to see if we get any response.
thx.
Rajeev
- Original Message -
From: "backu...@kosowsky.org"
To: Tyler J. Wagner
Cc: "General list for user
ST)
Rajeev Prasad wrote:
> hello follwoing code is sending empty email body. I am trying to send
> HTML content in body of mesg. It works if I use a string instead of
> array
So, er, use a string?
Why are you trying to pass an array as the body? What are you
expecting to happen? The argu
hello follwoing code is sending empty email body. I am trying to send HTML
content in body of mesg. It works if I use a string instead of array. I tried
sending reference to @email_body, but It simply printed array_ref in body.
modules used are:
use Email::MIME;
use Email::Sender::Simple qw(sen
hmm i thought, it would load the whole script in memory and then execute. so a
smaller file size will take less RAM...
thx.
From: Brian Fraser
To: Rajeev Prasad
Cc: perl list
Sent: Friday, February 15, 2013 7:56 PM
Subject: Re: ok how about this: source
it not only decreases the size, to load in RAM, also make it 'little harder'
for cocky-novices to steal the tricks (perl guru's anyway dont care).
http://www.stunnix.com/prod/po/ (binary not present to download??)
http://blueboxtech.co.uk/perlplexity/ (failed to remove trailing comments...)
ht
From: Paul Johnson
To: John SJ Anderson
Cc: beginners@perl.org
Sent: Wednesday, February 13, 2013 5:50 PM
Subject: Re: obfuscating code
On Tue, Feb 12, 2013 at 03:18:51PM -0800, John SJ Anderson wrote:
>
> On Feb 12, 2013, at 3:05 PM, Kevin Walzer wrote:
>
> > Does Perl have the equivale
sorry, idea is dropped.
From: Rajeev Prasad
To: perl list
Sent: Tuesday, February 12, 2013 11:01 AM
Subject: obfuscating code
freinds,
what is the advice just for obfuscating code? platform is solaris.
ty.
freinds,
what is the advice just for obfuscating code? platform is solaris.
ty.
Hello,
I want to use an email module on my webserver, which is NOT running any mail
server. I am not sure if I have install and configure a mail server first???
how does following modules work? they need a mail server running in the back?
Mail::Sendmail
Email::Sender
pl advice from your ex
Hello,
I have a working sub like this:
sub captureexpectout {
my $data_coming_in_from_expect_call = shift;
...do something with data..
...
...
}
which i am calling like this:
$expect->log_file(\&captureexpectout);
Now I want to call this subroutine with arguments. I tried below but I go
nevermind.
i figured it
need to give this option:
-o => 'PasswordAuthentication=no',
From: Rajeev Prasad
To: perl list
Sent: Sunday, January 27, 2013 1:10 PM
Subject: Re: Net::Openssh disable password based login
forgot to mention th
forgot to mention that, i have no control over ssh server (to add
'PasswordAuthentication no' option to server config)
From: Rajeev Prasad
To: perl list
Sent: Sunday, January 27, 2013 1:09 PM
Subject: Net::Openssh disable password based login
I guess this is openssh question. but, while using this module, and using key
based authentication. some hosts which do not have key installed (perhaps user
account does not yet exist there), throws password challenge and then the ssh
program wait for too long, till the process is killed by hand
i have a lot of data coming/pouring in from this:
my ($rout, $pid) = $ssh->pipe_out($cmd);
while (my $line = <$rout>) {
print filehandle $line;
}
I want to stop writing after certain size is written (say 1gb).
so i can try this: (it is working). But I am worried I am doing too many stat
(an
I am running a command on remote host to grab some data, i want to stop at a
certain size. the following seem to be working (file size does not grow beyond
1MB on disk), but the process keeps running till i guess everything coming from
that 'pipe' is finished.
how can i stop/break/close the pip
thx a lot Slava, it works!
lastly, does the pipe_out does not 'store' data in RAM - and streams straight
to disk? like collecting response from 'capture' in an array?
rgds,
Rajeev
From: Salvador Fandino
To: Rajeev Prasad
Cc: perl
the following is _i think_ timing out. when it is run from within my script
( @cmdresult, $cmderr ) = $ssh->capture($CMD);
where $CMD is: egrep "data_to_grep" *.data_file.txt
the output is about 300Mb of data.
further, the command when run on the remote system directly (after loggi
friends,
i have resolved this now.
I changed the way i was building the hash value: and then it worked fine.
$my_hash->{$index} = [$val1, $val2];
- Original Message -
From: Rajeev Prasad
To: perl list
Cc:
Sent: Tuesday, October 30, 2012 6:17 PM
Subject: tt hash values
Hello,
Since I did not get any reply in last few hours. I am now posting this question
to the perl list too. I apologize if you mind. thank you.
starting with a hash ref
my $my_hash = {};
building the hash in a loop...
push(@tmp_arr,$val1);
push(@tmp_arr,$val2);
parent 'Exporter';
our @EXPORT_OK = qw(myroutine);
file: perlscript.pl
#!/usr/bin/perl
use strict;
use warnings;
use Template;
use Mymodule qw(myroutine);
my ($output)=myroutine($input);
- Original Message -
From: Shlomi Fish
To: Rajeev Prasad
Cc: perl list
Sent: Tuesda
I am using Parallel::ForkManager to run multiple ssh sessions on various remote
hosts. It is working fine.
Sometimes I have a problem: problem is in Net::OpenSSH module that, for
whatever reason, when far end does not respond the module does not close the
SSH connection (i.e. timeout is not wor
I want to execute this routine which is to be supplied two(sometimes three)
string variables. and will return two string variables. I want to keep this
routine in a separate file. how to do it?
something like:
($var1,$var2) = routine
I am either looking to keep this routine in a file which
ultimately salva's code at loc:
http://cpansearch.perl.org/src/SALVA/Net-OpenSSH-0.58_04/sample/expect.pl
is working. I will try to experiment more with it.
From: Rajeev Prasad
To: Salvador Fandino
Cc: David Precious ; perl list
Sent: Friday, Sept
Hello Joe,
How to use your module on a remote system? module is not installed on remote
system, but on my local machine. i am usinf net::openssh to connect to remote
system.
tx.
Rajeev
sudo_path -k");
my @output = $ssh->capture({stdin_data => "$PASS"},
$sudo_path,
"-p",'', "$cmd");
print " result=@output \n";
From: Salvador
no because first i have to sudo to some other ID and then run commands.
From: David Precious
To: Rajeev Prasad
Cc: perl list
Sent: Thursday, September 6, 2012 4:57 AM
Subject: Re: expect.pm not recognising match string
On Wed, 5 Sep 2012 11:27:28
inside ssh tunnel (using Net::Openssh), a pty is opened.
then an exp object is init to this pty my $exp=Expect->init($pty);
using this object i am trying to run about quite a few commands on remote
system. I am using following method. It has two flaws: 1) does not work if
$exp->expect(5); li
Hello friends,
I have a lot of scripts written in perl on 32 bit ubuntu linux. i am thinking
to migrate to newer 64bit linux server, it will come with perl package, but i
am not sure whether there will be 64 bit modules available? lets say for
example for Net::Telnet will there be a 64bit versi
can multiple users run the same script, at same time, which opens couple of
files (file handles) for "reading" only? I would assume yes, but I want to know
for sure.
thx in advance.
Rajeev
Rob,
yes you are right. I apologize if that is not liked. I will not do so in
future. I will atleast wait a couple of hours, before i go to any other forum.
your help is valuable to me.
ty.
Rajeev
From: Rob Dixon
To: Rajeev Prasad ; perl list
Sent: Monday
PM
Subject: Re: re-reading from already read file handle
On Aug 20, 2012, at 1:39 PM, Rajeev Prasad wrote:
> thank you. seek did the job.
>
> by the way can this be made any better?
>
> just want to find out in how many records string was found:
>
> my $count=0
($line=~m/\"$str\"/) {$count++;} #in the file $str
string would be in quotes
}
From: Andy Bach
To: Rajeev Prasad
Cc: perl list
Sent: Monday, August 20, 2012 2:10 PM
Subject: Re: re-reading from already read file handle
I opened a file to read from line by line.
open(FH,"<","$myfile") or die "could not open $myfile: $!";
while ()
{
...do something
}
later on in program, try to re-read the file (walk thru the file again):
while ()
{
...do something
}
and realized that it is as if the control within file is a
Thank you. I am confused about how to send variables to this ext.pl and get
values (scalars) back into main.pl
another confusion is from web the cgi will run, i want to check cookies in
external subroutine file and redirect to some website based on some condition,
or gives some values back to c
I mean to ask, wether they will clash with the same loaded modules loaded in
calling script?
From: "pa...@riseup.net"
To: Rajeev Prasad
Cc: perl list
Sent: Friday, August 10, 2012 9:05 PM
Subject: Re: subroutine in seperate file, question
Yes, t
i want to keep a peice of code which uses CGI and DBIx module in a seperate
file, and want to include it in all my scripts as follows:
require "/path/to/script/file";
I am not sure if the calling program is also using same modules CGI and DBIx
what kind of unknown errors i might get? anyone k
Hello,
am I missing anything? when I dump schema of my database using schema loader's
make_schema_at. Some .pm file names under Result corrosponding to folders have
names chnaged! they do not match to table names!!
e.g. table name costlycookies shows up as Costlycooky.pm !!! another table
ch
Thank you Ron and David.
- Original Message -
From: Ron Bergin
To: Rajeev Prasad
Cc: perl list
Sent: Tuesday, August 7, 2012 9:36 PM
Subject: Re: how to set session variable (not session cookie) using perl CGI
--
Rajeev Prasad wrote:
> I am using CGI.pm on my website, bu
I am using CGI.pm on my website, but I generate my pages using TT (template
Toolkit).
I have few questions:
0. how to have a session variable (not a session cookie)? If I do not want to
use cookie, do i have to store session data in a temp file on server and check
it with each page load?
authentication?
2. since the module insist on having a .ssh folder in home directory(/var/www),
of web user (www-data on linux), how safe is it to have a .ssh folder under
/var/www ??
anyone know?
ty.
Rajeev
- Original Message -
From: Rajeev Prasad
To: Shlomi Fish
Cc: perl list
Sent: Thursday
- Original Message -
From: Shlomi Fish
To: Rajeev Prasad
Cc: perl list
Sent: Thursday, June 28, 2012 12:46 PM
Subject: Re: net::openssh error in CGI: Invalid or bad combination of options
('key_path')
Hi Rajeev,
On Thu, 28 Jun 2012 10:00:08 -0700 (PDT)
Rajeev Pra
hello can anyone help?
following is failing:
my $ssh = Net::OpenSSH->new($host,
user => "abc123",
ctl_dir => "/home/openssh_lib_home",
key_path => "/home/openssh_lib_home/.ssh/",
master_opts => [-o => 'StrictHostKeyChecking=no',
-o => 'Conne
-o => 'ConnectTimeout 60'],
);
# ls -l /home|grep open
drwxrwsr-x 2 www-data www-data 4096 2012-06-27 21:54 openssh_lib_home
- Original Message -
From: Rajeev Prasad
To: perl list
Cc:
Sent: Wednesday, June 27, 2012 4:13 PM
Subject: Net::OpenSSH failing in CGI
my $ssh = Net::OpenSSH->new($host,
user => "abc123",
ctl_dir => "/var/www/mysite.com/www/openssh_lib_home/"
);
ssh is not happening, when i catch the error, i get below:
error: ctl_dir /var/www/mysite.com/www/openssh_lib_home/ is not secure
folder is :
$ ls -l /var/ww
i wrote this code which turns rows into columns from a csv file (here you see
as 'in' array)
I am finding it difficult to figure to do this using Text::CSV ???
can anyone suggest how to convert this to use Text::CSV ?
thank you.
Rajeev
#!/usr/bin/perl
use warnings;
use strict;
#array rows t
hello,
i want to append a dynamic string stored in a variable to the beginning of each
output row of the expect command, but do not know how to do it. can anyone help
pl?
module used is Expect
I am using this statement before i run any command on remote host, it captures
EVERYTHING. I want
http://cpan.uwinnipeg.ca/htdocs/Net-OpenSSH/Net/OpenSSH.html#scp_put
following is failing with an error when $folder is not defined. is that
correct? i think it should assume $folder as null variable and continue to save
in home folder on destination???
$scpresult = $ssh->scp_put($file,$fol
same PERL modules
there?
On 12-06-05 04:00 PM, Rajeev Prasad wrote:
> for e.g.
> on 10.10: perl ver is: v5.10
> on 12.04 it is: perl (5.14.2-6ubuntu2)
>
> is there a quick method to do that?
No, but you can adapt this algorithm:
http://onionstand.blogspot.ca/2012/05/moving-mod
Hello,
I am going to move (not upgrade) from my current ubuntu ver 10.10 to ver.
12.04 (fresh install). I will restore my data and scripts there and have them
ready.
But, how do i have all the required modules (which i have installed on my
current PC over months) installed on target system?
Anyone has any experience to share about implementing perl CGI scripts
on Hiawatha web server?
ty.
R
d e.g.: 2012-01-20 22:24:36 value is some text
- Original Message -
From: Rajeev Prasad
To: perl list
Cc:
Sent: Sunday, February 5, 2012 10:20 PM
Subject: Re: need guidance on encode JSON and sorting
I tried below but getting err:
my $json = JSON::XS->new;
$json
I tried below but getting err:
my $json = JSON::XS->new;
$json->get_canonical;
$return_json_text = $json->encode $tmp_hash;
Scalar found where operator expected atscript.pl line 80, near "->encode
$tmp_hash"
???
- Original Message -----
From: Rajeev
in the script this is all i am using JSON as:
...
use JSON::XS;
...
$return_json_text = encode_json $tmp_hash;
this variable ($return_json_text) is then used to display values. I need this
to be orderd, but not able to figure how to order the outcome??? I read about
$enabled = $json->get_c
Author says:
Adding and removing rows
To create a new record in the database, you can use the create method. It
returns an instance of My::Schema::Result::Album that can be used to access the
data in the new record:
my $new_album = $schema->resultset('Album')->create({ title => 'Wish You Were
: beginners@perl.org
Sent: Sunday, January 22, 2012 11:08 AM
Subject: Re: Net::Openssh and sudo?
On 01/20/2012 08:10 PM, Rajeev Prasad wrote:
>
>
> hello,
>
> using Net::Openssh how can i use sudo to become some other user (say root) on
> a target machine and then execute a ser
uot;ls","who am i","id","whoami");
foreach my $cmd (@cmdlist){
$expect->expect(2,
[ qr/runasroot:/ => sub { shift->send("$pass1\n");} ], #use
pass2 if using only su
[ qr/Sorry/ => sub { die "Login failed
su
[ qr/Sorry/ => sub { die "Login failed" } ],
[qr/#/ => sub { shift->send("ls -l\n"); exp_continue;}]
) or die "___Timeout!";
__END__
From: Rajeev Prasad
To: perl l
asroot:/ => sub { shift->send("$pass1\n");} ], #use
pass2 if using only su
[ qr/Sorry/ => sub { die "Login failed" } ]);
$expect->send("\n\n\n");
$expect->expect(2,[ qr/#/ => sub { shift->send("ls -l\n");} ]) #use
hello,
using Net::Openssh how can i use sudo to become some other user (say root) on a
target machine and then execute a series of commands as root?
i looked and tried to use the expect example given on Net::Openssh page but
could not make it to work.
my $myssh = Net::OpenSSH->new($host,
Hello
what is the best way to convert base64 to hex
I am currently using
use NetSDS::Util::Convert qw ( conv_base64_str conv_str_hex);
...
my $hex = conv_str_hex(conv_base64_str($b64));
But the NetSDS::Util module seems not so popular , I dont find it
installed on most machines, Getting it i
ction by specifying int($myarr[4]) but i still
get same error ??
From: John W. Krahn
To: Perl Beginners
Sent: Monday, January 9, 2012 4:57 PM
Subject: Re: 32 bitx Hex point code to 24 bit (8-8-8) point code
Rajeev Prasad wrote:
> Hello John,
>
10:53 AM, "Rajeev Prasad"
scribbled:
> Hello,
>
> I have a lot of fields being concatenated to form a string and sometimes the
> values are empty, so i am getting this error:
>
> Use of uninitialized value in concatenation (.) or string at ./script.pl line
> 144,
print $aoa[$y][$x]." ";
}
print "\n";
}
- Original Message -
From: Jim Gibson
To: perl list
Cc:
Sent: Monday, January 9, 2012 3:29 PM
Subject: Re: rows to columns issue
On 1/9/12 Mon Jan 9, 2012 1:08 PM, "Rajeev Prasad"
scribbled:
>
&g
Hello,
I tried following code but it is not working.
I have a file with many lines(records) where field separator is space.
I want to convert rows to columns, something like...
source:
a b c d
1 2 3 4
output:
a 1
b 2
c 3
d 4
Here is my test code: It is not working :(
#!/usr/bin/perl
u
Hello,
I have a lot of fields being concatenated to form a string and sometimes the
values are empty, so i am getting this error:
Use of uninitialized value in concatenation (.) or string at ./script.pl line
144, <$IN_FH> line 1.
how can i suppress this?
my logic flow:
$string1 = "a,b,c,d,e
Hex point code to 24 bit (8-8-8) point code
Rajeev Prasad wrote:
>
> Hello,
Hello,
> I am trying to convert 32 bitx Hex point code to 24 bit (8-8-8) point
> code.
What does the input look like and what do you expect the corresponding output
to look like?
> i tried to use below
Hello,
I am trying to convert 32 bitx Hex point code to 24 bit (8-8-8) point code. i
tried to use below script from net, but due to limited understanding of perl
and above script, I was not able to resolve my problem.
Can someone please help me resolve my issue?
thank you.
Rajeev
#!/usr/bin
Hello,
Has anyone ever used, tinyMCE as web based editor (to run inside the browser)
to edit the perl/php/shell scripts on the server? I am looking for some
direction and advice?
thank you.
Rajeev
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beg
and more interest
towards php etc...
ty.
Rajeev
From: Shlomi Fish
To: Brendan
Cc: Rajeev Prasad ; Mark Tiesman
; "beginners@perl.org"
Sent: Thursday, December 15, 2011 2:45 PM
Subject: Re: Guidance for a New Programmer/Perl User
Hi Rajeev,
On T
Mark,
i think with an eye on future, you should start by reading Rakudo etc. i.e.
perl6
From: Mark Tiesman
To: beginners@perl.org
Sent: Thursday, December 15, 2011 9:54 AM
Subject: Guidance for a New Programmer/Perl User
Hi all. I recently started a job
thx Sheppy, good enough for me. i am a beginner in perl.
From: Sheppy R
To: Rob Coops
Cc: Rajeev Prasad ; perl list
Sent: Tuesday, November 29, 2011 9:54 AM
Subject: Re: extracting email addresses from a file
Couldn't you just use the non-white
hello,
i am trying to extract email address from a afile, but not quite succesful.
here is what i have:
the file:
myterqlqt qntmrq Prqtesm qltul qzeez Smqik qltulqzee...@jmqil.com 976665
myterqlqt qntmrq Prqtesm teepqk Mittql teep...@jmqil.com 939383
Onjole qntmrq Prqtesm lmqrqtm Etqrq cont.
I have an array of scalars.
I want to run a loop like this
my @workers = qw ( a b c );
my $MAXCHILD = 20;
foreach my $i( 0 .. $MAXCHILD){
run_job($i,$workers[$i++]);
}
Can I do this ?
I am generating pdf files with http://code.google.com/p/wkhtmltopdf/
I want to password protect the PDF's .. How can I do this ?
In my WWW:Mechanize script below, can someone please advice why am i getting
proxy issue. when the same proxy is working fine with LWP::UserAgent in a
different script. (both scripts are given below)
thank you.
Rajeev
From: Rajeev Prasad
To: perl list
Here is the prob description in short:
1. post your url in browser: https://myrel/files/file.doc
2. you get a logon page (URL still looking same)
3. enter field names: username/password
4. press 'ok' button (name = bsubmit)
after successful login:
5. you get new page: http
thanks, that was the quickest resolve for me on this LIST ever. thank you!
From: Kenneth Wolcott
To: Rajeev Prasad
Cc: perl list
Sent: Tuesday, November 22, 2011 2:35 PM
Subject: Re: module is installed but getting error
On Tue, Nov 22, 2011 at 12:31
getting this error:
Can't locate Http/Cookies.pm in @INC (@INC contains: /etc/perl
/usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
/usr/local/lib/site_perl .) at ./testscript.pl line 7.
module was installed at:
#
hello,
what would be the best module to download a file from an https://url ? I am
trying to download some files over secured website and am willing to try the
most correct (no overkill) module for the job.
task: to download files from secured websites, using perl script:
https://myurl/file.
uot;$host $line";
}
@CMDRESULT = "";
if (defined $CMDERR ) {print MFOH "$host $CMDERR \n"; $CMDERR = "";}
}
}
undef $MFSSH;
$pm->finish;
}
...
...
no need to use ssh::parallel
but not working???
@result = $pssh->run;
thx.
Rajeev
From: salva
To: beginners@perl.org
Sent: Thursday, November 10, 2011 4:51 AM
Subject: Re: is this ssh happenign in parallel?
On Nov 8, 12:56 am, rp.ne...@yahoo.com (Rajeev Prasad) wrote:
> using t
les appending the name of the remote hosts to the local file
names.
The variables HOST, USER, PORT and LABEL are predefined.
____
From: Rajeev Prasad
To: salva ; "beginners@perl.org"
Sent: Thursday, November 10, 2011 8:50 AM
Subject: Re: is this ssh happenign
: Thursday, November 10, 2011 4:51 AM
Subject: Re: is this ssh happenign in parallel?
On Nov 8, 12:56 am, rp.ne...@yahoo.com (Rajeev Prasad) wrote:
> using the async option in Net::OpenSSH
>
> can someone help me understand whether in second loop commands are being
> executed without waiting
Hi,
thx for advice, ye sit is part of code, code is working fine.
i will fix CAPS on variables soon. quote is fixed.
From: Brandon McCaig
To: Rajeev Prasad
Cc: perl list
Sent: Tuesday, November 8, 2011 11:01 AM
Subject: Re: is this ssh happenign in parallel
1 - 100 of 232 matches
Mail list logo