Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Collection of screenshot scripts
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
dylix
Apprentice
Apprentice


Joined: 20 Sep 2002
Posts: 261
Location: Atlanta

PostPosted: Wed Aug 20, 2003 7:56 am    Post subject: Collection of screenshot scripts Reply with quote

just thought i'd share this.. i make alot of screenshots, sometimes i want to make thumbnails for the forums, other times i want to make it for me site and they need to be smaller.. so i came up with this.. if it makes atleast one person happy, then i've done my job.. lol :) enjoy it if u use it :) (depends on imagemagick and scrot)

screenshot.sh
Code:


#!/bin/bash

FONT="-vc-vixusansi-medium-r-normal--10-100-75-75-c-50-iso8859-1"

scrot 'ss-%m.%d.%y-%H%M.png' -e 'mv $f /home/dylix/public_html/screenshots/'
aterm -geometry 70x10+0+0 -tr -sh 50 -bg black -fg white -ls +sb -fn $FONT -fb $FONT -e /home/dylix/scripts/screenshot-thumbnail


screenshot-thumbnail
Code:

#!/bin/bash
date=`date +%m.%d.%y-%H%M`;
sspath="/home/dylix/public_html/screenshots";

echo "Screenshot successfully taken.."

echo -n "Would you like to create a 100x75 size thumbnail? (yes or no): "
read -e THUMB
if [ "$THUMB" = "yes" ]; then
   convert $sspath/ss-$date.png -resize 100x75 $sspath/ss-$date-thumb.png
   echo "thumbnail created.."
fi

echo -n "Would you like to create a 341x256 size thumbnail? (yes or no): "
read -e BIGTHUMB
if [ "$BIGTHUMB" = "yes" ]; then
   convert $sspath/ss-$date.png -resize 341x256 $sspath/ss-$date-med.png
   echo "bigger thumbnail created.."
fi


EDIT: Merged a few screenshot threads together. Changed thread title from 'screenshot bash script'. --pjp
_________________

Rape is such a strong word, I prefer surprise sex.
http://plutonic.mine.nu/


Last edited by dylix on Fri Aug 22, 2003 2:12 am; edited 2 times in total
Back to top
View user's profile Send private message
neuronal
Apprentice
Apprentice


Joined: 11 Feb 2003
Posts: 174
Location: Alicante/Spain

PostPosted: Wed Aug 20, 2003 12:22 pm    Post subject: Reply with quote

8O wow

Some time ago I made one too, but much more simple that yours (which less features :) Here it is:

Code:
$ cat shot.sh

#!/bin/sh
# Requirements:
#  - ImageMagick (http://www.imagemagick.org)
# ##

options="-window root"
format=screnshot_$(date +"%d%m%Y-%Hh%Mm%Ss")

import $options $format.png


Three lines only (and it would can be one line :))

