R
ruds
hello,
I want to find out how much free disk space is present for a particular
directory in unix system.
For this I'm executing command :
p=r.getRuntime().exec("rsh "+machine+" \"cd /scratch; df -k .\" |
awk '{print $3}' ");
but, the '-' sign of df -k and the single quotes for print do not get
exceuted and hence I'm not able to get a proper o/p.
can anyone tell me how to execute it?
I want to find out how much free disk space is present for a particular
directory in unix system.
For this I'm executing command :
p=r.getRuntime().exec("rsh "+machine+" \"cd /scratch; df -k .\" |
awk '{print $3}' ");
but, the '-' sign of df -k and the single quotes for print do not get
exceuted and hence I'm not able to get a proper o/p.
can anyone tell me how to execute it?