[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: stupid bash tricks (how to loop on the command line)



aragonx dcsnow com wrote:
Okay, I saw a neat trick at work the other day.  A coworker somehow got
the shell to do looping without creating a file.  I believe he was using
csh to do so and I was wondering if I could do the same thing in bash. Basically I would like to be able to do a while loop to execute a df
command.

Any ideas?

while df ; do sleep 30m ;done


--

Cheers
John

-- spambait
1aaaaaaa coco merseine nu  Z1aaaaaaa coco merseine nu
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

Please do not reply off-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]