Quantcast
Channel: Question and Answer » cron
Browsing all 165 articles
Browse latest View live

Why the cron is launched when I visit the website and why is it taking so...

I have a site in development. It has Feeds module installed, with mandatoty Job Scheduler also installed. When I come back to the office to keep working on the site, it takes almost a minute for the...

View Article



Linux Mint 17.2 encounters an error, remounts disk in readonly

I already posted the question actually (Linux Mint 17.2 suddenly loses write access to filesystem), but since it occurs rarely I need to ask again with some new info I gathered. I suspect that this...

View Article

Boot computer on schedule 2 times per weekday [duplicate]

This question already has an answer here: How can you schedule a computer to boot at a specific time? 1 answer

View Article

Issues with a cron script

I have a shell script which does following: Do a scan on websites (URLS coming from all_hosts.txt), Get json reponse which is saved in file (outputscanner.txt) Run a json parser (jq) on above file and...

View Article

How to avoid robots that use https protocol to break your cached http images?

My site doesn’t use https certificates. When a robot browses my site in https, Drupal changes the images protocol and caches them as https and therefore they don’t display to other normal users as...

View Article


Possible to change cron link?

I use D6. Cron run often by some bots visiting example.com/cron.php Is it possible to change it somehow? Or restrict? I would like to prevent anonymous users to hit the script.I want to be able to run...

View Article

cron job does not work (runs but no action) for specified user (admin) [on hold]

I can manually run myscript.sh, by cron job and also as any user except admin(root) ?! myscript.sh: #!/bin/bash i="0" while [ $i -lt 1 ] do done an infinite while loop! I can see it in htop. cron tab...

View Article

Best settings for xml sitemap, cron time and submission time?

i have news site for about 7 months. The site get new feeds every hour but google take about 1 day to index them and only few of them. I see other sites that instantly index. “1 hours ago etc”. Mine...

View Article


Script not running! Also how to attach timestamp in mail?

I have the following bash script… #!/bin/bash # Delete JUNK temp folder if [ -d JUNK/FOLDER/PATH ] then rm -rf JUNK/FOLDER/PATH echo "Cleansed JUNK directory successfully!" /usr/bin/mail -s "JUNK...

View Article


forever stop not working in shell script

I have a server in node.js that I must restart every 1 hour. So I created a server.sh file and put this: forever stopall forever start /var/www/server/server.js I tried this as well forever stop...

View Article

Deleting a file after X days does not work [duplicate]

This question already has an answer here: Why does find -mtime +1 only return files older than 2 days? 7 answers

View Article

which programs benefit the most by cron (for a SOHO user)?

I understand that cron is basically a job scheduler. Apart from doing $sudo apt update which I like/love to run manually as it’s uncertain when my bandwidth will be free for running the update, I don’t...

View Article

use find command in bash file

I am using this script in my Linux machine to find all files that were modified yesterday: #!/bin/bash find /home/*/domains/*/public_html/ -name "*.php" -mtime -1 | while read line; do echo "$line"...

View Article


Custom VBO Action only works when enqueued (Adding User Role and Organic Group)

I wrote a custom module to add a VBO action that allows an Admin of a group to search the sites users, add them to their list (adds a role to the select users to get them on the list) and then allows...

View Article

How to stop gnome-schedule from sending mails?

I use gnome-schedule in a permanent running UI session on Debian 7.9 Wheezy/Gnome 3.4.2.1. For each run, I get a mail into the local mailbox of the corresponding user, telling Launching...

View Article


Cron job script to kill a process that runs for more than an hour [closed]

Could you please provide a sample Cron job script to kill a process that runs for more than an hour

View Article

How to run a shell script using cron and at

I was trying to learn about crontab. I tried to execute shell script using crontab. But I did not get the expected result. When I use crontab, 38 17 * * * bin/sh sh /home/agalya/unix/digiclock.sh I...

View Article


Executing MySql stored proc in Crontab [closed]

I have a MySQL stored proc named “item” and I want Cron to run it for me – in server of course. I’m avoiding using MySQL events to unify all my ‘jobs’ – backup,etc. Any how this is what I did in my...

View Article

Sudo cron job using arp-scan gives empty output

I made a script called hello.sh and it contains the following: #!/bin/bash printf "$( arp-scan --interface=eth0 --localnet )n" printf "testn" after making it executable (chmod o+x) and running it...

View Article

After every cron job, the Media tags in WYSIWYG markup change to https upon a...

My site doesn’t use https certificates. The Media WYSIWYG markup changes the images protocol and caches them as https and therefore they don’t display as there is no certificate on the website!! The...

View Article
Browsing all 165 articles
Browse latest View live




Latest Images