Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parserutils.php on line 202

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parserutils.php on line 205

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parserutils.php on line 314

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parserutils.php on line 454

Deprecated: Function split() is deprecated in /home/www/web535/html/dokuwiki/inc/auth.php on line 146

Warning: Cannot modify header information - headers already sent by (output started at /home/www/web535/html/dokuwiki/inc/parserutils.php:202) in /home/www/web535/html/dokuwiki/inc/auth.php on line 236

Warning: Cannot modify header information - headers already sent by (output started at /home/www/web535/html/dokuwiki/inc/parserutils.php:202) in /home/www/web535/html/dokuwiki/inc/actions.php on line 128
linux_scripts:canon-getimages.sh [wiki.BerndLux.de]
 

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/parser.php on line 66

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/lexer.php on line 292

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/handler.php on line 22

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/handler.php on line 44

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/handler.php on line 208

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/handler.php on line 236

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/handler.php on line 290

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/handler.php on line 323

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/handler.php on line 560

Deprecated: Function split() is deprecated in /home/www/web535/html/dokuwiki/inc/parser/lexer.php on line 510

Deprecated: Function split() is deprecated in /home/www/web535/html/dokuwiki/inc/parser/lexer.php on line 510

Deprecated: Function split() is deprecated in /home/www/web535/html/dokuwiki/inc/parser/lexer.php on line 510

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/xhtml.php on line 980

nikon-getimages.sh

#!/bin/bash

#==============================================================================
# VERSION : 0.02
# LICENCE : GPL
# FILENAME: canon-getimages.sh
# PURPOSE : Copy all images from my Canon S50 to an certen directory which
#            will be created by the script
# DATE    : 2006-07-01
# REVISION: 2006-07-01
# AUTHOR  : (c) 04.07.11 Bernd Luxenburger, bernd @ rlux.de
# URL     : http://berndlux.de
# ORIGINAL: (c) 03.12.25 Bernd Luxenburger, bernd @ rlux.de
# USES    : bash, gphoto http://www.gphoto.org/
#
# SYSTEM  : GNU/LINUX
# =============================================================================
# CHANGELOG:
#
# --- 2006.07.01 03:15  V0.03
#  * fork to nikon-getimages to be used with the Nikon D70s
# --- 2004.02.15  16:30  V0.02
#  + automatic generated directorys, if none 
#      is given an read time past
# --- 2003.12.25  18:15  V0.01
#  * initial coding
# 

# a script to get all pictures from my canon s50 to disk.
# it needs gphoto2 and all it's libs to run
# bernd Lux 03.12.25 18:15
 
# were to put subdirs with pictures
PICS=/home/bernd/Bilder
 
# Path of gphoto
GPHOT=/usr/local/bin/gphoto2
# --------------------------------------------------------------------
 
DIR="0"
# is there a dir as option?
if [ -n "$1" ] ; then
  DIR=$PICS/$1
  echo  "Save in $DIR"
fi
 
if [ "$DIR" = "0" ]; then
 # where to place the pitures?
 echo "Wohin mit dem Bilder?"
 echo -n "$PICS/"
 read -t 12 BUF;
 
 if [ ! -n "$BUF" ] ; then
    echo "pech, nix angeben, die kommen in " 
    DIR=$PICS/"`date +%y.%m.%d`-TMP"
    if [ -d $DIR ]; then
     for i in 1 2 3 4 5 6 ;do
      if [ ! -d $DIR ]; then
       DIR=$PICS/"`date +%y.%m.%d`-TMP$i"
       break;
      fi
     done;
    fi
   echo $DIR
   else
   DIR=$PICS/$BUF
   echo  "Save in $DIR"
 fi
fi
 
# does the dir exist?
if [ -d $DIR ]; then
 echo "$DIR existiert, überleg dir was anderes"
 exit 1;
else
  # make it!
 mkdir $DIR
fi
 
# cd where to put the images, thera are no options to
# teach gphoto to do the same
cd $DIR
 
# I choose the USB PTP camera, because
# the driver for the S50 ist in test phase,
# it allways leave the cam in a undefined stat,
# after downloading Images
 
#################################### run gphoto
#$GPHOT  --camera "USB PTP Class Camera" -P 
$GPHOT  -P
####################################
 
 
echo 
if [ "$?" != 0 ]; then
 echo "ERROR !!!!!!!! Fehler !!!!!!!!!"
 
 # too dangerous
 # rm -ri $DIR
 exit 1;
fi
 
echo "FERTIG"
 echo -e -n \\a
sleep 1;
 echo -e -n \\a
sleep 1;
 echo -e -n \\a
exit 0;
 
linux_scripts/canon-getimages.sh.txt · Zuletzt geändert: 2006/07/09 12:03 von bernd
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki