Displaying 2 results from an estimated 2 matches for "cmd_df".
Did you mean:
cmd_def
2006 Jun 26
0
Using a partial multiple times in a view
Hi,
im trying to execute multiple cmds in a method that use the same view
which
has multiple calls to the same partial inside it.
However i cant get it to work correctly, so any help here would be
appreciated
heres the controller code
def index
cmd_df = "df -Ph"
exec_cmd(cmd_df)
cmd_sys = "uname -a"
exec_cmd(cmd_sys)
end
private
def exec_cmd(cmd)
r=IO.popen(cmd, "r")
@result = r.readlines($/)
r.close_read
return @result
end
heres the index view
<div class="body_t...
2012 Oct 04
8
[PATCH][BTRFS-PROGS][V3] btrfs filesystem df
Hi Chris,
this serie of patches updated the command "btrfs filesystem
df". I update this command because it is not so easy to get
the information about the disk usage from the command "fi df" and "fi show".
This patch was the result of some discussions on the btrfs
mailing list. Many thanks to all the contributors.
From the man page (see 2nd patch):
[...]
The