Thanks for share your scripts and sorry for my poor English :(
Greetings.
_________________
#!/Enrique/Barbeito/García ...
http://enrique.barbeito.org
Back to top
View user's profile Send private message
bravecobra
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2002
Posts: 130
Location: Planet Earth (sometimes)

PostPosted: Fri Aug 22, 2003 12:30 am    Post subject: Reply with quote

For some reasion I'm getting an error in giblib
Code:

giblib error: Saving to file ss-08.22.03-0226.png failed

./shot.sh: line 7: aterm: command not found

and even aterm is not known... :?
Any solutions?
Back to top
View user's profile Send private message
dylix
Apprentice
Apprentice


Joined: 20 Sep 2002
Posts: 261
Location: Atlanta

PostPosted: Fri Aug 22, 2003 2:09 am    Post subject: Reply with quote

my guess would be that your scrot is fubared?

but just change aterm, to which ever terminal you use.. as a result you'll have to edit the line that launches aterm, cus i dont think xterm uses the same config options..
_________________

Rape is such a strong word, I prefer surprise sex.
http://plutonic.mine.nu/
Back to top
View user's profile Send private message
swat
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2002
Posts: 144

PostPosted: Sun Aug 31, 2003 9:55 pm    Post subject: Reply with quote

I'm getting the same problem with my scrot..

Simon
Back to top
View user's profile Send private message
MooktaKiNG
Guru
Guru


Joined: 11 Nov 2002
Posts: 326
Location: London, UK

PostPosted: Sun Aug 31, 2003 10:13 pm    Post subject: Reply with quote

I guess we've all made one :-D

http://mooktaking.homeip.net/Bash.php

I had a much better one before, using Perl. Which updated my website really nicely. However i lost that script.
:D

Have fun. I recommend to any new programmers to create their own automatic screenshot creator in their prefered language. Its a great way to start learning programming skills :D:D
_________________
http://www.mooktakim.com
Athlon XP 2001, Giga-Byte GA-7VRXP MB, 640Mb DDR RAM 333MHz, MSI Geforce 4800SE 128Mb DDR, 40x12x48 Liteon CDRW drive, Flower Cooler, ADSL Router
Back to top
View user's profile Send private message
John5788
Advocate
Advocate


Joined: 06 Apr 2004
Posts: 2140
Location: 127.0.0.1

PostPosted: Thu Apr 15, 2004 6:59 am    Post subject: Auto-Screenshot taker Reply with quote

Name: Auto-Screensnap
Description: Takes screenshots and automatically uploads it to a webserver
Purpose: Show off the visitors to your website what your currently doing
Requirements: Perl 5.x installed with Net::FTP perl module, scrot 0.6 or higher, webserver with FTP access.
Code:
Code:
#!/usr/bin/perl -w

use Net::FTP; # Start FTP

## Define your variables
$delay = "60"; # Set the screencaptures in seconds
$quality = "50"; # Set the quality of the screenshot
$thumb = "25"; # Set percentage of the thumbnail produced
$server = "your.server.com"; # Hostname of the server
$username = "username"; # Put your username for the server here
$password = "password"; # Put your password for the server here
$serverfolder = "/home/me/www"; # This is the folder that you want the pictures to end up in
$localfolder = "/home/me/autoscreensnap"; # This is the folder that you are going to locally save the screenshots

while()
 {
  system("scrot $localfolder/currentscreen.jpg --thumb $thumb --quality $quality"); # Let's take the screenshot
 
  $ftp = Net::FTP->new($server, Debug => 0); # Connect to FTP server
  $ftp->login($username, $password); # Let's login
  print "OK Connected \n";
  $ftp->cwd($serverfolder); # Change to the directory you want uploaded image to be in
  print "OK Changed directories \n";
  $ftp->binary(); # Set binary mode so the picture works
  $ftp->delete("$serverfolder/currentscreen.jpg"); # Delete old screenshot
  $ftp->delete("$serverfolder/currentscreen-thumb.jpg"); # Delete old thumbnail
  print "Deleted old screenshots\n";
  $ftp->put("$localfolder/currentscreen.jpg"); # Uploading...
  $ftp->put("$localfolder/currentscreen-thumb.jpg"); #Upload some more..
  print "OK Finished uploading files\n";
  $ftp->quit; # Close session
  print "Sleeping for $delay seconds\n\n";
  system("sleep $delay");
 }


questions? comments?

[edit] http://www.x5788.net/aboutme/screenshots/currentscreen.jpg heres an example of it working, and my current desk :)[/edit]
_________________
John5788


Last edited by John5788 on Thu Apr 15, 2004 8:23 am; edited 2 times in total
Back to top
View user's profile Send private message
jtaylor72
Apprentice
Apprentice


Joined: 01 Feb 2004
Posts: 197
Location: "the can", WA

PostPosted: Thu Apr 15, 2004 8:01 am    Post subject: Reply with quote

Pretty cool. I got it to work. Thanks.
Back to top
View user's profile Send private message
iawix
n00b
n00b


Joined: 21 May 2004
Posts: 7
Location: Daytona Beach, FL

PostPosted: Sat May 29, 2004 1:35 am    Post subject: Eye-candy script: Automatically upload your screenshot Reply with quote

Emerge's needed:
Code:
# emerge imagemagick ncftp


Here is my Automatic Screen Shot script. With it, you can take a screenshot of your X desktop and automatically upload it to your website using FTP. It makes it that much easier to show off :) It depends on a tiny little utility called NcFTPPut and the "import" command (from Imagemagick).

You can also right-click and save it from here.
Code:

