Hi all, how could i do ?
I have a Rss file, i want to extract only the Urls (many) matching http://www.xxx.com/trailers/ from that file and copy into another file.
like
"
<pubDate>Wed, 29 Apr 2009 00:00:00 PST</pubDate>
<content:encoded><!Apple - Movie Trailers - The Hangover"><img... (3 Replies)
hi everybody .
i'm trying to extract a bunch of urls from an http request but when i do that i get nothing .
here it's my code
use LWP::UserAgent;
$url = "$ARGV"; $ua = LWP::UserAgent->new;
$req = HTTP::Request->new(GET=>$url);
$res = $ua->request($req);
if... (0 Replies)
I propose a little game, I post a bunch of images from random movies out there and people try to identify the name of the character and the movie.
Each correct answer earns a point, at the end of the contest I'll give some Bits to those with the most points.
The rules:
I'll post only a few... (35 Replies)
I need to process a file line-by-line using some value from a shell variable
Something like:perl -p -e 's/$shell_srch/$shell_replace/g' input.txt
I can't make the '-s' work in the '-p' or '-n' input loop (or couldn't find a syntaxis.)
I have searched and found... (4 Replies)
Hi all,
Not sure if this should be in the programming forum, but I believe it will get more response under the Shell Programming and Scripting FORUM.
Am trying to write a customized df script in Perl and need some help with regards to using arrays and file handlers.
At the moment am... (3 Replies)
Hi,
I have a requirement as follows. Have 3 files. Need to match up the data in each one of them and sum up the data by a field and display it. example given below.
File 1 : Name, Emp id
File 2 : Empid, Subject,
File 3 : Subject, Score, Class
Match Emp id in File 1 and File 2 and then... (7 Replies)
Hi All,
Suppose I want to take a screenshot of a website say Google and save that image. How should I do it?
I tried wget with this but of no help. It just makes a particular file in jpeg format but on opening the same it says corrupted. Although I can edit the jpeg as an HTML file.
wget... (15 Replies)
I am working on converting shell to Perl script. In shell we have built in function
trap
Do you know alternative in Perl or actually we don't need it?
Thanks for contribution (3 Replies)
hello every one
I wrote the script to validate all the urls from my server . sourcing text file which contains the list of urls and trying to check every url and based on response printing url is up or not. the issue when i use the below code with url is printing url exist and and in loop it's... (3 Replies)
Discussion started by: markjohn1
3 Replies
LEARN ABOUT CENTOS
gvnccapture
gvnccapture(1) VNC Tools gvnccapture(1)NAME
gvnccapture - VNC screenshot capture
SYNOPSIS
gvnccapture [OPTION]... [HOST][:DISPLAY] FILENAME
DESCRIPTION
Capture a screenshot of the VNC desktop at HOST:DISPLAY saving to the image file FILENAME. If HOST is omitted it defaults to "localhost",
if :DISPLAY is omitted, it defaults to ":1". FILENAME must end in a known image format extension (eg ".png", ".jpeg"). Supported options
are
--help, -?
Display command line help information
--quiet, -q
Do not display information on the console when capturing the screenshot, with the exception of any password prompt.
--debug, -d
Display verbose debugging information on the console
EXIT STATUS
The exit status is 0 upon successful screen capture, otherwise it is a non-zero integer
EXAMPLES
# gvnccapture localhost:1 desktop.png
Password:
Connected to localhost:1
Saved display to desktop.png
AUTHORS
Daniel P. Berrange <dan@berrange.com>
COPYRIGHT
Copyright (C) 2010 Daniel P. Berrange <dan@berrange.com>.
License LGPLv2+: GNU Lesser GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO vinagre(1)gtk-vnc-0.5.2 2013-02-22 gvnccapture(1)