Ben kullanmak istiyorum lftp -c
(Ben daha sonra bir komut dosyasından bu sunacağız gibi) tek seferde bütün bir deneme yapmamız ve birlikte yönetilen -e
ama ben istemiyorum interaktif oturum ile yaprakların beni ofc.
Manuel durumlar
-c commands
Execute the given commands and exit. Commands can be separated with a semicolon, `&&'
or `||'. Remember to quote the commands argument properly in the shell. This option
must be used alone without other arguments.
Ancak, komutlarımı / etkileşimlerimi nasıl doğru bir şekilde alıntılayıp dizeceğim gerektiğini anlamıyorum.
lftp -e "put -O remote/dir/ /local/file.txt" -u user,pass ftpsite.com
mükemmel çalışıyor. Ama komutu yerine getirdikten sonra çıkmak istiyorum;
lftp -c "open -u user,pass ftpsite.com" || put -O "remote/dir/ /local/file.txt"
sadece bana bağırıyor, ya da aslında denediğim herhangi bir alıntı kombinasyonu ( ||
ya da &&
ne olursa olsun)