is there a way to have daily git pulls done in the background while running XBMCBuntu, or do i have to log out and go to the desktop environment?
I suppose there is a way to do it over SSH? but then i might as well log out into the desktop, am kind of hoping to have it done without key strokes......
ssh in
sudo aptitude update && sudo aptitude install xbmc xbmc-bin
Assuming you have a repository which compiles git regularly.
If you are compiling yourself, you can do this over ssh.
thanks
i am far from well versed with command line, though i am good copy paste!
i am hoping to update a skin and a few scripts, not xbmc itself.
OK I thought you were wanting to update XBMC itself from current git.
The command line is not difficult. if you can type isn a forum, you can type on a computer and therefore you can type on a commandline.
cron is your frind. Make a very basic shell script that contains the git update stuff.
e.g.
Code:
#!/bin/bash
cd git_dir-with-the-skin
/usr/bin/git pull
then add this line to cron via "crontab -e":
0 0 * * * /full/path/to/your-script-from-above
thanks, wsnipex.
did a bit of googling on what a shell script is and how to use cron, so that part makes some sense now.
using 0 3 * * * would run the script at 3am every day of the week....and could i put lets say 3 git pulls in the one bash script? would i have to do anything special to separate the commands, or would this work:
Code:
!#/bin/bash
cd git_dir-with-the-skin
/usr/bin/git pull
cd git_dir-with-the-other-skin
/usr/bin/git pull
cd git_dir-with-the-xbmc-script
/usr/bin/git/pull
then i would only need one cron "event"?
cool. pretty powerful stuff.
Told you the command line had it's uses