All Questions
10 questions
8
votes
3
answers
2k
views
tracking crontab changes with git
I would like to use git to track changes in crontab.
I have initialized a new git repository in /var/spool/cron/crontabs/
Now the problem is, when crontab is saved, the second line of the header ...
1
vote
1
answer
6k
views
Git add, commit, push from bash script
I'm trying to write a simple cron job that will keep my org-mode files in sync with a GitHub repo by committing every now and then. For some reason, it always manages to commit the files, but even ...
0
votes
1
answer
418
views
unable to execute git pull if the script is executed on reboot
I have created the following script:
#!/bin/bash
cd /home/pi/workspace/my-app
/usr/bin/git pull
python3 main.py &
If I run the script from the console, git pull is executed as expected and then ...
3
votes
2
answers
5k
views
Crontab shell script git pull and forever start
I'm trying to set up a Raspberry Pi to check a repo on startup and then fire up a node script with forever.
I got the second part working, but I tried a dozen git commands with no success.
Here is ...
7
votes
2
answers
6k
views
Is it possible to store user's crontab in user's git repository on OpenBSD?
On OpenBSD and with OpenBSD's cron and crontab, is it possible to store the crontab(5) of a user in a git repository of the same user?
What would be the proper way to accomplish something like this?
...
2
votes
2
answers
708
views
Cron job not behaving as expected
So I have a python script that pulls down git/svn/p4 repositories and does some writing to a database.
I'm simply trying to automate the running of this script and based from what I see in syslog it ...
5
votes
1
answer
2k
views
Fetching all Git repositories in the background
I'm thinking about setting up a cronjob for fetching all my repositories every once in a while, to have the current status ready in case I'm offline. Something like the following (wrapped for better ...
2
votes
1
answer
1k
views
Crontab with Github
I want to be able to push a repository to Github at midnight, every night. I know that Github isn't a back-up service, and, in no way am I expecting it to be this - I just want the best up-to-date ...
4
votes
3
answers
659
views
Mail cron output only when Git throws a real error
There exists a Git repo that is on one server, we want to generate doxygen output for it on a different server. The following command works for me but has the downside of sending a mail everytime the ...
1
vote
1
answer
1k
views
Crontab with SVN and Git
I have some repos which are both in SVN and Git. My username is guyfawkes, and in my home directory I have folder www which contains all my repos. In this directory I also have file update.sh:
[...