echo "autoss.sh - Available free at http://www.iawix.com/steve/linux/"
echo "Executing autoss.sh..."
######################################################################################
# autoss.sh                                #
# Copyright Steve F. / iawix.com 2002-2003 / steve ( AT ) iawix dot com           #
# This script will automatically take a screenshot and upload it to an FTP server.   #
# This script is free to edit and reuse/redistribute.                     #
# You must keep these comments intact and include credit for me, the original        #
# author.  And please send me a link to your version :)                 #
######################################################################################

######################################################################################
# SETTINGS - PLEASE EDIT THIS!!!                       #
######################################################################################
server=
port=21
username=
password=
filename=autoss.jpg
remotedir=
######################################################################################

# Take the actual screenshot
echo "Taking screenshot..."
import -window root $filename

# FTP it!
echo "Uploading picture..."

# Please note ncftpput uses PASSIVE ftp, but falls back to regular ftp if passive fails.
ncftpput  -u $username -p $password -P $port -t 30 $server $remotedir $filename

#remove file
echo "Deleting $filename locally..."
rm $filename

#done
echo "Automatic screen shot uploaded!  Done!"


Configuring the Script
Configuring the script is easy. You only have to edit a few script variables. You can find these right after the license information.

server
The ftp server you will be uploading to. Example: ftp.server.com
port
Default is 21. This shouldn't change unless your ftp server uses a non-standard port.
username
Your FTP username.
password
Your FTP password.
filename
This is the filename of your screenshot. You can change the type of image the script takes by changing the extension of the filename. Examples: autoss.jpg screenshot.png myss.jpeg
remotedir
This is the directory on the FTP server you will be saving to. If you want your screenshot to be available at ftp://ftp.server.com/mydir/test/ss.jpg the remotedir would be /mydir/test

Hope you like it.
-Steve
Back to top
View user's profile Send private message
sapphirecat
Guru
Guru


Joined: 15 Jan 2003
Posts: 376

PostPosted: Sat May 29, 2004 5:33 pm    Post subject: Reply with quote

iawix wrote:
Code:
import -window root $filename

I take it you haven't seen my signature. :wink:
Code:
import -window root -depth 8 $filename

You might also see people recommend -quality 90, but imagemagick actually uses -quality 95 as default.
_________________
Former Gentoo user; switched to Kubuntu 7.04 when I got sick of waiting on gcc. Chance of thread necro if you reply now approaching 100%...
Back to top
View user's profile Send private message
iawix
n00b
n00b


Joined: 21 May 2004
Posts: 7
Location: Daytona Beach, FL

PostPosted: Sat May 29, 2004 9:07 pm    Post subject: Reply with quote

Nice tip, I actually started using this:

Code:
import -window root -quality 85 -resize 1024x768 $filename


what does "-depth 8" actually do? the man page description was lacking...
Back to top
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2526
Location: Denmark

PostPosted: Sun May 30, 2004 2:25 pm    Post subject: Reply with quote

this is what i use
Code:

#!/bin/bash
BASE=/home/ikaro/.fvwm
    scrot -d 4 -b -q 80 '%Y-%m-%d_$wx$h.jpg' -e 'mv $f $BASE';
