03-07-2008
1,
0
Join Date: Mar 2008
Last Activity: 7 March 2008, 10:53 AM EST
Posts: 1
Thanks Given: 0
Thanked 0 Times in 0 Posts
mdelete
Hello,
I have a big problem with mdelete and I don't know further. In my shell script mdelete filename1 filename2 filename3 etc. does not delete alle files.
Here's the log:
-rw-r--r-- 1 root root 1 Mar 7 14:40 corrado
-rw-r--r-- 1 root root 1 Mar 7 14:40 golf
-rw-r--r-- 1 root root 1 Mar 7 14:40 hobbit
-rw-r--r-- 1 root root 1 Mar 7 14:40 lupo
-rw-r--r-- 1 root root 1 Mar 7 14:40 passat
-rw-r--r-- 1 root root 1 Mar 7 14:40 tolkien
mdelete corrado? mdelete golf? mdelete hobbit? mdelete lupo? mdelete passat? mdelete tolkien?
Why is there an question mark instead of a new line?
And that's the script snippet:
cd ${WrkDir}
WrkList=`ls -1 | tr '\n' ' '`
ftpcmd="user ${User} ${Passwort}
cd ${QuellDir}
ls -AlF
mdelete $WrkList
ls -AlF
bye"
/usr/bin/ftp -n $IP_FTP << EOF | more >> $LogDatei
$ftpcmd
EOF