mrPuh Posted November 18, 2017 Share Posted November 18, 2017 Hi! AutoIT successfully read data from plink console with StdoutRead(). But plink print some incorrect symbols (see screenshot). From other console ssh-clients (openssh, putty, Bitvise stermc) StdoutRead() return empty string. Help me please solve the problem. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted November 19, 2017 Moderators Share Posted November 19, 2017 @mrPuh welcome to the forum. How about posting your code, rather than expecting us to guess? I have some plink scripts, and have not seen this. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
argumentum Posted November 20, 2017 Share Posted November 20, 2017 On 11/18/2017 at 1:15 PM, mrPuh said: plink print some incorrect symbols (see screenshot). that is ANSI colors. the symbols are ESC codes. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Bitnugger Posted June 17, 2018 Share Posted June 17, 2018 This is because you have an alias for ls defined in your profile folder (/home/<username>/) in the .bashrc or .bash_aliases file. With me see the e.g. like this... # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' alias dir='dir --color=auto' alias vdir='vdir --color=auto' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' fi # some more ls aliases alias ll='ls -l' alias la='ls -A' alias l='ls -CF' In this case ls is executed with the option --color=auto. You can circumvent this by using/defining a different alias or simply by appending the option --color=never. > ls --color=never Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now