sigar/bindings/erl/examples/df.erl
2009-06-14 21:29:08 -07:00

15 lines
267 B
Erlang
Executable File

#!/usr/bin/env escript
-include(sigar).
main(_) ->
{ok, S} = sigar:start(),
{ok, FsList} = sigar:file_system_list(S),
lists:map(
fun(Fs) ->
io:format("~s ~n", [sigar:get_value(dir_name, Fs)]) end,
FsList),
sigar:stop(S).