When i use the tool in command line it works fine, but inside the script it doesnt. Can someone tell me how to write it correct?
/tool fetch url=sftp://XXXXXX/test.txt upload=yes user=backupuser password=XXXXXXsrc-path=test.txt src-address=XXXXX
Code: Select all
:foreach a in=[/file find] do={
/tool fetch url=("sftp://XXXXXXX/" .$a) upload=yes user=backupuser password=ashahahha src-path=$a src-address=92.XXXXXXX;
}
}
thx
mark