kassir@kassir-desktop:~$ sudo chmod +x /usr/bin/dnc_ftp_exchange
[sudo] пароль для kassir:
kassir@kassir-desktop:~$ dnc_ftp_exchange
+ FTP=ftp://kassir:--------6@************
+ SLEEPTIME=90
+ Local_path=/var/Exchange/
+ List_of_goods=goods.txt.zip
+ FLAG=goods.flz
+ FILE_LOADING=goods.txt
+ RFLAG=report.flr
+ FILE_UNLOAD=report.txt
+ REPORT=report
+ '[' -d /tmp/temp_goods ']'
+ echo ':)'
+ '[' 1 = 2 ']'
+ curlftpfs -v -o allow_other -o nonempty -o connect_timeout=30
ftp://kassir:*******@1****** /tmp/temp_goods/
* Couldn't find host 194.48.218.82 in the .netrc file; using defaults
* Trying 194.****...
* TCP_NODELAY set
* Connected to 194.******* (194.********) port 21 (#0)
< 220 (vsFTPd 3.0.3)
> USER kassir
< 331 Please specify the password.
> PASS *******
< 230 Login successful.
> PWD
< 257 "/home/kassir" is the current directory
* Entry path is '/home/kassir'
* ftp_perform ends with SECONDARY: 0
* Remembering we are in dir ""
* Connection #0 to host 194.48.218.82 left intact
fusermount: option allow_other only allowed if 'user_allow_other' is set in /etc/fuse.conf
+ '[' -f /var/Exchange/report.flr ']'
+ '[' -f /var/Exchange/report.txt ']'
+ '[' -f /tmp/temp_goods/report.flr ']'
+ '[' -s /tmp/temp_goods/goods.txt.zip ']'
+ umount /tmp/temp_goods
umount: /tmp/temp_goods: not mounted.
+ ifdown ppp0
/usr/bin/dnc_ftp_exchange: строка 105: ifdown: команда не найдена
+ killall -9 curlftpfs
curlftpfs: процесс не найден
+ sleep 90