Jump to content

Sending text between Windows environment and Linux environment


Recommended Posts

Hi,

I am working on a Windows XP computer and I run my AutoIt scripts from there. I also access a Linux (RedHat5) machine by using a program called ThinAnywhere (I am a beginner to this and Linux). ThinAnywhere allows me to access a Linux machine remotely. So, I have my normal Windows environment and a ThinAnywhere window where I can see and access my Linux desktop.

Several of the scripts I write need to send text from the Windows environment to the Linux environment. Problem is, using the send("sometext") command from Windows to Linux is a bit unreliable. At this moment when I try to send "hello" from Windows to a konsole window in Linux, I get "h?llò" appearing in the Linux konsole window ;)

I'm not really sure why this is. Could it be something to do with how Windows and Linux view text. Maybe I should be using an alternative to Autoi's "send()" command. I'm only throwing out guesses because I'm new to Linux and AutoIt.

Any ideas about what I could try or test. If possible, please keep the language simple because I'm not that much of a techie :P

Thanks :blink:

Link to comment
Share on other sites

If you cannot get send to work, maybe as a work-around you could try copy and pasting text to the linux window. If that works then you could use clipput and clipget. I've never used linux or thinanywhere so I do not know how they work.

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

Thanks for the replies guys :P

Code please.

It's just a simple send("sometext") statement.

If you cannot get send to work, maybe as a work-around you could try copy and pasting text to the linux window. If that works then you could use clipput and clipget. I've never used linux or thinanywhere so I do not know how they work.

I wasn't aware of clipput and clipget, I'll try those and see if they are more reliable. Thanks.

UPDATE:

I deleted the .XAuthority file and re-loggedin to linux. The send command works again ;) . I've no idea what the problem was, but I guess you can consider this issue resolved. Thanks for taking the time to reply :blink:

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...