I have this small piece of code that i want to implement in some of my existing scripts.
Code: Select all
do {
global aIP "10.50.0.191"
global aID "Test"
global logftp "ftp/$aID_ftp.log"
global UPL do={/tool fetch upload=yes url="sftp://$aIP/$1" src-path="$2" user="admin-ssh" keep-result=no;}
execute file=$logftp script=[$UPL dude_rsa.pub server.pub]
}
status: finished
uploaded: 0KiB
total: 0KiB
duration: 1s
If i paste this on routeros script and try to run it i give this error:
system/script/run "test func"
failure: invalid URL
Somebody can help me please?