All Questions
197
questions
0
votes
1
answer
89
views
anacron doesnt work as expected
Trying to schedule a job to run every day with cron or anacron. Search the forum for resolution but still without any success.
Changing shell=/bin/bash or bin/sh didnt do anything.
My system lubuntu
...
1
vote
2
answers
446
views
rsync - Operation not permitted when script is launched by cron
I've got a script that basically launches the following command
rsync -avh --progress --no-relative "$SOURCE_PATH/" "$DESTINATION_PATH"
and vice-versa (destination to source). ...
0
votes
1
answer
127
views
Run Command after Laptop unfold
I want to run a bash file at a specific moment a day. (8:00 and 20:00).
I've already managed to do this via crontab and also on startup if my computer was shut down at the time. My only problem is ...
1
vote
2
answers
1k
views
Running shell Script via Crontab
So I've tried to run a shell script via crontab.
My Crontabs look like this:
00 20 * * * $HOME/Bilder/Hintergründe/.background_skript/background_night.sh
and my background_day.sh looks like this:
`#!/...
1
vote
1
answer
750
views
How to tell which files are new or have been modified between calls of a script
I want to call a shell script regularly, and in it I need to process the files present in a directory tree that are new or that have been modified since the previous call of the script.
My 1st thought ...
0
votes
0
answers
142
views
CRON to Check if a webapp is working properly and report what happened if not
This is my first iteration in bash:This webapp does not have postgres but Apache 2.4, Tomcat 8.
I check first the 200 http response. Then if http server is running and if the tomcat also does.
I ...
2
votes
1
answer
206
views
list of files (ls /dev) is different when run on command line vs. via crontab
Why can't cron ls certain files in /dev using my script ?
The script can list /dev completely when run from the command line. The same script run from either cron setup cannot see (list, ls) most of ...
0
votes
2
answers
823
views
How to setup cronjob with automated emails in linux?
I've been working on creating a script to scan a series of mailboxes on a linux server, find ones that have more than 250 emails in the mailbox, and then send an email with the name of those mailboxes ...
0
votes
0
answers
54
views
I created a cronjob years ago, now it is still running on the server but I can't locate it with "crontab -e", what can I do?
two years ago I created a cronjob which execute a python script to backup stuff. Now, the thing is that this cronjob is still running:
/var/log/cron.log.1:Oct 9 20:00:02 syslogngsrv CRON[28292]: (...
0
votes
1
answer
70
views
Cron Disrupting VBoxManage Commands
I am on Ubuntu 20.04 desktop, running Virtualbox 6.1 and I use Webmin to run a very simple cron job to take daily snapshots of my virtualbox test server as follows:
VBoxManage snapshot VminServer ...
0
votes
1
answer
133
views
wordpress automatic updates via cron no root privileges?
this script is run by update.sh wich is run by cron every day at 2 o'clock, it allows wordpress to be updated automatically via cli (needs to be installed before) actually runs fine, when run as root
...
0
votes
0
answers
205
views
git produces no output when called from script via cron (log/shortlog)
I've got a script git-test going to a local git repo and calling git shortlog to keep track of recent changes. For testing purposes, I just used these lines:
#!/bin/bash
cd /myrepo.git
result="$(/...
0
votes
0
answers
914
views
Why does cron log to auth.log every 30 minutes?
I have a virtual machine running Ubuntu with these cron settings, four jobs running once a day:
10 6 * * * cd $HOME/...
30 4 * * * mongodump ...
30 4 * * * . .bashrc && ...
10 4 * * * cd $HOME/...
0
votes
0
answers
161
views
Delete all directories on a ftp folder except ones I list cronjob?
Is there any way for me to delete all folders in a given ftp folder using a cronjob, and the deleted files are folders older than x hours, with a few specific folders that are not deleted that I ...
0
votes
0
answers
1k
views
crontab -e: crontabs: No such file or directory
I am trying to set up a cron job in my user crontab on a debian 11 image on a VPS.
But I have issues and cannot open crontab:
flo@debian-2gb:~$ crontab -e
crontabs: No such file or directory
flo@...