이 인스턴스에서 inotifywait의 결과를 캡처하여 미칠 수 있습니다. 당신이 당신의 출력에 여분의 물건을 할 필요가 있다면 당신이 말할 수bash에서 inotifywait의 출력을 캡처합니다.
while inotifywait <whaveter> >> sync.log
do
# Nothing
done
:
while inotifywait -q -e create,delete --format '%T %:e "%f"' --timefmt '%d/%m/%y %H:%M' "$DIR"
do
echo -e "$line" >> /mnt/pidrive1/Digital_Signage/log/"$hostname"_sync.log
echo -e "Folder contents:" $file_number "files in total: " $folder_list >> /mnt/pidrive1/Digital_Signage/log/"$hostname"_sync.log
done
여기에서 효과가없는 것은 무엇입니까? – Inian
파일에서 $ @을 캡처하지 않습니다. – Ossama