Hi, anyone know how you would go about having the ouput of a system command as the footer for an email? like uname, uptime, etc. is it possible? thanks. Steve Reilly http://reillyblog.com/ Registered Linux user: 412217 http://counter.li.org/ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
On 10/27/06, Steve Reilly <sfsmiley@yahoo.com> wrote:
Hi,
anyone know how you would go about having the ouput of a system command as the footer for an email? like uname, uptime, etc.
is it possible?
thanks.
In KMail, I have seen an option that may do what you want. It is found under your account, in the "Signature" section. I don't remember the exact navigation path, but I will tell you later. Steve Reilly
Registered Linux user: 412217 http://counter.li.org/
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On 10/27/06, Duff Mckagan <mckagan@gmail.com> wrote:
On 10/27/06, Steve Reilly <sfsmiley@yahoo.com> wrote:
Hi,
anyone know how you would go about having the ouput of a system command as the footer for an email? like uname, uptime, etc.
is it possible?
thanks.
In KMail, I have seen an option that may do what you want. It is found under your account, in the "Signature" section.
I don't remember the exact navigation path, but I will tell you later.
Okay..here it is. This is what I found out. :) Excerpt from this<http://docs.kde.org/development/en/kdepim/kmail/configure-identity.html>link. Check the Enable signature option if you want to be able to append the signature when using this identity. To *automatically* append it to every new message you also have to select Automatically append signature in the Composer configuration page. KMail can obtain the signature text from various sources. The traditional way on Unix is to read the text from a file called .signature in your home folder. This file can be shared between several programs, so you get the same signature in each mail program you use. To read the text from a text file you select Obtain signature text from file. Enter the filename in the Specify file edit field or hit the button to the right of it to browse your filesystem. If you want to edit the file, hit the Edit File button. KMail can also read the signature text from the output of a command. Thus, you can use programs such as *fortune* to create a new signature text for every message. Everything the program prints onto stdout is caught and used as the signature text. To read the text from the output of a command you select Obtain signature text from Output of Command. Enter the command (preferably with full path) in the Specify command edit field. As a third option, you can enter the signature text directly in KMail's configuration dialog. To do this, select Obtain signature text from input field below and enter the text into the appearing text box. Note On the Internet, signatures are by convention separated from the body of the message by a line containing only the three character "-- " (dash, dash, space). KMail will automatically prepend the signature text with this line if it is not already present in the signature text. If you do not wish the separator to be prepended automatically by KMail, simply add it to the signature text yourself. -- http://mckagan.googlepages.com
Hi, wow, thank you so much. This is pretty much EXACTLY what I was looking for!! This list is great. --- Duff Mckagan <mckagan@gmail.com> wrote:
On 10/27/06, Duff Mckagan <mckagan@gmail.com> wrote:
On 10/27/06, Steve Reilly <sfsmiley@yahoo.com>
Hi,
anyone know how you would go about having the
ouput of
a system command as the footer for an email?
uname, uptime, etc.
is it possible?
thanks.
In KMail, I have seen an option that may do what you want. It is found under your account, in the "Signature"
wrote: like section.
I don't remember the exact navigation path, but I
will tell you later.
Okay..here it is. This is what I found out. :)
Excerpt from
this<http://docs.kde.org/development/en/kdepim/kmail/configure-identity.html>link.
Check the Enable signature option if you want to be able to append the signature when using this identity. To *automatically* append it to every new message you also have to select Automatically append signature in the Composer configuration page.
KMail can obtain the signature text from various sources. The traditional way on Unix is to read the text from a file called .signature in your home folder. This file can be shared between several programs, so you get the same signature in each mail program you use.
To read the text from a text file you select Obtain signature text from file. Enter the filename in the Specify file edit field or hit the button to the right of it to browse your filesystem. If you want to edit the file, hit the Edit File button.
KMail can also read the signature text from the output of a command. Thus, you can use programs such as *fortune* to create a new signature text for every message. Everything the program prints onto stdout is caught and used as the signature text.
To read the text from the output of a command you select Obtain signature text from Output of Command. Enter the command (preferably with full path) in the Specify command edit field.
As a third option, you can enter the signature text directly in KMail's configuration dialog. To do this, select Obtain signature text from input field below and enter the text into the appearing text box. Note
On the Internet, signatures are by convention separated from the body of the message by a line containing only the three character "-- " (dash, dash, space). KMail will automatically prepend the signature text with this line if it is not already present in the signature text.
If you do not wish the separator to be prepended automatically by KMail, simply add it to the signature text yourself.
Steve Reilly http://reillyblog.com/ Registered Linux user: 412217 http://counter.li.org/ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
On Friday 27 October 2006 05:47, Steve Reilly wrote:
anyone know how you would go about having the ouput of a system command as the footer for an email? like uname, uptime, etc.
is it possible?
Yep.. Pretty easy in kmail. Here is the little blurb that I use. #!/bin/bash echo "Powered by SuSE 10.0 Kernel 2.6.13 X86_64 KDE 3.4 Kmail 1.8" uptime Mike -- Powered by SuSE 10.0 Kernel 2.6.13 X86_64 KDE 3.4 Kmail 1.8 3:46pm up 10 days 21:27, 4 users, load average: 2.02, 2.17, 2.40
Hi, thanks so much, im going to mess around with it tonight! --- Mike <mike@mikenjane.net> wrote:
On Friday 27 October 2006 05:47, Steve Reilly wrote:
anyone know how you would go about having the ouput of a system command as the footer for an email? like uname, uptime, etc.
is it possible?
Yep.. Pretty easy in kmail. Here is the little blurb that I use.
#!/bin/bash echo "Powered by SuSE 10.0 Kernel 2.6.13 X86_64 KDE 3.4 Kmail 1.8" uptime
Mike
-- Powered by SuSE 10.0 Kernel 2.6.13 X86_64 KDE 3.4 Kmail 1.8 3:46pm up 10 days 21:27, 4 users, load average: 2.02, 2.17, 2.40
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Steve Reilly http://reillyblog.com/ Registered Linux user: 412217 http://counter.li.org/ ____________________________________________________________________________________ Access over 1 million songs - Yahoo! Music Unlimited (http://music.yahoo.com/unlimited)
Mike wrote:
On Friday 27 October 2006 05:47, Steve Reilly wrote:
anyone know how you would go about having the ouput of a system command as the footer for an email? like uname, uptime, etc.
is it possible?
Yep.. Pretty easy in kmail. Here is the little blurb that I use.
#!/bin/bash echo "Powered by SuSE 10.0 Kernel 2.6.13 X86_64 KDE 3.4 Kmail 1.8" uptime Well, like Steve, I also want to implement a 'dynamic' signature file, so I have followed this thread with great interest.
Mike when I took your example and edited my signature file below is what I get. Howcome as I have made the file rwx by user hylton? Tnx -- #!/bin/bash echo "=================================================================" echo "Using unpatched SuSE 9.2 Professional with KDE and Mozilla 1.7.2" echo "Linux user # 229959 at http://counter.li.org" uptime echo "================================================================="
On Sunday 29 October 2006 3:38 am, Hylton Conacher(ZR1HPC) wrote:
Well, like Steve, I also want to implement a 'dynamic' signature file, so I have followed this thread with great interest.
Mike when I took your example and edited my signature file below is what I get. Howcome as I have made the file rwx by user hylton?
Tnx --
The 'obtain signature from' setting needs to be 'output of command' not 'file'. Scott -- Anno domini (AD) POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.11.4-21.14-default x86_64 SuSE Linux 9.3 (x86-64)
On Sunday 29 October 2006 06:46, Scott Leighton wrote: Are you using kmail?
On Sunday 29 October 2006 3:38 am, Hylton Conacher(ZR1HPC) wrote:
Well, like Steve, I also want to implement a 'dynamic' signature file, so I have followed this thread with great interest.
Mike when I took your example and edited my signature file below is what I get. Howcome as I have made the file rwx by user hylton?
Tnx --
The 'obtain signature from' setting needs to be 'output of command' not 'file'.
Scott
-- Anno domini (AD) POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.11.4-21.14-default x86_64 SuSE Linux 9.3 (x86-64)
-- SuSE Linux 10.1 ~ Kernel 2.6.16.21-0.25-smp #1 ~ Kmail 1.9 ~ Registered Linux user: 412217 http://reillyblog.com 2:16pm up 18:04, 1 user, load average: 0.16, 0.27, 0.18
On Sunday 29 October 2006 11:17 am, steve reilly wrote:
On Sunday 29 October 2006 06:46, Scott Leighton wrote: Are you using kmail?
A check of the headers would reveal that answer, which is yes. Scott -- Anno urbis conditae (AUC) POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.11.4-21.14-default x86_64 SuSE Linux 9.3 (x86-64)
On Sunday 29 October 2006 14:23, Scott Leighton wrote: LOL. whatever bro, im not going to right click on every email and view source just to see the headers. all i was trying to do was see what client he was using so i could give him the proper instructions. thanks for your 2 cents, go back to your belittling now.
On Sunday 29 October 2006 11:17 am, steve reilly wrote:
On Sunday 29 October 2006 06:46, Scott Leighton wrote: Are you using kmail?
A check of the headers would reveal that answer, which is yes.
Scott
-- Anno urbis conditae (AUC) POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.11.4-21.14-default x86_64 SuSE Linux 9.3 (x86-64)
-- SuSE Linux 10.1 ~ Kernel 2.6.16.21-0.25-smp #1 ~ Kmail 1.9 ~ Registered Linux user: 412217 http://reillyblog.com 10:23pm up 1 day 2:10, 1 user, load average: 0.68, 0.37, 0.19
On Sunday 29 October 2006 7:26 pm, steve reilly wrote:
LOL.
whatever bro, im not going to right click on every email and view source just to see the headers. all i was trying to do was see what client he was using so i could give him the proper instructions. thanks for your 2 cents, go back to your belittling now.
Huh? I both answered your question and showed you how to find the answer yourself. That 'belittling' stuff is all in your mind, it certainly didn't come from my response. Scott -- Dic mihi solum facta, domina POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.11.4-21.14-default x86_64 SuSE Linux 9.3 (x86-64)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Sunday 2006-10-29 at 14:17 -0500, steve reilly wrote:
Are you using kmail?
And you are using KMail/1.9.1 :-P - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFRQJ2tTMYHG2NR9URAoEBAJ4/D6gjE8rk92zcooKh+r97jt0mRQCfUGLI 5bz5flnVQ2ainwL6zbk9bp8= =2Q/q -----END PGP SIGNATURE-----
* steve reilly <sfreilly@adelphia.net> [10-29-06 14:19]:
Are you using kmail?
Is you editor capable of deleting quoted sigs and other fluff? -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Sunday 2006-10-29 at 14:58 -0500, Patrick Shanahan wrote:
* steve reilly [10-29-06 14:19]:
Are you using kmail?
Is you editor capable of deleting quoted sigs and other fluff?
He is using KMail/1.9.1, so the answer is yes. X-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFRS3ctTMYHG2NR9URAqijAJ9WB0RFX/51Wdzda0j8blX+LnvpFwCfZ29k 9xTNvNiAVDF/onveWYnLKAw= =SBxW -----END PGP SIGNATURE-----
* Carlos E. R. <robin.listas@telefonica.net> [10-29-06 17:43]:
He is using KMail/1.9.1, so the answer is yes. X-)
Then, apparently he isn't aware of that function :^( -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
On Sunday 29 October 2006 14:58, Patrick Shanahan wrote: huh?
* steve reilly <sfreilly@adelphia.net> [10-29-06 14:19]:
Are you using kmail?
Is you editor capable of deleting quoted sigs and other fluff? -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
-- SuSE Linux 10.1 ~ Kernel 2.6.16.21-0.25-smp #1 ~ Kmail 1.9 ~ Registered Linux user: 412217 http://reillyblog.com 10:27pm up 1 day 2:14, 1 user, load average: 0.16, 0.25, 0.18
* steve reilly <sfreilly@adelphia.net> [10-29-06 22:29]:
huh?
fitting, you *are* really clueless! -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
* Darryl Gregorash <raven@accesscomm.ca> [10-29-06 23:56]:
On 29/10/06 21:33, Patrick Shanahan wrote:
fitting, you *are* really clueless!
That's what I love most about this list -- /*every*/one is so courteous and helpful.
Yes, and courteousness includes taking a few seconds out of one's busy day to trim replies to *only* pertinent and relivant data necessary to define the situation. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
On 30/10/06 07:25, Patrick Shanahan wrote:
* Darryl Gregorash <raven@accesscomm.ca> [10-29-06 23:56]:
On 29/10/06 21:33, Patrick Shanahan wrote:
fitting, you *are* really clueless!
That's what I love most about this list -- /*every*/one is so courteous and helpful.
Yes, and courteousness includes taking a few seconds out of one's busy day to trim replies to *only* pertinent and relivant data necessary to define the situation.
Courtesy in a mailing list *begins* with taking a few moments to find a clear solution to the original reason for one's complaint, instead of simply whining about it. If you do not like something someone is doing, then by all means *help* him to correct the matter -- otherwise, stay out of the damn kitchen. Perhaps you could begin with a comprehensive FAQ on how to trim quotes only to that which is pertinent and relEvant.
On 10/31/06, Darryl Gregorash <raven@accesscomm.ca> wrote: <trimmed>
Courtesy in a mailing list *begins* with taking a few moments to find a clear solution to the original reason for one's complaint, instead of simply whining about it. If you do not like something someone is doing, then by all means *help* him to correct the matter -- otherwise, stay out of the damn kitchen.
Perhaps you could begin with a comprehensive FAQ on how to trim quotes only to that which is pertinent and relEvant.
Yeah..I strongly recommend that people search google for "mailing list ethics" and read some of the results. This will strongly help in taking care of people who get annoyed! Regards, Amit. -- http://mckagan.googlepages.com
On Sunday 29 October 2006 3:38 am, Hylton Conacher(ZR1HPC) wrote:
Well, like Steve, I also want to implement a 'dynamic' signature file, so I have followed this thread with great interest.
Mike when I took your example and edited my signature file below is what I get. Howcome as I have made the file rwx by user hylton?
Tnx --
The 'obtain signature from' setting needs to be 'output of command' not 'file'. ??? Scott, I have created a file called signature and placed it in my home
Scott Leighton wrote: directory. In that file I have the exact text as appears on my signature. As this is my first trial at shell scripting I made the files permissions 764 so that the comands I enetered could be executed. How come I am seeing the 'echo' and 'uptime' in the script, and how can I get this file contents to be executed, remove the # before !/bin/bash? Help a scripting newbie :) plse. PS: I am using Messenger from Mozilla 1.7.2. Tnx -- #!/bin/bash echo "=================================================================" echo "Currently using unpatched SuSE 9.2 Professional with KDE and Mozilla 1.7.2" echo "Linux user # 229959 at http://counter.li.org" uptime echo "================================================================="
On 30/10/06 08:35, Hylton Conacher(ZR1HPC) wrote:
<snip>
The 'obtain signature from' setting needs to be 'output of command' not 'file'. ??? Scott, I have created a file called signature and placed it in my home
Scott Leighton wrote: directory. In that file I have the exact text as appears on my signature. As this is my first trial at shell scripting I made the files permissions 764 so that the comands I enetered could be executed.
How come I am seeing the 'echo' and 'uptime' in the script, and how can I get this file contents to be executed, remove the # before !/bin/bash?
Help a scripting newbie :) plse.
PS: I am using Messenger from Mozilla 1.7.2. You're seeing the contents of the script file because Mozilla can only do that -- it can't, AFAIK, paste in the results of executing a script or command. The "output of command" refers to Kmail.
On Sunday 29 October 2006 12:38, Hylton Conacher(ZR1HPC) wrote:
echo "Using unpatched SuSE 9.2 Professional with KDE and Mozilla 1.7.2"
I seriously hope you don't really mean unpatched. At the very least you should install all security patches available, or bad things could happen
On Sunday 29 October 2006 12:38, Hylton Conacher(ZR1HPC) wrote:
echo "Using unpatched SuSE 9.2 Professional with KDE and Mozilla 1.7.2"
I seriously hope you don't really mean unpatched. At the very least you should install all security patches available, or bad things could happen Tnx Anders, this I know and I wish it weren't so. Unfortunately I have only just been able to get onto broadband from dialup and even the security updates via dialup were prohibitively expensive. I am in the
Anders Johansson wrote: process of investigating backup of the machines data and re-installation of 9.2/10.2 when it is released. Despite the advantages of the Linux user permissions, being on a single user system and knowing the root password can break alot of things and cause your system to behave like a Redmond clone :) Regards Hylton <signature deleted>
participants (11)
-
Amit Joshi
-
Anders Johansson
-
Carlos E. R.
-
Darryl Gregorash
-
Duff Mckagan
-
Hylton Conacher(ZR1HPC)
-
Mike
-
Patrick Shanahan
-
Scott Leighton
-
Steve Reilly
-
steve reilly