Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [incrontab]

The tag has no usage guidance.

-1
votes
1answer
22 views

crond service running after removing the entry in crontab

I removed the entries in crontab for root and still, I can see the scripts running tail -f /var/log/cron. How can I remove those entries. Output of cron log: CROND[2736]: (root) CMD (/home/centos/...
0
votes
0answers
69 views

Running Python on Incrontab

Our incrontab are triggered but the shell script are not running. Here my syntax incrontab -l /ftp/ftp1/dbg/10.10.252.121 IN_CREATE /ftp/ftp1/dbg/lpr_10.10.252.121.sh When I create new file, I saw ...
-2
votes
1answer
512 views

What's the difference between /var/spool/cron and /var/spool/cron/crontabs?

This went unmentoned anywhere else I could find, not even in the man page of crontab. what's the difference between them? some people say they don't have /var/spool/cron/crontabs, but one can easily ...
0
votes
1answer
38 views

redirect website while making backup

I use incron to create backups for a website, and I like to redirect all requests to an other site when/while my scripts are running. What I have done so far... incron runs some scripts every time I ...
0
votes
2answers
645 views

crontab emails me that /bin/bash/ mail or /bin/bash mailx is not found

Update: cron string is now correct in structure. I have the mailto:user1@domain.com,user2@domain.com option configured in my crontab I have this crontask scheduled right now: */5 * * * * root /bin/...
2
votes
2answers
433 views

What resources is incrond using? What can make it stop?

Incrontab is set up to monitor approx. 10 directories. The only thing it does is that it starts a Bash script when the new file is received inside one of these directories. Approximately, one file is ...
1
vote
1answer
735 views

Cronjob starts multiple processes

Cronjob creates multiple processes for the same script. One using /usr/bin/php /path/to/php/script And other using /bin/sh -c /usr/bin/php /path/to/php/script These are 2 separate processes....
0
votes
1answer
38 views

Why am I seeing much more cron jobs in webmin than in `crontab -e`?

I am just starting to learn cron jobs. Basically I am going to use webmin to manage my cron jobs, I am also reading some basic information about cron jobs. So far I've learned that /etc/crontab ...
2
votes
1answer
950 views

incrond Error - access denied on /home/*/abc/ events will be discarded silently

I am getting following error on Ubuntu in the logs. incrond Error - access denied on /home/*/abc/ events will be discarded silently I am trying to monitor /home/*/abc/ can be anything. Any ...
4
votes
0answers
367 views

How can I get incron to run a task when a file is overwritten?

I have data extract that gets updated by another server. I want to run a script whenever that file is updated. My incron task looks similar to: /path/to/file IN_MODIFY php -f /path/to/script.php -- ...
1
vote
1answer
577 views

Incron executes only once

I have an incron configured , in the incrontab. The event gets executed only once after the reload and incron disables the watch after that and the event does not get triggered by incrontab table ...
1
vote
1answer
111 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, ...
2
votes
1answer
5k 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: http://...
1
vote
0answers
285 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
961 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 ...
4
votes
1answer
1k 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 /home/user/scripts/...
1
vote
3answers
129 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 ...
8
votes
4answers
23k 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
316 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 (...
5
votes
2answers
3k 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
681 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..."
2
votes
1answer
3k 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
1k 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 ...