External batch command?

Hi

Is there any program that can log into mikrotik over telnet and pass a command on it?
I’ve tried telnet scripting tool but it’s loose itself after imputing password. So is there any other solution to pass a command to mikrotik externally?

Thx

To telnet and send commands you can use expect script.

Thx… I’ll try expect… but can you give me a script example for that?

ip address
username
password
command

  • confirmation if possible