Linux

Grab several screenshots from specified window in linux

This was a short bash script I wrote to help document some startup problems on a server. The script was grabbing screen dumps from iDRAC during boot on a RHEL6 server, but it can be used on other distributions as well since the console command xwd is common. #!/bin/bash # Description: # Grab screenshot of […]

Read More
Linux

Extract pictures from a VOB file using transcode

Sometimes it is useful to collect some pictures from some different DVD’s to a new one. But what to do if the original pictures are deleted now. You can use the following command to extract the pictures first. transcode -x mpeg2 -i VTS_01_1.VOB -y im -F jpg -w 100 -F jpg, png, gif ==> picture […]

Read More
Linux

Resize of images in a folder with imagemagick

#!/bin/bash # Hans-Henry Jakobsen # Script som bl.a resizer bilder og legger de i rett mappe # NB! ikke bruk originalfil da dette script sletter fila # Sjekker at mapper eksisterer if [ ! -d 320 ] then mkdir 320 fi if [ ! -d 480 ] then mkdir 480 fi for file in $(ls|grep […]

Read More