Jump to content
Sign in to follow this  
mrPuh

AutoIT + SSH

Recommended Posts

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

Share this post


Link to post
Share on other sites

@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!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...