I have a command which will run fine in a unix command prompt. Can you tell how to interprete this command inside perl script......
The command is :
perl -pe 's/(\|333\}.*)\}$/$1|1.6}/' FIA.txt
This will search for the number 333 and appends 1.6 at the end of that line....... (1 Reply)
Hi guys,
got a problem with a perl cgi script over here. I need it to run a system command to get the status of a process. Unfortunately the process is owned by a specific user and only this user can get its status. So i tried running the command from the perl cgi with "su", but then i get the... (12 Replies)
Hi,
I have command that should run continuously for 30 mins but not every day not once in a week , not one in a month. whenever i call that particular program that command should run for 30 mins and stop.
#Contents of test.pl
`ls -l *.txt`;
#some other lines of code to print
... (1 Reply)
I originally posted this to a different forum (I am a new Perl user) and realized the error so I will ask here.
I am on a WindowsXP machine trying to run perl and gawk scripts from the command line. I have perl and gawk installed and environment set to C:\perl\bin and cannot get a script to... (2 Replies)
Hello everyone,
I have a perl script which takes various command line options from user like :
test.pl -i <input_file> -o <output_file> -d <value> -c <value>
Now I have multiple input files in a directory:
<input_file_1>
<input_file_2>
<input_file_3>
<input_file_4>
.....
....
...... (6 Replies)
Hi all,
I am trying to create shell script to run command then compare values with rule set for every 5 seconds and post a warning message if the compared value meet the rules.
-the script is related to Oracle/Sun product messaging server 6.2
1) command that need to be run to gather... (2 Replies)
Hi all,
When I put the Perl command in a script, I got error.
system("perl -pi -e 's@words@words@g' myFile");
The error is:
Unrecognized character \x8A; marked by <-- HERE after دت مد�<-- HERE near column 15 at -e line 1.
Thanks in advance.
---------- Post updated at 06:30 AM... (0 Replies)
i'm working with files that are huge in size. over 3GB. and i need to do a lot of pattern matching. I need a way to grep for what i want, using a tool that is available across most unix systems.
i initially was gungho about grep, but not all capablities of grep are available on all OSes.
so... (10 Replies)
Hi,
i used this tutorial which tells me to use following example command to proxify traffic from my linux
export {http,https,ftp}_proxy=122.228.156.126:80
when i do this command from command line it works and then i curl http://site/ipcheck.php i see its proxified, which is what i want to... (5 Replies)
Discussion started by: postcd
5 Replies
LEARN ABOUT DEBIAN
padre::task::lwp
Padre::Task::LWP(3pm) User Contributed Perl Documentation Padre::Task::LWP(3pm)NAME
Padre::Task::LWP - Generic HTTP client background processing task
SYNOPSIS
# Fire and forget HTTP request
Padre::Task::LWP->new(
request => HTTP::Request->new(
GET => 'http://perlide.org',
),
)->schedule;
DESCRIPTION
Sending and receiving data via HTTP.
METHODS
new
my $task = Padre::Task::LWP->new(
method => 'GET',
url => 'http://perlide.org',
);
The "new" constructor creates a Padre::Task for a background HTTP request.
It takes a single addition parameter "request" which is a fully-prepared HTTP::Request object for the request.
Returns a new Padre::Task::LWP object, or throws an exception on error.
request
The "request" method returns the HTTP::Request object that was provided to the constructor.
response
Before the "run" method has been fired the "response" method returns "undef".
After the "run" method has been fired the "response" method returns the HTTP::Response object for the LWP::UserAgent request.
Typically, you would use this in the "finish" method for the task, if you wish to take any further actions in Padre based on the result of
the HTTP call.
SEE ALSO
This class inherits from "Padre::Task" and its instances can be scheduled using "Padre::TaskManager".
The transfer of the objects to and from the worker threads is implemented with Storable.
AUTHOR
Steffen Mueller "smueller@cpan.org"
COPYRIGHT AND LICENSE
Copyright 2008-2012 The Padre development team as listed in Padre.pm.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.
perl v5.14.2 2012-06-27 Padre::Task::LWP(3pm)