Skip to main content
Question

Identify which Operating System is being used?

  • Dec 17, 2015 3:24 AM UTC
  • 4 replies
  • 112 views

Forum|alt.badge.img

Is it possible to test (from within FME) which operating system an FME workspace is running on?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

takashi
Celebrity
  • Dec 17, 2015 6:23 AM UTC

Python has these properties or method.

See the links. One of them might help you.


mark2atsafe
Safer
Forum|alt.badge.img+59

I thought we had a published parameter for this, but I guess not. If you want to distinguish between Windows and Linux the best I can offer is the FME_MF_DIR parameter - if it starts with "C:\\" then you can be fairly certain it's a Windows platform.


bo
Contributor
Forum|alt.badge.img+10
  • Contributor
  • Jan 2, 2024 12:12 AM UTC

The FME_OS parameter now may be what you need to use -

FME_OS Returns the operating system on which FME is running - Windows, macOS, or Linux.


bobw
Contributor
Forum|alt.badge.img+5
  • Contributor
  • Aug 2, 2024 8:47 PM UTC
Use FME_OS with AttributeCreator

The ks_rootpath attribute can be used in the file path of readers and writers, making the workspace OS independent.  That is, you can run the same workspace on any platform without modifying paths.

e.g.  @Value(ks_rootpath)/Projects/GIS_TaskRequest/@Value(ProjectNam)/summary.txt