--- In [email protected], "kaffbeemer" <[EMAIL PROTECTED]> wrote: > > chmod 0755 $DIRECTORY/$1 >
Hey, thanks pal! There was one small thing missing: a "/" before "$DIRECTORY/$1", but I found this because I also "discovered" you can switch on a debug mode while running an FTP script. By looking at the debug feedback, I saw the missing "/". Now it works fine. For the ones interested, here's the complete script (inclusive the debug modus): #!/bin/sh HOST='192.168.123.135' USER='root' PASSWD='pass' #FILE='filename' DIRECTORY='domotics' /usr/bin/ftp -v -n $HOST <<-EOF quote user $USER quote pass $PASSWD debug cd $DIRECTORY put $1 chmod 0755 /$DIRECTORY/$1 EOF Thanks again! Best rgds, --Geert
