Sponsored Content
Top Forums Shell Programming and Scripting Shell or Perl Loop Screenshot URLs Post 302728873 by balajesuri on Thursday 8th of November 2012 03:09:41 PM
Old 11-08-2012
With the tool that you have already, you can write a wrapper script:
Code:
#! /bin/bash
while read URL
do
    python /path/to/screencapture.sh "$URL"
done < file_containing_urls.dat

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Pattern matching extracting urls from rss, shell scripts

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)
Discussion started by: BremboloIV
3 Replies

2. Shell Programming and Scripting

checking the request for urls - perl

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)
Discussion started by: KiD0
0 Replies

3. Programming

C coding for Screenshot capture

Hey guys, I'm for C code that can do screen capture for me. Any help. Thanks. (8 Replies)
Discussion started by: rakesh_01
8 Replies

4. What is on Your Mind?

Movie Screenshot Contest - Bits to be won!

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)
Discussion started by: Smiling Dragon
35 Replies

5. Shell Programming and Scripting

Perl - pass shell-vars into perl for input loop

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)
Discussion started by: alex_5161
4 Replies

6. Shell Programming and Scripting

HELP on Perl array / sorting - trying to convert Korn Shell Script to Perl

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)
Discussion started by: newbie_01
3 Replies

7. Shell Programming and Scripting

Shell/Perl logic for loop

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)
Discussion started by: preethgideon
7 Replies

8. Shell Programming and Scripting

Shell Script to Capture a Screenshot

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)
Discussion started by: ankur328
15 Replies

9. Shell Programming and Scripting

Converting shell to Perl I run into shell built in function trap and need alternative in Perl

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)
Discussion started by: digioleg54
3 Replies

10. Shell Programming and Scripting

Help with validation of URLs in shell script

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
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)
All times are GMT -4. The time now is 12:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy