Raspberry Pi automate certain tasks – script example

2014-03-10 2 min read Raspberry Pi
Now, if you have followed these : fetchmail ssmtp Then you already have a working system for sending and receiving mail. Now, you can set the mda in the fetmailrc to a script which can do few things for you. The script below will get a page and mail it to you, if you have the subject as “get” and send “wake on LAN” to desired PC if you have subject as “wol”. Continue reading

ssmtp configuration and installation – raspberry pi.

2013-06-04 2 min read Raspberry Pi
English: Extract from Raspberry Pi board at TransferSummit 2011 (Photo credit: Wikipedia) To get your email working on your raspberry pi, First thing that you should probably do is to set up outgoing emails from your RPi. The easiest way to do so is with ssmtp. Install ssmtp: sudo apt-get install ssmtp Next configure the ssmtp client to send emails using your ISP, open up the file /etc/ssmtp/ssmtp.conf file and make the changes as suggested below: Continue reading

sendmail or sending mail

2013-04-19 1 min read Fedora Linux
If you want to use sendmail so that you can send all your mails from the local system to your email address, then you have to use sendmail. Now, configuring sendmail has never been that easy and if you are working internally on your corporate network then for sending mails to the same domain, generally you don’t have to login. That being the case, you can use something simpler like “sstmp“. Continue reading

email with templates (with variables) from the command line with sendmail or any other MTA.

2010-06-09 2 min read bash Fedora Linux
I was trying to get templates to work on evolution and found that although templates are there in evolution mail client, its not that efficient to use. What I thus wanted was to have something that could allow me to send mails to (and cc and bcc) to specified people with predefined template, only some values changed, like changelog and so on. So I wrote a set of files and below files to achieve the same. Continue reading

Logwatch for Linux Systems.

2010-06-02 2 min read Fedora Linux
On my personal <a class="zem_slink freebase/en/client" title="Client (computing)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Client_%28computing%29">desktop at home, I like to see the <a class="zem_slink freebase/en/statistics" title="Statistics" rel="wikipedia" href="http://en.wikipedia.org/wiki/Statistics">statistics at least once a day, for what was installed, what was run with <a class="zem_slink freebase/en/sudo" title="Sudo" rel="homepage" href="http://www.sudo.ws/">sudo and other such details like <a class="zem_slink freebase/en/kernel" title="Kernel (computing)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Kernel_%28computing%29">kernel errors. Running this monotonously every day is quite boring, so comes to rescue is logwatch. I have <a class="zem_slink freebase/en/fedora" title="Fedora" rel="homepage" href="http://fedoraproject. Continue reading

Checking the links to your site (from affiliates) using cron and bash script.

2010-05-27 2 min read Fedora Learning Linux Uncategorized
If you have some affiliate links and are concerned about their presence then you can setup <a class="zem_slink freebase/guid/9202a8c04000641f80000000045c9c5b" title="Cron" rel="wikipedia" href="http://en.wikipedia.org/wiki/Cron">cron to check the links for you regularly. For this you need a very simple script (as below) and a cron entry (example further down). #!/bin/bash – #=============================================================================== # FILE: checklinks.sh # USAGE: ./checklinks.sh # DESCRIPTION: Check if the links exists on affiliate sites # OPTIONS: — # REQUIREMENTS: — Continue reading

SendEmail using perl script in Windows or Linux using any SMTP account.

2010-05-16 1 min read Linux
Technorati Tags: <a class="performancingtags" href="http://technorati.com/tag/email" rel="tag">email, <a class="performancingtags" href="http://technorati.com/tag/sendEmail" rel="tag">sendEmail, <a class="performancingtags" href="http://technorati.com/tag/Perl" rel="tag">Perl There is a very nice little utility or rather SMTP client program called sendmail (<a href="http://caspian.dotconf.net/menu/Software/SendEmail/">Link — http://caspian.dotconf.net/menu/Software/SendEmail/). This can be used in Windows or Linux or any other OS with perl installed and few other perl modules installed. Its quite easy to use and comes in quite handy to send emails. In later posts we will see how we can use this in various ways : sending mail from your browser, from your editor or even from the command line or shell script. Continue reading
Older posts