Inotifywait doesn't run command
        Posted  
        
            by 
                Marius Miliunas
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Marius Miliunas
        
        
        
        Published on 2012-09-06T21:36:11Z
        Indexed on 
            2012/09/06
            21:37 UTC
        
        
        Read the original article
        Hit count: 268
        
I have a basic inotifywait script called watch.sh and a few files ending in .styl in the same directory. Here's the script, that catches the changes, but doesn't execute the code within the do/done
I init it like sh watch.sh and here's the script
#!/bin/sh
while inotifywait -m -o ./log.txt -e modify ./*.styl; do
  stylus -c %f
done
I tried having echo "hi" within the exec portion but nothing executes
© Stack Overflow or respective owner