On Sat, Sep 5, 2009 at 11:16 AM, Suhit Kelkarsuhitkelkar@gmail.com wrote:
Needing to regularly backup my work, and having recently developed an interest in shell commands, I wrote myself a script that backed up a particular file; renamed the previous backup; and then unmounted the pen drive. Fairly beginner stuff but a time-and-effort-saver.
Good
I was wondering if I could add to this script the capability to make a net backup-- invoke wvdial,
OK
fire up evolution; in evolution,
No. Evolution is a GUI. In shell scripting one usually would use command line programs. In this case you would be better off using the command sendmail
e.g. ( echo "To: Suhit Kelkar suhitkelkar@gmail.com" echo "From: someid@yourdomain" echo "Subject: My second shell script" echo cat some_path_on_your_host/some_file ) | sendmail -fsomeid@yourdomain suhitkelkar@gmail.com