On 15 November 2011 22:56, Musayev, Ilya <imusa...@webmd.net> wrote: > "df" has some formating issues. i.e. if you have a very long string that > defines your partition, it will insert new lines. > > > As lots of others have said, "df -P"
> > I may have to use python script by JCH. > > I prefer that solution :-) Actually, personal preference aside, "df -P <dir>" also returns the device that is mounted which may involve doing an lstat(2) on all the directories leading to <dir>. Under some pathological nfs server conditions that can take a long time where a simple statvfs(3) won't. I'd probably use df -P in my scripts though. jch
_______________________________________________ rhelv5-list mailing list rhelv5-list@redhat.com https://www.redhat.com/mailman/listinfo/rhelv5-list