crontab

No such file or directory find command on linux [closed]

风格不统一 提交于 2021-02-17 06:30:25
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Improve this question I've created script which delete old backup file from directory but this command was worked fine before 1 week and Nothing change on script or packages but still getting below error: root@:# find /var/backups/abc/* -type d -mtime +6 /var/backups/abc/2016-03-09

No such file or directory find command on linux [closed]

↘锁芯ラ 提交于 2021-02-17 06:30:01
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Improve this question I've created script which delete old backup file from directory but this command was worked fine before 1 week and Nothing change on script or packages but still getting below error: root@:# find /var/backups/abc/* -type d -mtime +6 /var/backups/abc/2016-03-09

Upload files even after closing the browser

时光毁灭记忆、已成空白 提交于 2021-02-11 17:27:48
问题 Can we set the php file upload as a background process? I mean I will select files and click upload button and then close the browser. But the process should be on the back ground and after successful completion i need to update the database as well. Please advice. Thanks 回答1: No, if you shut down the client, then the client will stop sending data to the server. If you want to upload large files on a regular basis and not have the process be interrupted by people forgetting that their browser

Running PHP file using crontab

故事扮演 提交于 2021-02-10 12:53:08
问题 I need to run a PHP file every 1 hour. What I'm doing is: sudo crontab -e (In the editor) * 01 * * * /usr/bin/php /var/www/devicecheck.php But somehow, it's not working. The command works on the command line. Before this, I was trying php /var/www/devicecheck.php Any suggestions? 回答1: To execute devicecheck.php every 1 hour try the following: Method A :: Execute the script using php from the crontab # crontab -e 00 * * * * /usr/bin/php/var/www/devicecheck.php Method B: Run the php script

Cron xdotool doesn't run

别来无恙 提交于 2021-02-08 21:54:34
问题 I am new to using crontab, and I've been trying to get a simple cron job. I want press F5 every 1 minute to refresh Mozzila Firefox. I am using xdotool for press F5. I have script /usr/local/bin/refresh.sh: #!/bin/bash xdotool search --name "Mozilla Firefox" key F5 If i run it in command line it works fine. And permission: -rwxr-xr-x. 1 root root 89 15. čec 10.32 refresh.sh In crontab i have: */1 * * * * cd /usr/local/bin && sh refresh.sh But script run by cron doesnt work. Can anyone tell me

Cron xdotool doesn't run

泄露秘密 提交于 2021-02-08 21:53:40
问题 I am new to using crontab, and I've been trying to get a simple cron job. I want press F5 every 1 minute to refresh Mozzila Firefox. I am using xdotool for press F5. I have script /usr/local/bin/refresh.sh: #!/bin/bash xdotool search --name "Mozilla Firefox" key F5 If i run it in command line it works fine. And permission: -rwxr-xr-x. 1 root root 89 15. čec 10.32 refresh.sh In crontab i have: */1 * * * * cd /usr/local/bin && sh refresh.sh But script run by cron doesnt work. Can anyone tell me

Cron xdotool doesn't run

大城市里の小女人 提交于 2021-02-08 21:52:49
问题 I am new to using crontab, and I've been trying to get a simple cron job. I want press F5 every 1 minute to refresh Mozzila Firefox. I am using xdotool for press F5. I have script /usr/local/bin/refresh.sh: #!/bin/bash xdotool search --name "Mozilla Firefox" key F5 If i run it in command line it works fine. And permission: -rwxr-xr-x. 1 root root 89 15. čec 10.32 refresh.sh In crontab i have: */1 * * * * cd /usr/local/bin && sh refresh.sh But script run by cron doesnt work. Can anyone tell me

Running crontab in mac

自闭症网瘾萝莉.ら 提交于 2021-02-08 05:42:21
问题 I'm trying to test a python script that has to be run by a cron job. I'm trying to config the cron job in my mac but doesn't run. Here is my cron job... * * * * * user /usr/local/bin/python3 ~/Documents/wpc/stocks/daily_stock.py If I crontab -l the job is there. I ran the script manually and works but is not running by the cron job. How can I fix this? 回答1: I used the following method to solve this issue on Mac OS. You can add a shebang to the top of your python script to specify the Python

Running crontab in mac

时间秒杀一切 提交于 2021-02-08 05:41:40
问题 I'm trying to test a python script that has to be run by a cron job. I'm trying to config the cron job in my mac but doesn't run. Here is my cron job... * * * * * user /usr/local/bin/python3 ~/Documents/wpc/stocks/daily_stock.py If I crontab -l the job is there. I ran the script manually and works but is not running by the cron job. How can I fix this? 回答1: I used the following method to solve this issue on Mac OS. You can add a shebang to the top of your python script to specify the Python

Python script not executing in crontab

点点圈 提交于 2021-02-08 05:14:43
问题 So I'm trying to have my server execute a Python script every hour. When I go into the directory and run it with python twitter.py, it works fine. However, I have this entry in crontab and it doesn't work: 0 * * * * /run/twitterparse/twitter.py > /run/twitterparse I am trying to have it execute every hour, on the hour. Here's the output to the syslog: Aug 5 13:00:01 localhost CRON[11474]: (root) CMD (/run/twitterparse/twitter.py >/run/twitterparse/) Aug 5 13:00:01 localhost CRON[11473]: (CRON