EN VI
Posts (0)
Questions (1)
2024-03-10 20:00:06
You need to put quotes around printf : expect -c 'spawn ssh -t MYHOST@MYSERVER "printf '"'"'\[\\33\[01\;32m\ \ A\ MESSAGE\ TO\ BE\ SHOWN\ \ \\33\[01\;37m\]\\n'"'"'; bash"; expect "Password:"; send "s...
Tags: bash ssh formatting

Login


Forgot Your Password?

Create Account


Lost your password? Please enter your email address. You will receive a link to create a new password.

Reset Password

Back to login