Re: [newbie] Uptime in signature?
Spencer Collyer wrote: If you use Sylpheed-claws you can use scripts in the sigfile. That's what I'm using right now. You just have to add a pipe '|' character to the start of the sigfile name and it will get executed rather than copied-in. I use Netscape Messenger at the moment. Surely there must be a way to get an ordinary text file aka my .signature file to retrieve the uptime? -- === Hylton Conacher on KDE 2.1.1 on kernel 2.4.3-20mdk#1 Registered Linux user # 229959 on Mandrake 8 on an i686 (AMD 1 Ghz K7 mobo Licenced Windows user === Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Uptime in signature?
On Sat, 23 Mar 2002 11:02:02 -0500, Todd Slater wrote: I think you either have to use a shell script and use Kmail for your MUA, or you'll have to use a cron job to write the uptime to your .sig file every X seconds. I went around with this a while back, cause I like Sylpheed better than Kmail. In Kmail I used a simple script that does exactly what you want, but Sylpheed doesn't allow you to use a script for a signature, so I forgot about it. Now I use gensig, and I suppose if I knew C I could get it to insert the uptime or some other output. Todd Todd, If you use Sylpheed-claws you can use scripts in the sigfile. That's what I'm using right now. You just have to add a pipe '|' character to the start of the sigfile name and it will get executed rather than copied-in. HTH S -- Eagles may soar, but weasels don't get sucked into jet engines 5:33pm up 45 days, 1:48, 5 users, load average: 0.00, 0.07, 0.22 Registered Linux User #232457 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Uptime in signature?
On Sun, 24 Mar 2002 17:35:07 + Spencer Collyer [EMAIL PROTECTED] wrote: If you use Sylpheed-claws you can use scripts in the sigfile. That's what I'm using right now. You just have to add a pipe '|' character to the start of the sigfile name and it will get executed rather than copied-in. Awesome, thanks! Todd Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Uptime in signature?
Is there not a hack to get the output from a normal text line in a email signature file? I would like my signature file to look like : -- === Hylton Conacher on KDE 2.1.1 on kernel 2.4.3-20mdk#1 Registered Linux user # 229959 on Mandrake 8 on an i686 (AMD 1 Ghz K7 mobo echo `/usr/bin/uptime` Licenced Windows user Fortune cookie saying === Surely there is a way for a text file to retrieve the uptime information i.e. with an before it or whatever. I do not want to have to create a script for it but want the uptime to automatically be inserted into my signature whenever I type a new message. Text file scripting guru's we need your comments. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Uptime in signature?
Is there not a hack to get the output from a normal text line in a email signature file? I would like my signature file to look like : -- === Hylton Conacher on KDE 2.1.1 on kernel 2.4.3-20mdk#1 Registered Linux user # 229959 on Mandrake 8 on an i686 (AMD 1 Ghz K7 mobo echo `/usr/bin/uptime` Licenced Windows user Fortune cookie saying === Surely there is a way for a text file to retrieve the uptime information i.e. with an before it or whatever. I do not want to have to create a script for it but want the uptime to automatically be inserted into my signature whenever I type a new message. Text file scripting guru's we need your comments. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Uptime in signature?
On Saturday 23 March 2002 05:34 am, Hylton Conacher (ZR1HPC) wrote: Is there not a hack to get the output from a normal text line in a email signature file? I would like my signature file to look like : You make a signiture file; Mine is sig2.txt #= Sig2.txt == #!/bin/bash echo Gerald Waugh echo http://www.frontstreetnetworks.com echo New Haven, CT United States of America echo `/usr/bin/uptime` #= Then go into KMail-Settings-Configure KMail-Identity Select Use a signiture from a file enter the directory/file in the text box /home/gerald/sig2.txt Check This file is a program Click on OK and you are good to go. -- Gerald Waugh http://www.frontstreetnetworks.com New Haven, CT United States of America 11:13am up 1 day, 19:37, 2 users, load average: 1.25, 1.30, 1.33 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Uptime in signature?
On Sat, 23 Mar 2002 11:19:39 -0500 Gerald Waugh [EMAIL PROTECTED] wrote: On Saturday 23 March 2002 05:34 am, Hylton Conacher (ZR1HPC) wrote: Is there not a hack to get the output from a normal text line in a email signature file? I would like my signature file to look like : You make a signiture file; Mine is sig2.txt #= Sig2.txt == #!/bin/bash echo Gerald Waugh echo http://www.frontstreetnetworks.com echo New Haven, CT United States of America echo `/usr/bin/uptime` #= Then go into KMail-Settings-Configure KMail-Identity Select Use a signiture from a file enter the directory/file in the text box /home/gerald/sig2.txt Check This file is a program Click on OK and you are good to go. Don't forget to make it executable, chmod +x sig2.txt -- Todd Slater The whole theory of modern education is radically unsound. Fortunately... education produces no effect whatsoever. If it did, it would prove a serious danger to the upper classes, and probably lead to acts of violence in Grosvenor Square. (Oscar Wilde) Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Uptime in signature?
NOTE: I can't get this to work with Ximian Evolution. my script looks like this echo - James A. Peltier echo - Site-FX Networking echo - Web : http://www.site-fx.net echo - E-Mail: [EMAIL PROTECTED] echo /usr/bin/uptime when I compose a message it just shows the script and not the result. On Thu, 2002-03-21 at 07:38, Olly P wrote: On Thursday 21 March 2002 07:36, Hylton...typed: How do I get the signature to show the total uptime of the system as well as how many users there are? I would assume with the uptime command but do not know the syntax to use from reading the uptime man page. -- Thursday 21 March 2002 Here is a piece of a message I ripped from Tom to do mine with Hylton... . Tom Said: You can create a text file and 'chmod -x' it to run any suitable executable, eg, /usr/bin/uptime. I do this with kmail by making my sig executable and placing /usr/games/fortune in it as the last line. So while it probly varies with email clients, it should be easy to do. my sig: echo Tom Brinkman _ South Texas, USA_ echo /usr/games/fortune here is my complete executable file in /home/olly/sigprog ... #this is a ollymade sig file for e-mail echo Olly P. Biloxi Mississippi Linux MDK 8.0 and echo 2.4.3-20 mdk Kmail 2.1.1 echo ATX Plll 600mhz Asus CUBX ...384m PC133ram echo /usr/games/fortune echo /usr/bin/uptime ... just put the path to this script in your kmail... here is the result ...neat huh? pay attention to (echo) - -- Olly P. Biloxi Mississippi Linux MDK 8.0 and 2.4.3-20 mdk Kmail 2.1.1 ATX Plll 600mhz Asus CUBX ...384m PC133ram Thu Mar 21 10:36:30 EST 2002 taxidermist, n.: A man who mounts animals. 10:36am up 1 day, 4:19, 2 users, load average: 0.07, 0.03, 0.00 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com -- Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Uptime in signature?
On Thu, 21 Mar 2002, James A. Peltier wrote: %_NOTE: I can't get this to work with Ximian Evolution. my script looks like this echo - James A. Peltier echo - Site-FX Networking echo - Web : http://www.site-fx.net echo - E-Mail: [EMAIL PROTECTED] echo /usr/bin/uptime when I compose a message it just shows the script and not the result. You need a backwords tic (on the ~ key) echo `\usr\bin\uptime` -- Gerald Waugh 9:28am up 30 days, 21:20, 1 user, load average: 0.43, 0.52, 0.53 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Uptime in signature?
Is the file executable, and is the first line '#/bin/bash'? (KMail also has a box to check saying The file is s program). Richard -- You laugh but no-one's joking The Dreamer's turned you round -- James A. Peltier, Thursday 21 March 2002 17:10: NOTE: I can't get this to work with Ximian Evolution. my script looks like this echo - James A. Peltier echo - Site-FX Networking echo - Web : http://www.site-fx.net echo - E-Mail: [EMAIL PROTECTED] echo /usr/bin/uptime when I compose a message it just shows the script and not the result. On Thu, 2002-03-21 at 07:38, Olly P wrote: On Thursday 21 March 2002 07:36, Hylton...typed: How do I get the signature to show the total uptime of the system as well as how many users there are? I would assume with the uptime command but do not know the syntax to use from reading the uptime man page. -- Thursday 21 March 2002 Here is a piece of a message I ripped from Tom to do mine with Hylton... . Tom Said: You can create a text file and 'chmod -x' it to run any suitable executable, eg, /usr/bin/uptime. I do this with kmail by making my sig executable and placing /usr/games/fortune in it as the last line. So while it probly varies with email clients, it should be easy to do. my sig: echo Tom Brinkman _ South Texas, USA_ echo /usr/games/fortune here is my complete executable file in /home/olly/sigprog ... #this is a ollymade sig file for e-mail echo Olly P. Biloxi Mississippi Linux MDK 8.0 and echo 2.4.3-20 mdk Kmail 2.1.1 echo ATX Plll 600mhz Asus CUBX ...384m PC133ram echo /usr/games/fortune echo /usr/bin/uptime ... just put the path to this script in your kmail... here is the result ...neat huh? pay attention to (echo) - -- Olly P. Biloxi Mississippi Linux MDK 8.0 and 2.4.3-20 mdk Kmail 2.1.1 ATX Plll 600mhz Asus CUBX ...384m PC133ram Thu Mar 21 10:36:30 EST 2002 taxidermist, n.: A man who mounts animals. 10:36am up 1 day, 4:19, 2 users, load average: 0.07, 0.03, 0.00 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Uptime in signature?
On Thu, 21 Mar 2002, Gerald Waugh wrote: %_On Thu, 21 Mar 2002, James A. Peltier wrote: %_NOTE: I can't get this to work with Ximian Evolution. my script looks like this echo - James A. Peltier echo - Site-FX Networking echo - Web : http://www.site-fx.net echo - E-Mail: [EMAIL PROTECTED] echo /usr/bin/uptime when I compose a message it just shows the script and not the result. You need a backwords tic (on the ~ key) echo `\usr\bin\uptime` Damn, I can't believe I put those '\' in their, and I thought I lost all my bad M$ habits. II had to put the tics in to get it to run from the command line, but look at my sig?? Runs from the command line fine. -- echo Gerald Waugh echo http://www.frontstreetnetworks.com echo New Haven, CT United States of America echo `/usr/bin/uptime` Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com