<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<br>
<blockquote cite="mid:201106271221.11209.john@wexfordpress.com"
type="cite">
<pre wrap="">
This is pretty simple. I will explain this as if you were a
neophyte, which of course you are not. But others will read
this post.
I use a file in /etc/cron.daily which
means it automatically executes early in the day. It is
possible that other versions of Linux do inot have such a
directory. So lets deal with that problem first. On my
Slackware Linux system there is a directory
/etc/cron.daily.
My crontab comes with a line that fires off the executable
programs in this directory at 4:40 AM local time:
------------------------------------
# Run daily cron jobs at 4:40 every day:
40 4 * * * /usr/bin/run-parts /etc/cron.daily 1> /dev/null
-------------------------------------
The command crontab -l will tell you if you have this line
or not. If not it is simple to add with
crontab -e
which allows you to edit the crontab file using your
default editor (vim or whatever.)
The executable file in cron.daily is very simple. I call it
scrib:
--------------
/usr/local/scrib140
/usr/local/scrib150
---------------------
So that is my solution on Slackware Linux. The crontab line
is already there and the /etc/con.daily drectory is already
there.
Now if you just want to add a line to crontab and not
bother with creating a directory etc. then a line in
crontab like ths will work:
--------------------------------------
40 4 * * * i/usr/local/scrib140
--------------------------------------
My script runs as root because that is what crontab runs
as. It depends on the existence of file /usr/local/src/s140
at a minimum. Otherwise the second line does terrible
damage. Here is scrib140 again
------------------------------------
cd /usr/local/src/s140 #must exist!
rm -r *
cd ../
svn co svn://scribus.net/branches/Version135/Scribus s140
cd s140
cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/scribus4_svn
make
make install
cd scribus
rm /usr/local/bin/scrib4
ln scribus /usr/local/bin/scrib4
--------------------------------------------
HTH
</pre>
</blockquote>
<br>
<i>quod erat demonstrandum.<br>
<br>
a.l.e<br>
</i>
</body>
</html>