[Bugs] #2058 UNSP: Automate pulling of weekly test builds for SoaS
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Tue Jul 13 14:15:39 EDT 2010
#2058: Automate pulling of weekly test builds for SoaS
------------------------------------------+---------------------------------
Reporter: mchua | Owner: sascha_silbe
Type: task | Status: reopened
Priority: Unspecified by Maintainer | Milestone: Unspecified by Release Team
Component: infrastructure | Version: Unspecified
Severity: Unspecified | Resolution:
Keywords: | Distribution: Unspecified
Status_field: New |
------------------------------------------+---------------------------------
Comment(by mchua):
sdz wants to learn about crontabs, so I'm writing this up here in case it
helps someone later on.
Change to the soas user as described above.
{{{
sudo - u soas -i
}}}
Make a directory for the script, go into it, get the script, make it
executable, and change its name (the last step mostly so I'd remember
better what it was). Run the script to make sure it works (may take a
while, is pulling down an entire .iso).
{{{
mkdir bin
cd bin
wget http://chris.tylers.info/files/soas-wget-test
chmod +x soas-wget-test
mv soas-wget-test soas-weekly-test-wget
}}}
Edit the crontab.
{{{
crontab -e
}}}
This will open the crontab (a textfile) for editing. Add the following
line:
{{{
59 23 * * 4 ~/bin/soas-weekly-test-wget
}}}
The last entry is the script we want to run (soas-weekly-test-wget). The
first two run it at 23:59 (11:59pm), and the 4 means "every Thursday"
(Sunday is either 0 or 7, you can figure out the rest of the days of the
week from that.)
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/2058#comment:10>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list