bash - How to start inotifywait and another process from one shell script? -


this question has answer here:

i'm trying start server process (storescp, dicom toolkit) , file system watcher (via inotifywait) shell script. here's have far.

#!/bin/bash  infolder=/home/dicom/storescp_in/ outfolder=/home/dicom/dicom_jpeg  #watch input directory inotifywait -m -e close_write "$infolder" | while read dicomfile mv "$infolder""dicomfile"  "$outfolder""$dicomfile"  done      # start storescp server storescp -v -od $infolder 104 

but inotifywait appears blocking call (sorry, i'm coming @ javascript event driven kind of experience; don't have experience bash scripts).. possible start server , inotifywait in same script? how?

i solved using & operator, in question how run multiple programs in parallel bash script?

seems thing!


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

java - Using an Integer ArrayList in Android -