Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl script

Status
Not open for further replies.

goodwork210

Technical User
Joined
Jun 9, 2006
Messages
2
Location
RO
Hi,
1. I have a little piece of Perl code and must modify it
so I can obtain in $req the output from a shell command
(In that case I get source from URL)

my $ua = LWP::UserAgent->new;
my $req = HTTP::Request->new('GET', $src);
my $resp = $ua->request($req, $dest);

2. How I can obtain a task scheduling into interval specified under a second i.e. repeating 3 same task in a second.


 
1) $req=`some shell command`;
2) I'm not sure what you're getting at, what's the task how long does it take? Have you looked at threads, forking processes

HTH


Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top