Skip to main content
Question

Identify which Operating System is being used?

  • December 17, 2015
  • 4 replies
  • 38 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
  • 7843 replies
  • December 17, 2015

Python has these properties or method.

See the links. One of them might help you.


mark2atsafe
Safer
Forum|alt.badge.img+57
  • Safer
  • 2554 replies
  • December 17, 2015

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
  • 79 replies
  • January 2, 2024

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
  • 19 replies
  • August 2, 2024
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