Re: Signature Scripts (WAS: Re: [newbie] Steve's second question of the day. Time machine has been up)
On Mon, 29 Mar 2004 08:34 am, many eyes viewed Chuck Mattsen's words:- > On Mon, 2004-03-29 at 02:19, Charlie wrote: > > > Thanks ... I'll send you a copy of it off list (however, I suspect it's > > > a PEBKAC thing, as I tried to compile a .dat via strfile with just a > > > few taglines, and ended up with the same thing ... one large > > > concatenated tagline). > > > > I haven't been following this thread but are you pointing your mail > > program to the file or the .dat file? > > The problem was in my tagline file, either in the way I saved it, or > something with EOLs (or lack thereof, I'm not sure), causing the strfile > process to just concatenate them into one big ol' mess. In any case, > with Todd's help I got the file and associated .dat in place and working > and, with further experimentation, found that I could create a small > test file and working .dat with no problem, so it was definitely > something in the file itself and the way I had created it when > transporting it over from my Windows installation. > > Probably my choice of editors, but I've not narrowed the cause down yet. > > :*) kedit is good. -- Registered Linux User:- 329524 + Dentist, n.: A Prestidigitator who, putting metal in one's mouth, pulls coins out of one's pockets. -- Ambrose Bierce, "The Devil's Dictionary" This email is guaranteed to be wholly Linux Mandrake 9.2, KMail v1.5.3 and OpenOffice.org1.1.0 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: Signature Scripts (WAS: Re: [newbie] Steve's second question of the day. Time machine has been up)
On Mon, 2004-03-29 at 02:19, Charlie wrote: > > Thanks ... I'll send you a copy of it off list (however, I suspect it's > > a PEBKAC thing, as I tried to compile a .dat via strfile with just a few > > taglines, and ended up with the same thing ... one large concatenated > > tagline). > > I haven't been following this thread but are you pointing your mail program > to the file or the .dat file? The problem was in my tagline file, either in the way I saved it, or something with EOLs (or lack thereof, I'm not sure), causing the strfile process to just concatenate them into one big ol' mess. In any case, with Todd's help I got the file and associated .dat in place and working and, with further experimentation, found that I could create a small test file and working .dat with no problem, so it was definitely something in the file itself and the way I had created it when transporting it over from my Windows installation. Probably my choice of editors, but I've not narrowed the cause down yet. :*) -- Chuck Mattsen / [EMAIL PROTECTED] / RLU #346519 Mandrake Linux release 10.0 (Community) for i586 kernel 2.6.3-4mdk 16:29:37 up 10:30, 1 user, load average: 0.00, 0.00, 0.00 History is a set of lies agreed upon by the Victors. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: Signature Scripts (WAS: Re: [newbie] Steve's second question of the day. Time machine has been up)
On Mon, 29 Mar 2004 12:59 am, many eyes viewed Chuck Mattsen's words:- > On Sun, 2004-03-28 at 08:39, Todd Slater wrote: > > On Sat, Mar 27, 2004 at 06:22:33PM -0600, Chuck Mattsen wrote: > > > I managed to get mine working, including the tagline/'fortune' ... I > > > can still only use others' fortunes, however, as all attempts to > > > compile my own via the strfile command have failed, yielding just one > > > big file instead of individual taglines. Not sure what's up with that, > > > but figuring that out is currently on my e-mail client "wish"/to-do > > > list. > > > > > > :-) > > > > can you send me an attachment of your original text file that you run > > strfile on? I'll see if I can duplicate the error here. > > Thanks ... I'll send you a copy of it off list (however, I suspect it's > a PEBKAC thing, as I tried to compile a .dat via strfile with just a few > taglines, and ended up with the same thing ... one large concatenated > tagline). I haven't been following this thread but are you pointing your mail program to the file or the .dat file? Charlie -- Registered Linux User:- 329524 + Unfortunately virtue may command admiration but not always affection. anon This email is guaranteed to be wholly Linux Mandrake 9.2, KMail v1.5.3 and OpenOffice.org1.1.0 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: Signature Scripts (WAS: Re: [newbie] Steve's second question of the day. Time machine has been up)
On Sun, 2004-03-28 at 08:39, Todd Slater wrote: > On Sat, Mar 27, 2004 at 06:22:33PM -0600, Chuck Mattsen wrote: > > I managed to get mine working, including the tagline/'fortune' ... I can > > still only use others' fortunes, however, as all attempts to compile my > > own via the strfile command have failed, yielding just one big file > > instead of individual taglines. Not sure what's up with that, but > > figuring that out is currently on my e-mail client "wish"/to-do list. > > :-) > > can you send me an attachment of your original text file that you run > strfile on? I'll see if I can duplicate the error here. Thanks ... I'll send you a copy of it off list (however, I suspect it's a PEBKAC thing, as I tried to compile a .dat via strfile with just a few taglines, and ended up with the same thing ... one large concatenated tagline). -- Chuck Mattsen / [EMAIL PROTECTED] / RLU #346519 Mandrake Linux release 10.0 (Community) for i586 kernel 2.6.3-4mdk 08:57:48 up 2:58, 1 user, load average: 0.00, 0.00, 0.00 There's only one way to have a happy marriage and as soon as I learn what it is I'll get married again. -- Clint Eastwood Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: Signature Scripts (WAS: Re: [newbie] Steve's second question of the day. Time machine has been up)
On Sat, Mar 27, 2004 at 06:22:33PM -0600, Chuck Mattsen wrote: > I managed to get mine working, including the tagline/'fortune' ... I can > still only use others' fortunes, however, as all attempts to compile my > own via the strfile command have failed, yielding just one big file > instead of individual taglines. Not sure what's up with that, but > figuring that out is currently on my e-mail client "wish"/to-do list. > :-) can you send me an attachment of your original text file that you run strfile on? I'll see if I can duplicate the error here. Todd Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: Signature Scripts (WAS: Re: [newbie] Steve's second question of the day. Time machine has been up)
Chuck Mattsen wrote: Resurrecting an old thread here ... On Sat, 2004-02-21 at 14:33, Charlie Mahan wrote: Here's a slightly different way to get the "running Mandrake..." blah blah: #bin bash echo "Edmonton,AB,Canada User #244963 at http://counter.li.org" echo `cat /etc/mandrake-release` kernel "`uname -r`" echo `uptime` echo "`/usr/games/fortune -s`" The second line (cat /etc/mandrake-release kernel uname -r) generates the second line below. The next line generates the uptime stamp, the last line generates the last line(s) a.k.a.; the "short" (the -s flag) Fortune cookie. I should add a tag to the end of that second line; "On a 6 year old stone axe" Regards; Charlie - -- Edmonton,AB,Canada User #244963 at http://counter.li.org Mandrake Linux release 10.0 (RC1) for i586 kernel 2.4.25-0.rc4.1mdk 13:26:32 up 1 day, 1:45, 1 user, load average: 0.00, 0.10, 0.19 Vegetarians beware! You are what you eat. Okay, I /think/ my problems with this are related to my use of Ximian Evolution as an e-mail client -- which, if I understand correctly, assumes all signatures are in HTML format for insertion purposes. Therefore, with the following script ... #bin bash echo "Chuck Mattsen ... [EMAIL PROTECTED] ... Mahnomen, MN" echo "Registered Linux User #346519" echo `cat /etc/mandrake-release` kernel "`uname -r`" echo `uptime` everything gets "mooshed" together, as below. Any suggestions on how to get some line formatting in there? Chuck Mattsen ... [EMAIL PROTECTED] ... Mahnomen, MN Registered Linux User #346519 Mandrake Linux release 10.0 (Community) for i586 kernel 2.6.3-4mdk 09:56:22 up 6:59, 1 user, load average: 0.28, 0.24, 0.15 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com Well I finally got the time to mess with this last night after getting Thunderbird to work on both my windoze and MD systems. It now shares the folders correctly and I can read my emails from either side. So as you can see below I did it. To make this work in TB I had to run it from cron (which I set up to do every minute) and the output of the command goes to a signature.txt file. On quick question if you please. Being very new at this ... For corn to execute something every five minutes is it necessary to have the first parm be 0,5,10,15,20 etc or is there another trick to this? -- 08:07:00 up 12:31, running Mandrake Linux 9.2, kernel 2.4.22-10mdk on an AMD 2500+ running @ 2700+ Registered Linux user #344404 Steve The way to a man's heart is through the left ventricle.
Re: Signature Scripts (WAS: Re: [newbie] Steve's second question of the day. Time machine has been up)
What I want to know is can you add something to the code of your sig.txt at I guess "footerfile=" that will effectively do the same as this: > > #bin bash > > echo `cat /etc/mandrake-release` kernel "`uname -r`" -- John Willby Oxon GLASS rep Registered Linux user number 321644 ICQ: 92791912 MSN: [EMAIL PROTECTED] AIM: vicarofwibley Jabber: [EMAIL PROTECTED] Linux is like a wigwam - No Gates, no Windows, Apache inside. 08:38:38 up 11:36, 0 users, load average: 0.00, 0.02, 0.00 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: Signature Scripts (WAS: Re: [newbie] Steve's second question of the day. Time machine has been up)
On Saturday 27 March 2004 10:51 pm, skidley wrote: > > If I read the thread correctly you want to have a sig similiar to mine? > > If so, why not use a little perl script called "makesig.pl" If you > > want it I'll send it over or just google/linux for it. > > I am interested in makesig.pl so I grabbed the rpm and installed it. I > just type makesig.pl at the command line and it just hangs there doing > nothing it seems. There's not much documentation on how to use it.How > does it work? Did you make a sig file? I'm using Kmail and heres what I have setup for my signature: In my setup I have "Obtain signature from output of command" Then the command is: /home/chris/makesig.pl-0.0.9/makesig.pl sig.txt Below is my sig.txt file: beginconfig( maxlines=20 footerfile=uptime| sigdashes=yes )endconfig Regards Chris A 100% Microsoft free computer Registered Linux User 283774 http://counter.li.org -- Regards Chris A 100% Microsoft free computer Registered Linux User 283774 http://counter.li.org 11:06pm up 2 days, 5:30, 4 users, load average: 0.13, 0.39, 0.43 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: Signature Scripts (WAS: Re: [newbie] Steve's second question of the day. Time machine has been up)
On Sat, Mar 27, 2004 at 04:47:40PM -0600, Chris wrote: > On Friday 26 March 2004 10:24 am, Chuck Mattsen wrote: > > On Fri, 2004-03-26 at 10:08, bascule wrote: > > > try using echo -e and using \\n to represent a newline, thus: > > > #bin bash > > > echo -e "Chuck Mattsen ... [EMAIL PROTECTED] ... Mahnomen, MN" > > > \\n echo -e "Registered Linux User #346519" \\n > > > echo -e `cat /etc/mandrake-release` kernel "`uname -r`" \\n > > > echo `uptime` > > > > Now /that/ looks familiar; similar to the way my random sig quotes file > > needed to be formatted for Pegasus, back in my Windows days. Will have > > to try that, as well. Thx. > > If I read the thread correctly you want to have a sig similiar to mine? If > so, why not use a little perl script called "makesig.pl" If you want it > I'll send it over or just google/linux for it. > I am interested in makesig.pl so I grabbed the rpm and installed it. I just type makesig.pl at the command line and it just hangs there doing nothing it seems. There's not much documentation on how to use it.How does it work? -- Chad Y. (aka skidley) Registered Linux User #195191 Linux 2.6.3-7mdk Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: Signature Scripts (WAS: Re: [newbie] Steve's second question of the day. Time machine has been up)
On Sat, 2004-03-27 at 16:47, Chris wrote: > If I read the thread correctly you want to have a sig similiar to mine? If > so, why not use a little perl script called "makesig.pl" If you want it > I'll send it over or just google/linux for it. I'll Google it and take a look, thanks. I managed to get mine working, including the tagline/'fortune' ... I can still only use others' fortunes, however, as all attempts to compile my own via the strfile command have failed, yielding just one big file instead of individual taglines. Not sure what's up with that, but figuring that out is currently on my e-mail client "wish"/to-do list. :-) -- Chuck Mattsen / [EMAIL PROTECTED] / RLU #346519 Mandrake Linux release 10.0 (Community) for i586 kernel 2.6.3-4mdk 18:22:25 up 44 min, 1 user, load average: 0.10, 0.08, 0.02 If you took all of the grains of sand in the world, and lined them up end to end in a row, you'd be working for the government! -- Mr. Interesting Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: Signature Scripts (WAS: Re: [newbie] Steve's second question of the day. Time machine has been up)
On Friday 26 March 2004 10:24 am, Chuck Mattsen wrote: > On Fri, 2004-03-26 at 10:08, bascule wrote: > > try using echo -e and using \\n to represent a newline, thus: > > #bin bash > > echo -e "Chuck Mattsen ... [EMAIL PROTECTED] ... Mahnomen, MN" > > \\n echo -e "Registered Linux User #346519" \\n > > echo -e `cat /etc/mandrake-release` kernel "`uname -r`" \\n > > echo `uptime` > > Now /that/ looks familiar; similar to the way my random sig quotes file > needed to be formatted for Pegasus, back in my Windows days. Will have > to try that, as well. Thx. If I read the thread correctly you want to have a sig similiar to mine? If so, why not use a little perl script called "makesig.pl" If you want it I'll send it over or just google/linux for it. Chris -- Regards Chris A 100% Microsoft free computer Registered Linux User 283774 http://counter.li.org 4:46pm up 1 day, 23:10, 4 users, load average: 0.77, 0.66, 0.58 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: Signature Scripts (WAS: Re: [newbie] Steve's second question of the day. Time machine has been up)
On Fri, 2004-03-26 at 10:08, bascule wrote: > try using echo -e and using \\n to represent a newline, thus: > #bin bash > echo -e "Chuck Mattsen ... [EMAIL PROTECTED] ... Mahnomen, MN" \\n > echo -e "Registered Linux User #346519" \\n > echo -e `cat /etc/mandrake-release` kernel "`uname -r`" \\n > echo `uptime` Now /that/ looks familiar; similar to the way my random sig quotes file needed to be formatted for Pegasus, back in my Windows days. Will have to try that, as well. Thx. -- Chuck Mattsen ... [EMAIL PROTECTED] ... Mahnomen, MN Registered Linux User #346519 Mandrake Linux release 10.0 (Community) for i586 kernel 2.6.3-4mdk 10:22:51 up 7:26, 1 user, load average: 0.23, 0.10, 0.09 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com