Re: Signature Scripts (WAS: Re: [newbie] Steve's second question of the day. Time machine has been up)

2004-03-28 Thread Steve Kaurfman




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" g

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)

2004-03-28 Thread Todd Slater
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)

2004-03-28 Thread Chuck Mattsen
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)

2004-03-28 Thread Charlie
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)

2004-03-28 Thread Chuck Mattsen
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)

2004-03-28 Thread Charlie
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)

2004-03-27 Thread Chris
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)

2004-03-27 Thread Chuck Mattsen
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)

2004-03-27 Thread skidley
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)

2004-03-27 Thread Chris
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)

2004-03-27 Thread Inhabitant of Zion
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)

2004-03-26 Thread Chuck Mattsen
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



Re: [newbie] Steve's second question of the day. Time machine has been up

2004-02-21 Thread Robert Vojta
 What you are seeing is a linux program called uptime If you open a
 terminal and type uptime you will see those lines.  I see you are using
 Thunderbird for email, I have no experience with thundebird so maybe
 someone else can help you here.

  AFAIK there is no way how to tell TB that your signature file is
script ... (Pipes doesn't work too ...)

-- 
Robert Vojta

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Steve's second question of the day. Time machine has been up

2004-02-21 Thread Charlie Mahan
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Saturday 21 February 2004 8:37 am, Glenn wrote:
 On Saturday 21 February 2004 08:12, Steve Kaufman wrote:
  I see some of you in your signature files have a line that says how
  log your machine has been running since the last boot.
 
  How do I find that info and get it into my signature?
 
  Thanks
  Steve

 Here's my sig.  The pertinent section would be everything before the
 running Mandrake... echo statement, of course.  Just set up your MUA to
 call up the script.


 #!/bin/bash
 STR=$(uptime)
 TIME=${STR% user*}
 RESULT=${TIME% *}
 echo -n $RESULT
 echo  running Mandrake Linux 10.0beta2, kernel $(uname -r) on an Intel P4
 1.8
 echo Registered Linux user #324360
 echo
 /usr/games/fortune

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 g

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.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAN8DBZqvqlrLPr5YRAsYOAJ9RrPBdFJ5ctWf9XAmq1Tw+ZZ/kWgCdEq8K
GTHwNNY9xnQZW2h9THFJLVM=
=77KH
-END PGP SIGNATURE-

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Steve's second question of the day. Time machine has been up

2004-02-21 Thread JoeHill
On Sat, 21 Feb 2004 16:49:35 -0500 (Eastern Standard Time)
Steve Kaufman disseminated the following:

 OK What's an MUA.

Mail User Agent. In your case, Thunderbird.

-- 
JoeHill
Registered Linux user #282046
Homepage: www.orderinchaos.org
+++
17:27:48 up 16 days, 5:13, 4 users, load average: 0.19, 0.10, 0.08
+++
Linux 2.4.22-21mdk i686
+++
Capitalism is the astounding belief that the most wickedest of men will do the
most wickedest of things for the greatest good of everyone.-- John Maynard
Keynes

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Steve's second question of the day. Time machine has been up

2004-02-21 Thread Glenn
On Saturday 21 February 2004 13: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 g

 Regards;
 Charlie

Hadn't seen the cat /etc/mandrake-release before.  Thanks, Charlie.


-- 
16:32:42 up 7:21, running Mandrake Linux release 10.0 (RC1) for i586, kernel 
2.6.2-0.rc3.1mdk
Registered Linux user #324360

IT MAKES ME MAD when I go to all the trouble of having Marta cook up about
a hundred drumsticks, then the guy at Marineland says, You can't throw
that chicken to the dolphins. They eat fish.

Sure they eat fish if that's all you give them!  Man, wise up.
-- Jack Handley, The New Mexican, 1988.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Steve's second question of the day. Time machine has been up

2004-02-21 Thread Glenn
On Saturday 21 February 2004 15:29, JoeHill wrote:
 On Sat, 21 Feb 2004 16:49:35 -0500 (Eastern Standard Time)

 Steve Kaufman disseminated the following:
  OK What's an MUA.

 Mail User Agent. In your case, Thunderbird.

I think I've been hanging around here too much.  Used to be I'd never use an 
acronym like MUA g


-- 
16:38:04 up 7:26, running Mandrake Linux release 10.0 (RC1) for i586, kernel 
2.6.2-0.rc3.1mdk
Registered Linux user #324360

To err is human, but I can REALLY foul things up.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Steve's second question of the day. Time machine has been up

2004-02-21 Thread JoeHill
On Sat, 21 Feb 2004 16:38:47 -0700
Glenn disseminated the following:

  Mail User Agent. In your case, Thunderbird.
 
 I think I've been hanging around here too much.  Used to be I'd never use an 
 acronym like MUA g

MDA, MTA, MUA, SMTP, IMAP, christ, I don't even speak inglish ennymore...

-- 
JoeHill
Registered Linux user #282046
Homepage: www.orderinchaos.org
+++
00:01:00 up 16 days, 11:46, 5 users, load average: 0.44, 0.35, 0.28
+++
Linux 2.4.22-21mdk i686
+++
Microsoft Palladium:  The world is a fearful place (because we allowed it to be
by introducing vulnerable designs followed by clueless security initiatives) so
let us fix it for you.--Cringely

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com