English Amiga Board Amiga Lore

Go Back   English Amiga Board > Support > support.WinUAE

Thread Tools
Old 10 March 2017, 08:59   #1
Registered User

witchmaster's Avatar
Join Date: Oct 2008
Location: Finland
Posts: 129
Question Run AREXX program from PC side?


I heard there are some "remote control" features in WinUAE that lets you automate things. I'm wondering if it is possible to run an AREXX program or shell command in the emulated Amiga from the PC side?

I have made a user defined language fro Blitz Basic 2 in Notepad++ and would like to find a way to automate Blitz Basic 2 (from Notepad++) running in WinUae to load the source file and compile. Is this at all possible?

Thanks in advance!
witchmaster is offline  
AdSense AdSense  
Old 10 March 2017, 20:38   #2
Toni Wilen
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,561
One way is to configure emulated serial port as a TCP port, do something like "newshell aux:" in Amiga side and telnet connect to TCP port.

EDIT: Suggestions accepted for more useful option

Last edited by Toni Wilen; 10 March 2017 at 20:46.
Toni Wilen is online now  
Old 10 March 2017, 23:04   #3
Registered User

witchmaster's Avatar
Join Date: Oct 2008
Location: Finland
Posts: 129
Thanks! I managed to get somewhere with this but not all the way yet. I have some problems but doing these steps has gotten me quite close:

1. In WinUae set serial port to TCP:// with none of the checkmarks below the drop down box. Save the WinUAE configuration and quit WinUAE, add the following to the configuration file manually: serial_translate=crlf_cr

2. Create the file DEVS:MountList with following content

Handler = L:Aux-Handler
Stacksize = 1000
Priority = 5
3. Open shell and write (I added these two commands to S:user-startup)

mount aux:
newshell aux:
4. In Putty, create a Telnet connection to Uncheck Connection / Telnet / Return key sends Telnet New Line instead of ^M

The problem I'm having is that I need to press ENTER twice after connecting with Putty before I can enter commands and pressing up-arrow will not show latest commands, instead it will show gibberish characters (don't know if the command history is possible to fix). I would also like to know how to execute commands from command line so I can create a batch file that can be run from pressing F5 in Notepad++.
witchmaster is offline  
Old 11 March 2017, 14:29   #4
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 2,984
Doesn't WinUAE come with uae_rcli or something similar?
idrougge is offline  
Old 14 March 2017, 21:41   #5
Registered User

Saghalie's Avatar
Join Date: Nov 2014
Location: FT Lewis, WA
Posts: 104
Try using WinSCP, it has a rich set of features that you could try.
Saghalie is offline  
Old 15 March 2017, 10:05   #6
Registered User

witchmaster's Avatar
Join Date: Oct 2008
Location: Finland
Posts: 129
I ended up making a simple command line tool in C# (.net 2.0 or later required) that runs an ARexx script on the emulated Amiga. I'm leaving the link to it here if anybody else wants to use it. You need to set things up on the Amiga side as in my previous post in this thread but select "direct" under the serial dropdown box.

The tool can be used like this:

WinUAEArexx ArexxScript SleepTime Argument1 Argument2 Argument3 ...
SleepTime is defined in milliseconds, my tool is just simply executes the ARexx command and does not care about the response so a sleep time may be needed before closing the connection. All arguments will be sent as strings to the ARexx script.


Originally Posted by Saghalie View Post
Try using WinSCP, it has a rich set of features that you could try.
Thanks! I will consider it for more advanced use cases.
witchmaster is offline  
AdSense AdSense  

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
External windows program communicating with program running inside WinUAE xxxxx support.WinUAE 10 19 February 2013 09:27
Possible to run a program from CLI in background? VoltureX support.Apps 17 14 January 2012 03:16
2D, Gun and Run, Side scroller, similar to Super Probotector/Contra 3, brain boss. Gravox Looking for a game name ? 2 08 February 2010 04:55
program to format/copy Amiga diks/files on the PC side ? Overdoc support.Other 3 21 January 2010 18:08
Cant run AnimatED....anyone every used this great program? mrbob2 support.Apps 2 20 June 2009 13:13

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 13:16.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.13745 seconds with 11 queries