Linux

SFTP in batch mode

This post describes how you use sftp in batch mode. If you don’t want to type in your password read my SSH without a password post.Create a file named myCommands.sftp that contains the commands you want to run. My file looks like this # Change to your desired directory locallylcd /data/Hattori# Change to the desired […]

Read More
Scripting

Resize and watermark images using Imagemagick

This is a modified version of my Resize of images in a folder with imagemagick post back in February. Only difference this time is that i strips out EXIF tags and the script has been cleaned up a bit. Click on the image to see the result in full size. #!/bin/bash # Description: # Script […]

Read More
Scripting

Set photo filedate and time according to EXIF info

Sometimes a image files creation date is wrong and have to be corrected. This is a script I use to set a files creation date to the photos date retrieved from EXIF tags. The exiftool program should be available to run this script. #!/usr/bin/env perl use strict; $|++; use Image::ExifTool qw(ImageInfo); use Time::Local; for my […]

Read More