Hi all.
I have created the following script to upload a file on a ftp server:
{
:global ftpserver
:global usrnme
:global passwd
:global src
:global dst
:set src ("myFile.txt")
:set dst ("myFile.txt")
:set ftpserver "192.168.1.100"
:set usrnme "user"
:set passwd "12345678"
/tool fetch address="$ftpserver" src-path="$src" user="$usrnme" password="$passwd" mode=ftp dst-path="$dst" upload=yes
}
If I launch script from RouterOS terminal do work correctly, but if I call this script from dude notification with the following command doesn't work
/system script run 1
I'm using dude version 6.38 and ftp server is a filezilla, which reply me with the following:
(000030)09/01/2017 09:35:36 - (not logged in) (192.168.1.1)> Connected on port 21, sending welcome message...
(000030)09/01/2017 09:35:36 - (not logged in) (192.168.1.1)> 220-FileZilla Server 0.9.59 beta
(000030)09/01/2017 09:35:36 - (not logged in) (192.168.1.1)> 220-written by Tim Kosse (tim.kosse@filezilla-project.org)
(000030)09/01/2017 09:35:36 - (not logged in) (192.168.1.1)> 220 Please visit https://filezilla-project.org/
(000030)09/01/2017 09:35:36 - (not logged in) (192.168.1.1)> disconnected.
Thanks in advance for support.
Best regards
H.