[Linux-programlama] ftp ile dosya atma

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: yaşar tunçez (ytuncez@gmail.com)
Date: Wed 19 Apr 2006 - 07:47:09 GMT


Merhaba,

ftp ile intranetteki linux sunuculara ftp ile dosya atmak için
aşağıdaki betiği hazırladık ama ftp bağlantısında sorun veriyor:
Betiği çalıştırınca 172.54.29.1 merkezinin islemi yapiliyor
usage: ftp host-name [port]
ftp>
hatasını veriyor. ls komutunu verince Not connected mesajı çıkıyor.

#!/bin/bash
for i in `cat hosts`
do
ping -c 5 $i | grep "64" >> /dev/null
if [ $? -eq 0 ]
then
echo $i "islemi yapiliyor"
ftp open $i /usr:deneme /password:dene
cd deneme
lcd /sybase/kabuk_prog/ftp_at
ascii
mput *.txt
quit
else
echo $i "ip li merkeze hat yok"
fi
done

_______________________________________________
Linux-programlama mailing list
Linux-programlama@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.