Jump to content

Recommended Posts

Posted

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.

Screenshot_2.jpg

  • 6 months later...
Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...