2017-01-03 2 views
0

어떻게 backgroud에서 simultaniously 12 bash 스크립트를 실행할 수 있습니까?백그라운드에서 intotify를 실행하십시오

#/bin/bash 

while inotifywait -e close_write /var/www/html/wp-content/QM-Handbuch /01-Inhaltsverzeichnis.doc; 

    do  soffice --headless --convert-to pdf /var/www/html/wp-content/QM-Handbuch/01-Inhaltsverzeichnis.doc && 
      sudo mv /var/www/html/wp-content/QM-Handbuch/01-Inhaltsverzeichnis.pdf /var/www/html/wp-content 

답변

0

앰퍼샌드 (&)는 백그라운드에서 bash는 스크립트를 실행할 수 있습니다 사용 : 스크립트의

.

구문 : -

<prompt> $ bash <file name> & 

예 : -

<prompt> $ bash inotify.sh &