Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
21 views

incrontab is not recognizing www-data writes

I have a Linux server with incrontab. Here is my incrontab /home/pi/upload IN_MODIFY /bin/sh /home/pi/autoprint $@/$# If I am a root user, i tried creating a new pdf file inside the 'upload' folder, ...
0
votes
1answer
282 views

ways to automatically fix line endings in shell scripts or files who break with ^M

Problem We regularly break our files lines endings and things stop working without us noticing. Bash complains about "invalid option" or ": command not found" as described here: ...
1
vote
0answers
70 views

Incrontab does not execute command

I have copied this question over here from unix.StackOverflow When I use incrontab out of the box, I mean no changes, I get no result, as if the cmd was not executed. my incron line is : /crrae ...
0
votes
2answers
224 views

Running python script in incrontab in Debian

I have a user, dropbox, that runs the Dropbox daemon, I want to monitor the directories in the Dropbox directory for new files and run a python script when they appear. I have the python script that ...
0
votes
0answers
54 views

Incrond - event after all files have been copied

We are using incrond to monitor network storage and sending mail when something new is appearing. The problem is, that event registered as: /home/storage IN_CREATE python ...
4
votes
1answer
212 views

How can I create cron jobs in specific files on Linux Centos

I want to have a separate folders for cron jobs like: /mydata/cronjobs Now in that folder I want to have files like backup_server which will have the content like: 30 3 * * 1-5 ...
1
vote
3answers
103 views

Cron - Does not execute command every 10 mins

I don't understand why cron is not really executing the command every 10 minutes. in crontab -e I have added: */10 * * * * /var/www/myproject/recording/batch.pl I could see in the cron log it is ...
1
vote
1answer
2k views

rsync error unexplained error (code 255) at io.c

I was using a script to perform rsync in sudo crontab. The script does a 2-way rsync (from serverA to serverB and reverse). After i reboot both the server machines, the rsync is not working in sudo ...
2
votes
2answers
168 views

Using puppet to manage incrontab

Puppet has the cron resource for managing the crontab, but is there a similar way of managing incrontab? I can find no writings anywhere regarding this, and to be fair, I'm extremely new to puppet ...
3
votes
2answers
362 views

“Unexpected EOF while looking for matching ``” on cron job

I set up a cron job on my server running RedHat 4.1 to backup MySQL databases, and then upload to Amazon S3. The goal is to drop the .bz2 file in a folder corresponding with the day of the week. ...
1
vote
1answer
353 views

use incrontab to run a cron job when anything under a directory is modified using *

how can I tell incrontab to run this command when there has been any modification done under the /web directory? /web IN_CREATE,IN_DELETE,IN_MODIFY /bin/echo "this is a test..."
1
vote
1answer
1k views

Setting up inotify (incron) to monitor several directories using asterisk

I am trying to create an entry in /etc/incron.d/ that'd monitor all changes done under the following directories: /var/www/virtualhosts/dev.anuary.com/*/*/public/css Now, I assume this should be as ...
1
vote
2answers
642 views

incrontab watching files uploaded through vsftpd

I have a process where users ftp particular files to /home/ftp/file1.txt & /home/ftp/file2.txt any given time of the day. I setup incrontab with the following: /home/ftp/file1.txt IN_CLOSE_WRITE ...