Search:

Type: Posts; User: hoop2; Keyword(s):

Search: Search took 0.07 seconds.

  1. Re: BASH / Run a shell command when a file added / pb

    it's working !!!

    thanks Lars, i changed $f to %f but no success too.
    i did without -m and %f and it's working
    thanks for your time and answer each time

    #!/bin/bash

    ...
  2. Re: BASH / Run a shell command when a file added / pb

    thanks lars, that what i did first but i got same error.
    i added -m after inotifywait and now i don't have the same error, inotifywait seems to work correctly.
    but when i add a file like...
  3. Re: BASH / Run a shell command when a file added / pb

    Thanks to you for this solution but it doesn't work for me. It returns the error :
    Couldn't watch create: No such file or directory

    this is what i did :
    #!/bin/bash

    ...
  4. Re: BASH / Run a shell command when a file added / pb

    Ok thanks a lot to you and for your time.
    I will look at incron, i used it but with no success, not success i expected.

    Thanks to you
  5. Re: BASH / Run a shell command when a file added / pb

    Thanks for your answer. Your script works. But print also the last lines stored in /var/log/vsftpd.log

    When you said "It's probably because cut does not trim the quotes and the test -s takes...
  6. BASH / Run a shell command when a file added / pb

    Hi all, thanks to take time to read this.

    I want to do something special : when a file is added (by ftp) to a specific folder, a script launch a command. I found a good script but maybe i made a...
Results 1 to 6 of 6