Community discussions

MikroTik App
 
REDTDI
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 56
Joined: Fri May 28, 2004 9:41 pm

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

Mon Jun 09, 2008 6:22 pm

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
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7188
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

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

Tue Jun 10, 2008 11:32 am

This should be fixed in 3.10
 
User avatar
Deantwo
Member
Member
Posts: 332
Joined: Tue Sep 30, 2014 4:07 pm

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

Wed Apr 27, 2016 5:42 pm

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.

Who is online

Users browsing this forum: JDF and 15 guests