Page 1 of 1
Inspecting on which platform apps are running
Posted: Tue Aug 14, 2012 8:31 am
by Allanon
Hello all,
I was wondering how can I know from my script if my program is running on Linux PPC or Linux x86 ( the same applies to MacOS too), from the docs about
GetVersion() it should report only the generic platform, so I'm not able to know exactly on which platform I am. Any suggestions?
Re: Inspecting on which platform apps are running
Posted: Fri Aug 17, 2012 6:28 pm
by airsoftsoftwair
Sorry, not possible. Could be added easily of course if you need it...
Re: Inspecting on which platform apps are running
Posted: Fri Aug 17, 2012 11:25 pm
by Allanon
Hi Andreas,
if it's a simple addition for you it could be very handy to download and run external utilities for the right hosting system
Re: Inspecting on which platform apps are running
Posted: Sun Aug 19, 2012 10:52 pm
by airsoftsoftwair
Okay, I've added a "CPU" field to the return table of
GetVersion(). You can query this to find out on which CPU Hollywood is currently running.
Re: Inspecting on which platform apps are running
Posted: Mon Aug 20, 2012 12:04 am
by Allanon
Thank you Andreas!

Re: Inspecting on which platform apps are running
Posted: Sun Oct 21, 2012 10:00 pm
by JurassicC
Would it also be possible to add support for "MachineName" under AmigaOS4.1 that way you see if your script is running on an X1000 (faster) or an A1200 with a Blizzard (slower).
In python its amiga.getmachine()
so you can make a little script called whichamiga.py
--snip--
import amiga
print (amiga.getmachine())
--snip--
Returns as examples
BlizzardPPC/A1200
AmigaOne X1000
Re: Inspecting on which platform apps are running
Posted: Sat Oct 27, 2012 12:06 pm
by airsoftsoftwair
Sorry, that's too much work. It's easy to find out the machine name on OS4 but it's getting much more complicated on classics and all the other platforms
