User Activity

  • Posted a comment on discussion Help on Expect

    It is definitely a router thing. I have tried escaping the bracket but it just wont thru an expect script. I can ssh into the router and issue the command directly with no problems.

  • Posted a comment on discussion Help on Expect

    I have a script that we are trying to use to change passwords on Mikrotik routers. I have the password we use contains a right bracket and when the script is run everything from the right bracket on gets left off. 1 2 3 4 5 6 7 8 9 10 11 12#!/usr/bin/expect set user "jamesc" set password "password" set ipaddr [lindex $argv 0] set sshport 22210 set date [clock format [clock seconds] -format {%Y-%m-%d}] set newpass "lan3\+\]2081" spawn ssh $user@$ipaddr -p $sshport "/user set 0 password=$newpass" expect...

View All

Personal Data

Username:
jcooley70
Joined:
2018-02-23 20:25:38

Projects

  • No projects to display.

Personal Tools