how to run inotifywait background
Hello.
I want to run Inotifywait background.
I use:
nohup inotifywait -rm --timefmt "%Y %B %d %H:%M" --format "%T =-= %e %w%f" -e create,delete,move /somefile1 >> /somefile2
then type ctl+Z and bg and it runs background.
But when I type such a way:
nohup inotifywait -rm --timefmt "%Y %B %d %H:%M" --format "%T =-= %e %w%f" -e create,delete,move /somefile1 >> /somefile2 &
and bg, it doesn't work.It moves background and stops,doesn't run.
How can I run inotifywait background with & symbol?
|
Recent comments
17 hours 39 min ago
17 hours 45 min ago
22 hours 43 min ago
1 day 5 hours ago
1 day 6 hours ago
1 day 7 hours ago
1 day 11 hours ago
1 day 18 hours ago
1 day 22 hours ago
1 day 23 hours ago