sleep 1
    ncftpput -DD -f $BASE/login.cfg -b /usr/home/ikaro/fluxmod_dk/snapshots $BASE/*_1600x1200.png;
        ncftpbatch -d;
done

_________________
linux: #232767
Back to top
View user's profile Send private message
sapphirecat
Guru
Guru


Joined: 15 Jan 2003
Posts: 376

PostPosted: Sun May 30, 2004 6:55 pm    Post subject: Reply with quote

iawix wrote:
what does "-depth 8" actually do? the man page description was lacking...

It makes imagemagick save it with 8 bits of precision per color channel for a total of 24 bits. For PNG images[1], the format supports having 16 bits/channel for 48 bits total. However, since the source image is only 24 bit[2], the extra bits aren't doing anything except making the image more difficult to compress. If I remember correctly from my non-scientific testing, setting '-depth 8' is a quick, easy, and lossless way to shrink a PNG by 25-50%. YMMV depending on what's actually in it, of course.

Incidentally, the ImageMagick (mind the caps) man page describes the options in a bit more detail.

[1] Imagemagick does 8 bits/channel for JPEG, according to rdjpgcom -v, so it doesn't matter for that. It still wouldn't hurt to have it, though.
[2] Even 32-bit modes are just 24 bits of color and 8 bits of padding.
_________________
Former Gentoo user; switched to Kubuntu 7.04 when I got sick of waiting on gcc. Chance of thread necro if you reply now approaching 100%...
Back to top
View user's profile Send private message
iawix
n00b
n00b


Joined: 21 May 2004
Posts: 7
Location: Daytona Beach, FL

PostPosted: Sun May 30, 2004 6:57 pm    Post subject: Reply with quote

I was under the impression that passing the extension of ".jpg" it saved the screenshot in JPEG format anyways. Would it make a difference in JPEG's as well?
Back to top
View user's profile Send private message
sapphirecat
Guru
Guru


Joined: 15 Jan 2003
Posts: 376

PostPosted: Mon May 31, 2004 11:06 pm    Post subject: Reply with quote

iawix wrote:
I was under the impression that passing the extension of ".jpg" it saved the screenshot in JPEG format anyways. Would it make a difference in JPEG's as well?

Yes, that does save it as a JPEG, and as I mentioned in footnote 1 there, it doesn't make a difference for them.

It's just that PNG is also popular in the "Gentoo Desktops for $MONTH" threads and you had it in one of your examples, so I thought I'd mention it. :)
_________________
Former Gentoo user; switched to Kubuntu 7.04 when I got sick of waiting on gcc. Chance of thread necro if you reply now approaching 100%...
Back to top
View user's profile Send private message
iawix
n00b
n00b


Joined: 21 May 2004
Posts: 7
Location: Daytona Beach, FL

PostPosted: Mon May 31, 2004 11:10 pm    Post subject: Reply with quote

sapphirecat wrote:
Yes, that does save it as a JPEG, and as I mentioned in footnote 1 there, it doesn't make a difference for them.

It's just that PNG is also popular in the "Gentoo Desktops for $MONTH" threads and you had it in one of your examples, so I thought I'd mention it. :)


Gotcha, forgot I put that in my comments. Thanks for the info! :D
_________________
I'm a pilot, I fly airplanes.
Back to top
View user's profile Send private message
Fanatic
Apprentice
Apprentice


Joined: 02 May 2004
Posts: 173
Location: Stocktown

PostPosted: Wed Jun 02, 2004 8:56 pm    Post subject: Reply with quote

I took the liberty of rewriting iawix's script in perl.
What i am trying to do is to make an irssi script (so that i don't have to open up yet another xterm just to take a screenshot :P ) It's available here.

Code:

#!/usr/bin/perl -w

use strict;
use Irssi;
use vars qw($VERSION %IRSSI);

$VERSION = "1.20";
%IRSSI = (
    authors     => "Fanatic @ forums.gentoo.org",
    name        => "screenshot",
    description => "a screenshot script for irssi",
    license     => "Public Domain",
);

# This script will automatically take a screenshot and upload it to an FTP server.
# This script is free to edit and reuse/redistribute.
# Thanks to Steve F. / iawix.com for the initial inspiration for this script, his script is available at http://www.iawix.com/steve/linux/

# To use this script just load it and then type in /screenshot file.jpg
# or use /screenshot -a to use the default filename

######################################################################################
# SETTINGS - PLEASE EDIT THIS!!!                       
######################################################################################

my $server           = "ftp.whatever.net";
my $port             = "21";
my $username         = "user";
my $password         = "passwd";
my $remotedir        = "/";
my $default_filename = "autoscrot.jpg";

######################################################################################

Irssi::command_bind ('screenshot', 'cmd_screenshot');

sub cmd_screenshot{

#If filename equals "-a" use default filename, otherwise use whatever the user types in

my ($filename) = @_;

if ($filename eq "-a"){

$filename=$default_filename;

}

#Taking of screenshot part

my $snapshot = `import -window root -depth 8 $filename`;

#The uploading to FTP.. and the subsequential removal of the local file

print "Uploading to FTP...";

my $ftp = `ncftpput -u $username -p $password -P $port -t 30 $server $remotedir $filename`;

print "Deleting local file..";

`rm $filename`;

print "Done!";
}


It's basic, but I'm gonna try to improve on it (mind you guys i'm still a noob :P) so that you'll be able to set a time limit in secs before a screenshot is taken. Anyway to use it all you have to do is to copy the script to wherever you usually have your irssi scripts, edit it just as you would with iawix's script and then in irssi:

Code:

/script load screenshot.pl


To run it type in irssi:

Code:
/screenshot whateveryouwant.jpg


Last edited by Fanatic on Sun Jun 06, 2004 6:33 pm; edited 2 times in total
Back to top
View user's profile Send private message
senectus
Guru
Guru


Joined: 17 Jul 2003
Posts: 534

PostPosted: Thu Jun 03, 2004 7:03 am    Post subject: Reply with quote

hey ya bugger.. that was my idea! https://forums.gentoo.org/viewtopic.php?t=171196&highlight=

;-) now I'm gonna sue you cause you did a better job :lol: :roll:

Nice one.. I might use that.. looks better than ours.

**edit: replaced "mine" with "ours".. that was rude of me :-P
_________________
2800+XP A7N8X FX6600GT
www.modmeup.net |
Belief is 9/10 of YOUR reality.
Wise man say: A skilled troll is a master baiter.
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Sun Jun 06, 2004 5:39 am    Post subject: Reply with quote

My python script is way better. :)
Does thumbnails too.

It's made for having more than one screenshot on the site. You can give it a name by either typing it when it asks you, or by giving it as the argument "takess wow.png"

You can also start it with the -a option for it to be completely automated and have it upload to the same file.
Code:
#!/usr/bin/python
import os
import shutil
import sys
from ftplib import FTP
directory = os.path.expanduser("~/Documents/Screenshots/")
ftpsite = 'ftp.site.com'
ftpuser = 'user'
ftppass = 'pass'
ftpdirs = 'img/ss/'
thumb = '400x300'
bigthumb = '512x384'

#Figure out the file name
filename = sys.argv[1:]
filename = "_".join(filename)
if filename == "-a":
   thumb = bigthumb
   auto = "yes"
   filename = "current.jpg"
if filename == "":
   filename = raw_input("What do we want to call it? ")
   if filename == "oops":
      sys.exit()
   filename = filename.replace(' ','_')
if not filename.lower().endswith('.jpg'):
   filename = filename + '.jpg'
if not os.path.exists(directory):
   os.mkdir(directory)
   
print "taking screenshot " + filename + "..."
os.system('/usr/bin/import -quality 90 -window root ' + directory + filename)
shutil.copy(directory + filename, directory + 'res_' + filename)
print "downscaling a thumbnail copy to %s.." %thumb
os.system('/usr/bin/mogrify -geometry ' + thumb + ' -quality 50 ' + directory + 'res_' + filename)
os.chdir(directory)
print "logging in to " + ftpsite + ".."
ftp = FTP(ftpsite)
ftp.login(ftpuser, ftppass)
ftp.cwd(ftpdirs)
print "uploading"
ftp.storbinary('stor ' + filename, open(filename,'r'), 1024)
ftp.storbinary('stor ' + 'res_' + filename ,open('res_' + filename,'r'), 1024)
print "deleting temporary files"
os.remove(directory + 'res_' + filename)
print "all done."

_________________
Think about your breathing.
http://floam.sh.nu
Back to top
View user's profile Send private message
Fanatic
Apprentice
Apprentice


Joined: 02 May 2004
Posts: 173
Location: Stocktown

PostPosted: Sun Jun 06, 2004 6:32 pm    Post subject: Reply with quote

Now i've updated my script, now users can use the -a option as they can with floams script. Can't be arsed to do the thumbnail thing though :P I still have to implement the time delay, i'm thinking that a for-loop should do the trick, but i'm not too sure yet. Anyways, now that i've finished school I have loads of time to tinker with perl :P
Back to top
View user's profile Send private message
sapphirecat
Guru
Guru


Joined: 15 Jan 2003
Posts: 376

PostPosted: Sun Jun 06, 2004 6:45 pm    Post subject: Reply with quote

Fanatic wrote:
I still have to implement the time delay, i'm thinking that a for-loop should do the trick, but i'm not too sure yet. Anyways, now that i've finished school I have loads of time to tinker with perl :P

Use sleep. "perldoc -f sleep" is way easier to use than "man perlfunc" if you know what you're looking for.
_________________
Former Gentoo user; switched to Kubuntu 7.04 when I got sick of waiting on gcc. Chance of thread necro if you reply now approaching 100%...
Back to top
View user's profile Send private message
Fanatic
Apprentice
Apprentice


Joined: 02 May 2004
Posts: 173
Location: Stocktown

PostPosted: Sun Jun 06, 2004 9:00 pm    Post subject: Reply with quote

sapphirecat wrote:

Use sleep. "perldoc -f sleep" is way easier to use than "man perlfunc" if you know what you're looking for.


Yeah, that did the trick, but the problem is that I can't change windows in irssi while it is paused, is there a workaround?
Back to top
View user's profile Send private message
sapphirecat
Guru
Guru


Joined: 15 Jan 2003
Posts: 376

PostPosted: Mon Jun 07, 2004 3:58 pm    Post subject: Reply with quote

Fanatic wrote:
Yeah, that did the trick, but the problem is that I can't change windows in irssi while it is paused, is there a workaround?

Ahh... hmm. You might be best off forking and doing the work in a separate process. Or call system("autoss.sh $stuff &"). But in those cases it would be hard/impossible to get a status back about the success of the command.

You'll just have to experiment with it, I guess.
_________________
Former Gentoo user; switched to Kubuntu 7.04 when I got sick of waiting on gcc. Chance of thread necro if you reply now approaching 100%...
Back to top
View user's profile Send private message
jUmB0
n00b
n00b


Joined: 19 Jan 2004
Posts: 29
Location: (Currently back in Iraqistan)

PostPosted: Sat Sep 25, 2004 7:12 am    Post subject: hrm Reply with quote

whats the best way to automate such a script
adding it to my crontab doesn't seem to take a pic
Back to top
View user's profile Send private message
g2x
n00b
n00b


Joined: 28 Oct 2004
Posts: 15

PostPosted: Tue Feb 08, 2005 6:37 am    Post subject: yet another screenshot upload script Reply with quote

I wanted a simple script to take screenshots of my desktop and upload them via ftp to my website in a neat way. I've seen some threads around, but didn't read them all.. anyway here it goes... :)

emerge imagemagick
emerge ncftp
mkdir ~/screenshots

nano ~/screenshots/1.html
Code:
<html>
<head>
  <title>Screenshots</title>
</head>
<body link="#000000">
  <table cellpadding="10" width="800">
    <tr>
      <td>


nano ~/screenshots/2.html
Code:
        </td>
      </tr>
    </table>
  </body>
</html>


I don't know any bash scripting really, so I'm sure this can be done in a more correct and efficient way. However I did get something together that gets the job done, which is enough for me. And if it aint broke...

nano ~/shot
Code:
#!/bin/bash

# -------------------------------------

PREFIX=screenshot
SUFFIX=.jpg
QUALITY=95

PREFIX2=thumb
SUFFIX2=.jpg
THUMBWIDTH=200

DELAY=5

LOCALDIR=~/screenshots

FTP=
FTPUSER=
FTPPASSWD=
FTPREMOTEDIR=/

VSPACE=10
HSPACE=10
TARGET=_blank
BORDER=2

# -------------------------------------

cd $LOCALDIR

NAME=$PREFIX-$(date +%y-%m-%d)
NAME2=$PREFIX2-$(date +%y-%m-%d)

SHOT=$NAME$SUFFIX
THUMB=$NAME2$SUFFIX2

if [ -f $SHOT ] ; then
  x=2
  while true; do
    SHOT=$NAME'_'$x$SUFFIX
    THUMB=$NAME2'_'$x$SUFFIX2

    if [ ! -e $SHOT ] ; then
      break
    fi

    x=`expr $x + 1`
  done
fi

sleep $DELAY;import -w root -quality $QUALITY $SHOT
convert -sample $THUMBWIDTH $SHOT $THUMB

echo '<a href="'$SHOT'" target="'$TARGET'"><img src="'$THUMB'" border="'$BORDER'" vspace="'$VSPACE'" hspace="'$HSPACE'" alt="'$SHOT'"></a>' >> 1.html
cat 1.html > index.html
cat 2.html >> index.html

ncftpput -u $FTPUSER -p $FTPPASSWD -R $FTP $FTPREMOTEDIR $LOCALDIR

exit 0


chmod +x ~/shot
add a keybinding to execute the script :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum