Liverpaul Posted July 29, 2010 Share Posted July 29, 2010 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 Thanks Link to comment Share on other sites More sharing options...
jaberwacky Posted July 29, 2010 Share Posted July 29, 2010 Code please. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
kaotkbliss Posted July 29, 2010 Share Posted July 29, 2010 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 gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
Liverpaul Posted July 30, 2010 Author Share Posted July 30, 2010 Thanks for the replies guys 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 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