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
1 day 3 hours ago
1 day 5 hours ago
1 day 17 hours ago
1 day 20 hours ago
2 days 43 min ago
2 days 6 hours ago
2 days 16 hours ago
2 days 18 hours ago
3 days 2 hours ago
3 days 3 hours ago