I want to write a Perl script which ssh's into a remote host, prompts for password before running some commands on remote host and parse the output in the local Perl script. Any help or pointers on this? Thanks!
...
This is a cross post from Perl Monks and Mahalo answers, where I have not received a satisfactory response yet. Thanks for your time and spirit:
Why do I get this error message from perl:
Can't call method "scaleY" on an undefined value at C:/strawberry/perl +/site/lib/ Image/Seek.pm line 137?
I am getting the error in the title wh...
Hi,
I am running a script where it login to a server then executes the command
"passwd -n 0 -x 99999 -i -1 debug" for removing ageing of the debug user.
If the user debug is not present then I want to create the user debug, change the password it, and then execute the above command for ageing.
How can I do?
Regards,
vasistha
...
Hi,
I'm trying to read from two files, and generate output in a third. I first wanted to edit the first one on the go but I didn't find a suitable method save for arrays.
My problem is that the third file (output) is empty whenever I uncomment the "_ref_param_handling" function. BUT the following is what puzzles me the most: If I do a ...
I can't get it to work. I'm using this query:
my $user_questions
= RoseDB::UserSecurityQuestion::Manager->get_user_security_questions(
query => [
'user.username' => $username,
],
with_objects => ['User','SecurityQuestion'],
sort_by => 'RAND()',
...
Has anyone had any success using Hudson (or another similar build system) with Perl?
...
Hi,
I have 2 MYSQL tables viz. main_table and query1. main_table contains the columns position and chr whilst query1 contains position, chr and symbol. The table query1 is derived by querying the main_table. I am wanting to match up both these tables using Perl such that the output would have the entire list of positions from the main_t...
As student of B.E(computer science). I thought Perl would be a good language to learn as it was not included in my degree program (which includes C, C++ and Java), but recently I checked out job offers on SO jobs and I was unable to find jobs that required Perl.
All I wanted to know was that am I making the right choice in learning Perl...
Is there a good tool to debug Perl-based web applications? Output to stderr or stdout don't count as tool.
...
Someone is telling me I need to escape a semicolon in a Perl regular expression literal. That is, to match a line containing a semicolon, I should use /\;/ and not /;/.
From what I've read, the semicolon has no special meaning in a regular expression literal, so escaping it seems unnecessary. I've done some experiments and /;/ seems to ...
In importing the environment from a subcommand, I want to add all environment variables exported from a bash script to a hash. When program gets run, it will set up some variables and export them. I'd like to save those variables in the Perl script for later. However I don't want to take the bash functions defined in the subcommand. Curr...
The question is about how to start a new Perl project.
How should I create the skeleton of the Project?
What should the directory layout look like?
How do I start testing?
What build system should I use?
Should I even use a build system?
I have been writing Perl programs for a while now. I only started to run tests on my recent progr...
Our application is a client/server setup, where the client is a standalone Java application that always runs in Windows, and the server is written in C and can run on either a Windows or a Unix machine. Additionally, we use Perl for doing various reports. Generally, the way the reports work is that we generate either a text file or an ...
I have to deploy some Web Services on a server that only supports the Java ones, but some of them will be done using perl or python. I want to know if is possible to develop a Java wrapper to call a specific code written in perl or python. So, I want to have all the Web Services in Java, but some of them will call some code using other l...
Hi, I've been trying to do the following:
if (m/(foobar)\{2,}?/ig)
to process a file and only act on those lines where greater than 2 occurences of 'foobar' are present. Not working - I suspect it may need the "back-referencing" technique, but I'll be pleasantly surprised if someone here can do it with a simple matching technique
...
What's the equivalent of escaping strings for MySql database input in perl?
Is Quote the best way?
...
Most of my company uses powercenter informatica for Extract-Transform-Load type data move jobs between databases.
However project I am on has a big custom Perl job with some Java thrown in for good measure to move data and trigger some other updates.
There is talk of rewriting the thing to use powercenter instead, what are people's e...
Hello,
Our environment: CentOS 5, which comes with Apache 2.2 and rsyslog 2.0.6
In order to send Apache 2.2 error log we followed instructions found on the here: http://wiki.rsyslog.com/index.php/Working_Apache_and_Rsyslog_configuration
It works, but the included perl script is very inefficient - it takes huge part of the system resou...
Do not you know a method to carry out the following code like php?
<html>
<?perl
print( 'test' );
?>
</html>
...
I run CGI script with apache2 and I have this warning lines in error.log (I removed all similar lines from the output):
[Thu Jul 30 09:39:37 2009] upload.pl: Constant subroutine ModPerl::ROOT::ModPerl::Registry::home_stanislav_cgi_perl_upload_2epl::UPLOAD_DIR redefined at /usr/share/perl/5.10/constant.pm line 115, line 133.
Constant s...