According to the version of the operating system, the stat and ls commands use in FMS need different options to operate properly.
A quick fix has been provided by retrying while using the alternative options if that error error occured.
But this is not an elegant solution, it would be for example better to add a field in the machine properties to describe the type of the machine.
Another solution is to check the type of the machine at the first connection on the machine.
According to the version of the operating system, the stat and ls commands use in FMS need different options to operate properly.
A quick fix has been provided by retrying while using the alternative options if that error error occured.
But this is not an elegant solution, it would be for example better to add a field in the machine properties to describe the type of the machine.
Another solution is to check the type of the machine at the first connection on the machine.