#!/bin/bash # (c) 2004 Niels Elgaard Larsen # Licence: GPL apics=$(ssh ncpicture ls /home/elgaard/pics) if [ $? == 0 ]; then echo apics = $apics ssh thepictureframe killall feh X Xdialog --menu "Select gallery" 20 22 10 $(for wo in $apics; do echo $wo x; done) 2> /tmp/newgallery read newgallery < /tmp/newgallery echo new gallery are: $newgallery ssh thepictureframe xinit /usr/local/bin/slidesjov $newgallery else Xdialog --title "Error" --msgbox "Error are you sure the pictureframe is on?" 10 25 fi