From: Xavier V. <xav...@fr...> - 2004-01-15 16:26:19
|
> So I'm asking the list: anyone has some ideas? Can anyone provide such a > script? I've got a server which is running and online 24h via ADSL, so > running a cron job every night or so should be no problem for me. I thinked about a script which keeps yesterday's checkout in 'lcd4linux.old', retrieves today's in 'lcd4linux', then make a patch 'diff -u lcd4linux lcd4linux.old > patch' and bzip it. Is it possible to do a checkout without asking for password (on my account or as anonymous) ? Then it would be easy to do : #!/bin/sh cd /home/michael/cvs-diff rm -rf lcd4linux.old patch.bz2 mv lcd4linux lcd4linux.old CVS CHECKOUT diff -u lcd4linux.old lcd4linux > patch bzip2 patch MAIL IT. Is there a simple command to send an attached file by mail ? -- Xavier VELLO <xav...@fr...> |