When I try to execute following command that returns error or doesn't exit on Windows - I always get empty list instead of error returned as string so for example:
I get:
[] = os:cmd("blah").
instead of something like
"command not found" = os:cmd("blah").
In linux - everything works as expected so I get "/bin/sh: line 1: blah: command not found\n"
Therefore I cannot rely on that function when I need to know how execution finished etc. Please suggest some general way how to execute command and get results including error code.
Thanks!
os:get_env("COMSPEC")
anderlang:system_info(os_type)
in erl.exe and werl.exe, please? – Bevus