Hi,
I have made a script for fetching a file from a ftp server with the name of the serial number. Moving the content into a .rsc file and importing it. When I run the command from a terminal it works fine, but it can’t fetch the file when I run it from a script.
Can you tell me why ??
/tool fetch mode=ftp user=USER password=PASSWORD address=IP path=[/system routerboard get serial-number ;];:delay 1; /file set imported.rsc contents= [/file get [/file find name=[/system routerboard get serial-number ] ] contents] ; :delay 2; /import imported.rsc ;
When this works from a script I would of course make a schedule to run this script.
/Regards
Jesper Kjaer
DK