Directory/File Monitoring with Bash

#!/bin/bash

# File Monitor 
#

function list () {

#ls -l
#sleep 1
# more elegant:
watch -n 1 "ls -l"

}

while true; do
list | grep $1
done
 
Nach oben
bash/monitor.txt · Zuletzt geändert: 2024/02/29 13:36 von 127.0.0.1
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0
DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp   Dogecoin Donations Accepted Here    DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp  DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp