I have a need to run a one liner using bash commands to monitor folders.I was wondering if I could get assistance please.
Code:
watch -n 1 -d ls -lt ftp/directory/inbox /home/directory/outbox/ /home/directory/ndm/directory/outbox/transferred/; watch 'folder=$(ls -lt ftp/directory/processed/ | head -n 8);echo "$folder"'
the issue I am having is the last command is not being displayed in a single session
Quote:
watch 'folder=$(ls -lt ftp/directory/processed/ | head -n 8);echo "$folder"'
|
because of the ; sign .But I dont know how to make all show up in one watch session.