Category "sysadmin"

How to capture prompt from terminal using Tcl or how can I match prompt with color code?

I want to capture prompt of a remote device. -regexp {[\$\#]\s*$} { # capture the prompt } "[\$#]\s*$" does not work for prompt with color codes.

Locate the nginx.conf file my nginx is actually using

Working on a client's server where there are two different versions of nginx installed. I think one of them was installed with the brew package manager (its an