Page 1 of 1

"/system upgrade" can't be scripted in auto.rsc file?

Posted: Mon Jun 09, 2008 6:22 pm
by REDTDI
I'm trying to put the following script into a auto.rsc file without much success. It seems that the fact that the password ("blahblah") is entered on a seperate line stops the entire auto.rsc file from executing. Is there a way to pass the password as part of first line? The script runs fine when cut and paste into a terminal window.

/system upgrade upgrade-package-source add address=192.168.1.1 user="admin"
blahblah

Thanks,
Ken

Re: "/system upgrade" can't be scripted in auto.rsc file?

Posted: Tue Jun 10, 2008 11:32 am
by mrz
This should be fixed in 3.10

Re: "/system upgrade" can't be scripted in auto.rsc file?

Posted: Wed Apr 27, 2016 5:42 pm
by Deantwo
This should be fixed in 3.10
No it is not. Or it is at least broken again.
See: http://forum.mikrotik.com/viewtopic.php ... 17#p535217


Tested with file test.auto.rsc:
:log warning "Attempting import."
/system upgrade upgrade-package-source add address=192.168.1.1 user="admin"
blahblah

:log warning "Import successful!"
The log reports:
system, info, account    user admin logged in from 192.168.1.10 via ftp
script, warning          Attempting import.
script, error            script error: Script Error: this command requires user input
test.auto.log is created, but is empty.