Script / fetch issue 3.0rc2

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

I am trying to do almost the exact same thing using RC3, but trying to use HTTP. It doesn’t seem to work though. It makes the HTTP request, but the file created on the filesystem is always 0 bytes.

Its also strange that when specifying the file, I cannot specify an extension (such as .html) or else it gives me an error (Invalid File).

Have you (or anyone out there) been able to make HTTP fetches work?

Examples please?

No I can’t use http either. Same problem…