[quote author=sharon63 link=board=1;threadid=8760;start=0#msg79142 date=1077812742]
Thanks for this, you were exactly right, it runs but doesn't display
Any ideas please how I can get this program to display?
[/quote]
The part of the problem you face here, is that any user on a machine will only be assigned a valid $DISPLAY when they are loged in, since cron is running in a system space as the user, and not initiated from a shell by the user, it will not enherit the users $DISPLAY required by any GUI program.
One way you can achive the desired result, is to use fetchmail and have cron invoke that at any given time.
I would suggest to have the cron entry like this:
@reboot /usr/bin/fetchmail -s -d 600 --syslog -f /my/fetchmail.rc-file
This will ensure fetchmail to be invoked when the machine is booted, rettrieve mails every 10 minuts, and be quiet about any errors.
Your fetchmail.rc file could look something like this:
Code:
poll mail.provider.net with proto pop3:
user "mymother" there has password "u can't krak this"
is mother here and wants mda "/usr/bin/procmail"
Now fetchmail will use procmail for local delivery, and you can setup procmail to filter any unwanted spam messages from your mothers mail, by using spamassassin in combination with procmail.
In order to give your mother the view as if it's her beloved M$ outlook she's still using, you will configure sylpheed to check the local mail-queue instead of polling the mail from some pop3 server, now she will get her mail eventho she hasn't started sylpheed.
Remember to configure the WM like winXP and your mother wont suspect a thing, apart from the login screen which greets her every time she boots the machine.
[quote author=sharon63 link=board=1;threadid=8760;start=0#msg79142 date=1077812742]
The next thing to get working is a backup system.
[/quote]
You could use iBackup very easy to use with cron aswell.
Bookmarks