new fortune file: pep-talk

2015-09-12 Thread Gary Weaver
If you're looking for something interesting for cowsay to say or have
an affinity for the motivational quotes provided on wrappers of Halls
cough drops, I put together a fortune quote-file this morning here:

https://github.com/garysweaver/pep-talk

Had a bad cold this week and was going through a bunch of old cough
drops from the pantry and they seemed like they would make good
fortunes.

The wrappers look like this, if you've not seen them:
https://www.google.com/search?q=a+pep+talk+in+every+drop&biw=1440&bih=771&source=lnms&tbm=isch&sa=X&ved=0CAcQ_AUoAjgKahUKEwiFpaeI5vHHAhUMoIAKHeWAAWQ

Let's hear your battle cry,

Gary



Re: fortune not working

2008-07-30 Thread Peter Daum


s. keeling wrote:

Peter Daum <[EMAIL PROTECTED]>:

 #  dpkg -l fortune*|grep ii
 ii  fortune-mod1.99.1-3.1 provides fortune cookies on demand
 ii  fortunes   1.99.1-3.1 Data files containing fortune cookies
 ii  fortunes-min   1.99.1-3.1 Data files containing fortune cookies


(0) phreaque /home/keeling_ pkgs fortune | egrep '^i'
i   fortune-mod - provides fortune cookies on demand
i   fortunes- Data files containing fortune cookies
i   fortunes-min- Data files containing fortune cookies

fwiw, also etch.  I can only guess charset clash (ASCII/utf-8), and it
knows not to bother opening anything as it knows it can't translate?  Guess.


I normally use ISO8859-1, but the locale setting doesn't make a difference.
The installed data files only use ASCII anyway. Actually, I really can't
see much potential for something as simple as "fortune" to go wrong ;-)

I just tried an ages old fortune program that I still had around, which
(after adjusting the path of the data files with a symlink) works fine
with the Debian data files ...




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: fortune not working

2008-07-30 Thread s. keeling
Peter Daum <[EMAIL PROTECTED]>:
>  #  dpkg -l fortune*|grep ii
>  ii  fortune-mod1.99.1-3.1     provides fortune cookies on demand
>  ii  fortunes   1.99.1-3.1 Data files containing fortune cookies
>  ii  fortunes-min   1.99.1-3.1 Data files containing fortune cookies

(0) phreaque /home/keeling_ pkgs fortune | egrep '^i'
i   fortune-mod     - provides fortune cookies on demand
i   fortunes- Data files containing fortune cookies
i   fortunes-min- Data files containing fortune cookies

fwiw, also etch.  I can only guess charset clash (ASCII/utf-8), and it
knows not to bother opening anything as it knows it can't translate?  Guess.


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)http://blinkynet.net/comp/uip5.html  Linux Counter #80292
- -http://www.faqs.org/rfcs/rfc1855.htmlPlease, don't Cc: me.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: fortune not working

2008-07-30 Thread Mark Allums

Peter Daum wrote:

Mark Allums wrote:

Peter Daum wrote:
certainly not the most critical problem, but at least on my system 
(mainly Etch,
I also tried the fortune package from Lenny) doesn't work. when I 
trace it, I
can see that it reads a bunch of fortue data files but that is 
obviously just

for its own pleasure - it just silently exits w/o any error.

Any ideas?
 Peter


I bet it is producing output *somewhere*, the question is *where*.


That would be pretty amazing, because it isn't even trying to -
as already said, when it strace what it does, I can see it opening
and reading a whole bunch of date files, but it does not issue a
single "write" syscall.
There also should be al necessary packages installed (unless there
is something essential missing in the dependencies):
#  dpkg -l fortune*|grep ii
ii  fortune-mod1.99.1-3.1 provides fortune cookies on demand
ii  fortunes   1.99.1-3.1 Data files containing fortune cookies
ii  fortunes-min   1.99.1-3.1 Data files containing fortune cookies



Ahh, I should read more closely.  My bad.


Mark Allums



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: fortune not working

2008-07-30 Thread Peter Daum

Mark Allums wrote:

Peter Daum wrote:
certainly not the most critical problem, but at least on my system 
(mainly Etch,
I also tried the fortune package from Lenny) doesn't work. when I 
trace it, I
can see that it reads a bunch of fortue data files but that is 
obviously just

for its own pleasure - it just silently exits w/o any error.

Any ideas?
 Peter




I bet it is producing output *somewhere*, the question is *where*.


That would be pretty amazing, because it isn't even trying to -
as already said, when it strace what it does, I can see it opening
and reading a whole bunch of date files, but it does not issue a
single "write" syscall.
There also should be al necessary packages installed (unless there
is something essential missing in the dependencies):
#  dpkg -l fortune*|grep ii
ii  fortune-mod1.99.1-3.1 provides fortune cookies on demand
ii  fortunes   1.99.1-3.1 Data files containing fortune cookies
ii  fortunes-min   1.99.1-3.1 Data files containing fortune cookies


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: fortune not working

2008-07-30 Thread Mark Allums

Peter Daum wrote:
certainly not the most critical problem, but at least on my system 
(mainly Etch,
I also tried the fortune package from Lenny) doesn't work. when I trace 
it, I
can see that it reads a bunch of fortue data files but that is obviously 
just

for its own pleasure - it just silently exits w/o any error.

Any ideas?
 Peter




Sorry, sent that last post before I was ready.

Try redirecting the output to a file and the check the file.  Maybe the 
problem is that the output is not going where you think it should.



Mark Allums


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: fortune not working

2008-07-30 Thread Mark Allums

Peter Daum wrote:
certainly not the most critical problem, but at least on my system 
(mainly Etch,
I also tried the fortune package from Lenny) doesn't work. when I trace 
it, I
can see that it reads a bunch of fortue data files but that is obviously 
just

for its own pleasure - it just silently exits w/o any error.

Any ideas?
 Peter




I bet it is producing output *somewhere*, the question is *where*.


Mark Allums


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: fortune not working

2008-07-30 Thread Eugene V. Lyubimkin
Peter Daum wrote:
> certainly not the most critical problem, but at least on my system
> (mainly Etch,
> I also tried the fortune package from Lenny) doesn't work. when I trace
> it, I
> can see that it reads a bunch of fortue data files but that is obviously
> just
> for its own pleasure - it just silently exits w/o any error.
> 
> Any ideas?
>  Peter
> 
> 
What fortunes-* package are installed?

-- 
Eugene V. Lyubimkin aka JackYF



signature.asc
Description: OpenPGP digital signature


fortune not working

2008-07-30 Thread Peter Daum

certainly not the most critical problem, but at least on my system (mainly Etch,
I also tried the fortune package from Lenny) doesn't work. when I trace it, I
can see that it reads a bunch of fortue data files but that is obviously just
for its own pleasure - it just silently exits w/o any error.

Any ideas?
 Peter


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] How to add fortune output to terminal

2008-04-18 Thread Bob Proulx
Martin Schulze wrote:
> Please always Cc to me when replying to me on the lists.
> ...
> Another way to do this is:
> 
> if [ -n "$PS1" -a "$TERM" != "dumb" ]; then
>   # aliases and the like for interactive use
> else
>   # non-intreactive
> fi
> 
> TERM=dumb is set by dumb terminal emulations such as M-x shell in Emacs,
> in case you wonder.  Colour definitions should be outside.

Hmm...  Almost.  If it is an alias that I want for interactive use
then I would want it in an emacs interactive shell too.  Which means
that I wouldn't want to key off of TERM=dumb in that case since it
wouldn't be there in that interactive session.

I just put anything that I always want loaded above the PS1 test line
(shown as defaulted in /etc/skel/.bashrc):

  # always loaded
  [ -z "$PS1" ] && return
  # conditionally loaded

And most of the time I am not really worried about if I have a version
(old upstream or new patched) of bash which reads the file or not.
Most of the time I won't notice.  If I do notice then I will already
know what is going on and deal with it on the fly. (shrug)

Bob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [OT] How to add fortune output to terminal

2008-04-16 Thread Martin Schulze
Bob Proulx wrote:
> s. keeling wrote:
> > Another common practice is to set PS1 in .bash_profile, then call
> > .bashrc from .bash_profile.
> >  if [ ! -z "$PS1" ]; then
> 
> The PS1 is set by default for interactive shells and not set for
> non-interactive shells.  So the test for $PS1 works without needing to
> set it.  This is in the default Debian /etc/skel/.bashrc too.
> 
> > The intent being to not clutter up the environment any more than is
> > necessary.
> 
> Note: Some versions of bash read the .bashrc when it determines that
> it is started over a remote shell.  By splitting the .bashrc into an
> interactive and non-interactive section then aliases can be loaded
> over a remote shell and made available to the command while not
> breaking things for a non-interactive environment.  Not that I would
> advocate doing that.  The feature was removed from the bash upstream
> due to various problems.  Debian Etch has patches specifically for
> this situation.  See /usr/share/doc/bash/README.Debian.gz .

Another way to do this is:

if [ -n "$PS1" -a "$TERM" != "dumb" ]; then
  # aliases and the like for interactive use
else
  # non-intreactive
fi

TERM=dumb is set by dumb terminal emulations such as M-x shell in Emacs,
in case you wonder.  Colour definitions should be outside.

Regards,

Joey

-- 
Let's call it an accidental feature.  -- Larry Wall

Please always Cc to me when replying to me on the lists.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [OT] How to add fortune output to terminal

2008-04-16 Thread s. keeling
Bob Proulx <[EMAIL PROTECTED]>:
>  s. keeling wrote:
> > Another common practice is to set PS1 in .bash_profile, then call
> > .bashrc from .bash_profile.
> >  if [ ! -z "$PS1" ]; then
> 
>  The PS1 is set by default for interactive shells and not set for
>  non-interactive shells.  So the test for $PS1 works without needing to
>  set it.  This is in the default Debian /etc/skel/.bashrc too.

Thanks, didn't know that.  I've always clobbered PS1 first, not caring
what it was set to.  I guess I should instead test to see if it's set
to what I set it to.

> > The intent being to not clutter up the environment any more than is
> > necessary.
> 
>  Note: Some versions of bash read the .bashrc when it determines that
>  it is started over a remote shell.  By splitting the .bashrc into an
>  interactive and non-interactive section then aliases can be loaded
>  over a remote shell and made available to the command while not
>  breaking things for a non-interactive environment.  Not that I would
>  advocate doing that.  The feature was removed from the bash upstream
>  due to various problems.  Debian Etch has patches specifically for
>  this situation.  See /usr/share/doc/bash/README.Debian.gz .

I distinctly remember this behaviour, and its subsequent
disappearance.  Thanks for explaining that.  I wondered why it had
disappeared.


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)http://blinkynet.net/comp/uip5.html  Linux Counter #80292
- -http://www.faqs.org/rfcs/rfc1855.htmlPlease, don't Cc: me.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [OT] How to add fortune output to terminal

2008-04-16 Thread Bob Proulx
s. keeling wrote:
> Another common practice is to set PS1 in .bash_profile, then call
> .bashrc from .bash_profile.
>  if [ ! -z "$PS1" ]; then

The PS1 is set by default for interactive shells and not set for
non-interactive shells.  So the test for $PS1 works without needing to
set it.  This is in the default Debian /etc/skel/.bashrc too.

> The intent being to not clutter up the environment any more than is
> necessary.

Note: Some versions of bash read the .bashrc when it determines that
it is started over a remote shell.  By splitting the .bashrc into an
interactive and non-interactive section then aliases can be loaded
over a remote shell and made available to the command while not
breaking things for a non-interactive environment.  Not that I would
advocate doing that.  The feature was removed from the bash upstream
due to various problems.  Debian Etch has patches specifically for
this situation.  See /usr/share/doc/bash/README.Debian.gz .

Bob


signature.asc
Description: Digital signature


Re: [OT] How to add fortune output to terminal

2008-04-15 Thread s. keeling
NN_il_Confusionario <[EMAIL PROTECTED]>:
>  On Tue, Apr 15, 2008 at 02:08:02AM +0200, s. keeling wrote:
> > .bash_profile is for setting up global env vars.  .bashrc is for doing
> > things for interactive ("login") sessions.
> 
>  this is completely different from what I understand by reading man bash
>  (section FILES, and also search for "INVOCATION" in all the man page).

I've been fighting this stuff for so long, I'm convinced the manpage
author never understood it.  zsh seems to get it, but that's another
level of complexity ...

>  A common pratice is to source .bashrc from .bash_profile , but it is not
>  a necessity so each one should check such files in $HOME

Another common practice is to set PS1 in .bash_profile, then call
.bashrc from .bash_profile.  Then, in .bashrc you'll see:

 # Hopefully, /etc/profile didn't do this (also).  If so,
 # .bash_profile should unset PS1 first.
 #
 if [ ! -z "$PS1" ]; then

# interactive shell startup stuff.

 fi

The intent being to not clutter up the environment any more than is
necessary.

Nowadays, this is pretty irrelevant stuff, until something gets
confused and breaks.


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)http://blinkynet.net/comp/uip5.html  Linux Counter #80292
- -http://www.faqs.org/rfcs/rfc1855.htmlPlease, don't Cc: me.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [OT] How to add fortune output to terminal

2008-04-14 Thread NN_il_Confusionario
On Tue, Apr 15, 2008 at 02:08:02AM +0200, s. keeling wrote:
> .bash_profile is for setting up global env vars.  .bashrc is for doing
> things for interactive ("login") sessions.

this is completely different from what I understand by reading man bash
(section FILES, and also search for "INVOCATION" in all the man page).

A common pratice is to source .bashrc from .bash_profile , but it is not
a necessity so each one should check such files in $HOME

-- 
Chi usa software non libero avvelena anche te. Digli di smettere.
Informatica=arsenico: minime dosi in rari casi patologici, altrimenti letale.
Informatica=bomba: intelligente solo per gli stupidi che ci credono.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [OT] How to add fortune output to terminal

2008-04-14 Thread Vikki Roemer
On Mon, Apr 14, 2008 at 8:08 PM, s. keeling <[EMAIL PROTECTED]> wrote:
> Vikki Roemer <[EMAIL PROTECTED]>:
>
>  >  In my experience, I've never had fortune break scp, but maybe I've
>  >  just been lucky.
>  >
>  >  But, if it does cause problems, just remove it and add it to
>  >  .bash_profile instead.
>
>  .bash_profile is for setting up global env vars.  .bashrc is for doing
>  things for interactive ("login") sessions.  Batch jobs are not login
>  sessions.  xterm -ls is a login shell (runs your startup scripts).

Oh, ok.  I had them confused.  Sorry.

>  Cf. "su" vs. "su -".  The former gives user root privs with user's
>  env.  The latter runs root's startup scripts and clobbers the
>  user's process environment (in that child proc).

Ah.  I always wondered what the difference was.  (I always use 'su',
my classmates use 'su -')

-- 
Vikki Roemer

Registered Linux user #280021

"Sometimes the lights all shinin' on me;
Other times I can barely see.
Lately it occurs to me what a long, strange trip its been."
 -- Grateful Dead, "Truckin'"


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [OT] How to add fortune output to terminal

2008-04-14 Thread s. keeling
Vikki Roemer <[EMAIL PROTECTED]>:
>  On Sun, Apr 13, 2008 at 2:27 AM, Bob Proulx <[EMAIL PROTECTED]> wrote:
> > Angus Auld wrote:
> >  > Would someone be able to advise me as to what is a
> >  > safe method to add a fortune command to my .bashrc
> >  > file so as to have fortune output in my terminal @
> >  > login?
> >  > I've googled this pretty extensively, and have found a
> >  > few methods, but also warnings that certain processes
> >  > can be broken by doing this.
> >
> >  Your .bashrc should be completely silent.  If it produces any output
> >  then it will break 'scp' and 'rsync' at the least.  Probably other
> >  tools that use a remote shell such as cvs, git, etc.
> >
> >   http://www.openssh.org/faq.html#2.9
> 
>  In my experience, I've never had fortune break scp, but maybe I've
>  just been lucky.
> 
>  But, if it does cause problems, just remove it and add it to
>  .bash_profile instead.

.bash_profile is for setting up global env vars.  .bashrc is for doing
things for interactive ("login") sessions.  Batch jobs are not login
sessions.  xterm -ls is a login shell (runs your startup scripts).

Cf. "su" vs. "su -".  The former gives user root privs with user's
env.  The latter runs root's startup scripts and clobbers the
user's process environment (in that child proc).


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)http://blinkynet.net/comp/uip5.html  Linux Counter #80292
- -http://www.faqs.org/rfcs/rfc1855.htmlPlease, don't Cc: me.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [OT] How to add fortune output to terminal

2008-04-14 Thread Vikki Roemer
On Sun, Apr 13, 2008 at 2:27 AM, Bob Proulx <[EMAIL PROTECTED]> wrote:
> Angus Auld wrote:
>  > Would someone be able to advise me as to what is a
>  > safe method to add a fortune command to my .bashrc
>  > file so as to have fortune output in my terminal @
>  > login?
>  > I've googled this pretty extensively, and have found a
>  > few methods, but also warnings that certain processes
>  > can be broken by doing this.
>
>  Your .bashrc should be completely silent.  If it produces any output
>  then it will break 'scp' and 'rsync' at the least.  Probably other
>  tools that use a remote shell such as cvs, git, etc.
>
>   http://www.openssh.org/faq.html#2.9

In my experience, I've never had fortune break scp, but maybe I've
just been lucky.

But, if it does cause problems, just remove it and add it to
.bash_profile instead.

-- 
Vikki Roemer

Registered Linux user #280021

"Sometimes the lights all shinin' on me;
Other times I can barely see.
Lately it occurs to me what a long, strange trip its been."
 -- Grateful Dead, "Truckin'"


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [OT] How to add fortune output to terminal

2008-04-13 Thread Andrei Popescu
On Sun, Apr 13, 2008 at 12:27:15AM -0600, Bob Proulx wrote:
> Angus Auld wrote:
> > Would someone be able to advise me as to what is a
> > safe method to add a fortune command to my .bashrc
> > file so as to have fortune output in my terminal @
> > login?
> > I've googled this pretty extensively, and have found a
> > few methods, but also warnings that certain processes
> > can be broken by doing this.
> 
> Your .bashrc should be completely silent.  If it produces any output
> then it will break 'scp' and 'rsync' at the least.  Probably other
> tools that use a remote shell such as cvs, git, etc.
> 
>   http://www.openssh.org/faq.html#2.9

"[...] for non-interactive sessions."

[EMAIL PROTECTED]:~$ tail -7 .bashrc

echo
echo "Fortune cookie:"
echo
fortune -a
echo

[EMAIL PROTECTED]:~$ ssh localhost /bin/true
[EMAIL PROTECTED]:~$ 


Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)


signature.asc
Description: Digital signature


Re: [OT] How to add fortune output to terminal

2008-04-12 Thread Bob Proulx
Angus Auld wrote:
> Would someone be able to advise me as to what is a
> safe method to add a fortune command to my .bashrc
> file so as to have fortune output in my terminal @
> login?
> I've googled this pretty extensively, and have found a
> few methods, but also warnings that certain processes
> can be broken by doing this.

Your .bashrc should be completely silent.  If it produces any output
then it will break 'scp' and 'rsync' at the least.  Probably other
tools that use a remote shell such as cvs, git, etc.

  http://www.openssh.org/faq.html#2.9

Bob


signature.asc
Description: Digital signature


Re: [OT] How to add fortune output to terminal

2008-04-11 Thread Owen Townend
>
>
> And for real technicolor stuff, hunt for the kernelnewbies fortunes
> file; selected quotes from lkml:
>
>   -
> "I want you guys to look at your computer screen, imagining the worst
>   monster you can (the cacodeamon from Quake will do, just make him
> hairier
>   and bigger and more MEAN), and think of me. Think of me like I am when I
>   see a patch which isn't a pure bug-fix.
>
>   If you're whimpering just _thinking_ about sending me a new feature,
>   you're in the right mindframe. Keep that mindframe."
>
> - Linus Torvalds
>   -
>
> What a freaking tyrant!  :-O  How the heck did
> $any_feature_you_care_to_name survive development?!?  This from the
> guy who was once wondering why his newborn might need a tcp/ip stack?


Hey,
  Tyrant maybe, but I can see his point. I'm sure he'd have been more
aminable to you sending in two patches, one for the bugfix and another for a
feature. That way he can apply the bugfix and then, if he feels like it,
look at the feature. It's similar to the bad form of refactoring and
changing functionality in the same patch.

cheers,
Owen.

[just kidding, L.]
>
> --
> Any technology distinguishable from magic is insufficiently advanced.
> (*)http://blinkynet.net/comp/uip5.html  Linux Counter #80292
> - -http://www.faqs.org/rfcs/rfc1855.htmlPlease, don't Cc: me.
>
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact
> [EMAIL PROTECTED]
>
>


Re: [OT] How to add fortune output to terminal

2008-04-11 Thread s. keeling
Owen Townend <[EMAIL PROTECTED]>:
> 
>An extract from my .bashrc
> 
>  if [ -x /usr/games/fortune ]; then
>echo; /usr/games/fortune -a; echo
>  fi
> 
>Also, IIRC, the default 'fortunes-mod' package includes only a single data
>  file which has no 'offensive' fortunes, so unless you add more (e.g.
>  fortunes-off) the '-a' is unnecessary.

And for real technicolor stuff, hunt for the kernelnewbies fortunes
file; selected quotes from lkml:

  -
"I want you guys to look at your computer screen, imagining the worst
 monster you can (the cacodeamon from Quake will do, just make him hairier
 and bigger and more MEAN), and think of me. Think of me like I am when I
 see a patch which isn't a pure bug-fix.

 If you're whimpering just _thinking_ about sending me a new feature,
 you're in the right mindframe. Keep that mindframe."

- Linus Torvalds
  -

What a freaking tyrant!  :-O  How the heck did
$any_feature_you_care_to_name survive development?!?  This from the
guy who was once wondering why his newborn might need a tcp/ip stack?


[just kidding, L.]
-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)http://blinkynet.net/comp/uip5.html  Linux Counter #80292
- -http://www.faqs.org/rfcs/rfc1855.htmlPlease, don't Cc: me.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [OT] How to add fortune output to terminal

2008-04-11 Thread Owen Townend
>
>
> > Greetings,
> > Would someone be able to advise me as to what is a
> > safe method to add a fortune command to my .bashrc
> > file so as to have fortune output in my terminal @
> > login?
> > I've googled this pretty extensively, and have found
> > a
> > few methods, but also warnings that certain
> > processes
> > can be broken by doing this.
> > Any insights would be appreciated.
> > TIA. Best regards.
> >


Hey,
  An extract from my .bashrc

if [ -x /usr/games/fortune ]; then
  echo; /usr/games/fortune -a; echo
fi

  Also, IIRC, the default 'fortunes-mod' package includes only a single data
file which has no 'offensive' fortunes, so unless you add more (e.g.
fortunes-off) the '-a' is unnecessary.

cheers,
Owen.


Re: [OT] How to add fortune output to terminal

2008-04-11 Thread Angus Auld

--- Angus Auld <[EMAIL PROTECTED]> wrote:

> Greetings,
> Would someone be able to advise me as to what is a
> safe method to add a fortune command to my .bashrc
> file so as to have fortune output in my terminal @
> login?
> I've googled this pretty extensively, and have found
> a
> few methods, but also warnings that certain
> processes
> can be broken by doing this.
> Any insights would be appreciated.
> TIA. Best regards.
> 
> -- 
> AA
Thank you for the replies...much appreciated indeed.
Best regards.

-- 
AA

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [OT] How to add fortune output to terminal

2008-04-11 Thread Paul Cartwright
On Fri April 11 2008, Angus Auld wrote:
> Would someone be able to advise me as to what is a
> safe method to add a fortune command to my .bashrc
> file so as to have fortune output in my terminal @
> login?
add these lines to your ~/.bashrc
echo
echo "fortune"
echo
fortune -a
echo


-- 
Paul Cartwright
Registered Linux user # 367800
Registered Ubuntu User #12459


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



[OT] How to add fortune output to terminal

2008-04-11 Thread Angus Auld
Greetings,
Would someone be able to advise me as to what is a
safe method to add a fortune command to my .bashrc
file so as to have fortune output in my terminal @
login?
I've googled this pretty extensively, and have found a
few methods, but also warnings that certain processes
can be broken by doing this.
Any insights would be appreciated.
TIA. Best regards.

-- 
AA

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Getting fortune to run when opening a terminal

2008-03-30 Thread Andrei Popescu
On Sun, Mar 30, 2008 at 11:17:21AM -0300, Eduardo M KALINOWSKI wrote:
> andy wrote:
>> Hi all
>>
>> Under Slackware, whenever I would open up konsole (a terminal app), so a 
>> fortune would be displayed before the typical Bash prompt.
>>
>> Is there a way of setting it up under Debian so that it can do the same 
>> thing?
>
> Just put a call to the fortune program in ~/.bash_profile .

.bash_profile is run only on login shells. Use .bashrc is you want it 
for *every* console:

,[ from my .bashrc ]
| echo
| echo "Fortune cookie:"
| echo
| fortune -a
| echo
`

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)


signature.asc
Description: Digital signature


Re: Getting fortune to run when opening a terminal

2008-03-30 Thread andy

Eduardo M KALINOWSKI wrote:

andy wrote:

Hi all

Under Slackware, whenever I would open up konsole (a terminal app), 
so a fortune would be displayed before the typical Bash prompt.


Is there a way of setting it up under Debian so that it can do the 
same thing?


Just put a call to the fortune program in ~/.bash_profile .


Thanks. Fixed with:

# call fortune:
if [ -x /usr/games/fortune ] ; then
echo ; /usr/games/fortune ; echo
fi

A

--

"If they can get you asking the wrong questions, they don't have to worry about the 
answers." - Thomas Pynchon, "Gravity's Rainbow"


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Getting fortune to run when opening a terminal

2008-03-30 Thread Eduardo M KALINOWSKI

andy wrote:

Hi all

Under Slackware, whenever I would open up konsole (a terminal app), so a 
fortune would be displayed before the typical Bash prompt.


Is there a way of setting it up under Debian so that it can do the same 
thing?


Just put a call to the fortune program in ~/.bash_profile .

--
There is nothing wrong with abstinence, in moderation.

Eduardo M KALINOWSKI
[EMAIL PROTECTED]
http://move.to/hpkb


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Getting fortune to run when opening a terminal

2008-03-30 Thread andy

Hi all

Under Slackware, whenever I would open up konsole (a terminal app), so a 
fortune would be displayed before the typical Bash prompt.


Is there a way of setting it up under Debian so that it can do the same 
thing?


TIA

Andy

--

"If they can get you asking the wrong questions, they don't have to worry about the 
answers." - Thomas Pynchon, "Gravity's Rainbow"


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Fortune file!

2006-07-08 Thread John Hasler
Jude DaShiell writes:
> Linux has its problems with packet sniffers certainly; I've got the logs
> to prove it.

Would you please explain what you mean by this?
-- 
John Hasler


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Fortune file!

2006-07-08 Thread Jude DaShiell
Linux has its problems with packet sniffers certainly; I've got the logs 
to prove it.  I don't know that there's any solution to this problem 
either.  You can reinstall the hacked software but without additional 
protection of the system the dhcp software just gets hacked again as soon 
as the original hacker notices what has happened.  Seems to be Japanese 
hackers over here having their fun that's because doing a search for 
debian and sit0 on google only turned up a japanese page that was very 
poorly translated by google with this search string in it.




On Sun, 23 Apr 2006, Paul Johnson wrote:


On Saturday 22 April 2006 21:09, Michael M. wrote:

The typical Aunt Matilda Windows User is someone who hears
"virus" and opens a can of chicken soup.


How do I submit this to the fortune file?


Aunt Matilda is only vaguely aware of what an operating system is, and has
no idea that any alternatives exist.


Give Aunt Matilda some credit.  Odds are if she watches Star Trek or pays any
attention to the evening news, she knows it from Captain Sisco out of uniform
pitching servers for IBM or from newsmodels talking about it on TV (ever
since Linus moved to Beaverton, Linux makes the local news on a infrequent
but regular basis, so my viewpoint may be skewed on this).


Were that not the case, I have yet to be convinced that Linux OS's would be
more protected from being p'wned than Windows OS's.


Windows:  I lost count for this year alone.  Damn you Internet Explorer and
your susceptibility to spyware at any speed...

Linux in the last decade:  Once, running bo.  Thank you bind4.  Lesson
learned:  Never sponsor a high school security competition at a technical
magnet academy.  Apt came out shortly later and solved the update problem, as
did listening to the advice of the classmate that found the hole and knew the
fix.  I thought it was a little excessive for him to have dd if=/dev/zero
of=/dev/hda on finals week, but fortunately I had a backup, so other than
having to pull a really painful double-all-nighter to get everything
reinstalled, patched, user data restored from backup and finals projects
finished.

--
Paul Johnson
Email and IM (XMPP & Google Talk): [EMAIL PROTECTED]
Jabber: Because it's time to move forward  http://ursine.ca/Ursine:Jabber




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Fortune file!

2006-04-30 Thread David E. Fox
On Mon, 24 Apr 2006 17:54:14 -0700
Marc Shapiro <[EMAIL PROTECTED]> wrote:

>
> I, also, live in Aloha, only about 3 miles from the 'center of the 
> universe'.  I frequently pass within site of OSDL when I am out 
> shopping.  I wonder how many of us on this list are in the immediate local?

Not me. Sunnyvale, CA. OTOH, my Father (who passed away in 2004) lived
in Aloha, and I've been up that way a few times, so I kind of know the
area. Still friends with the lady who roomed with my Father as well.

Plus I got some cool pics of Haystack Rock (cannon beach, of course) ;)

My immediate former managers where I werk were from Hillsboro, too.

> Marc Shapiro

-- 

David E. Fox  Thanks for letting me
[EMAIL PROTECTED]change magnetic patterns
[EMAIL PROTECTED]   on your hard disk.
---


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Beaverton Linux Group (WAS: Re: Fortune file!)

2006-04-29 Thread Marc Shapiro

Michael M. wrote:



Beaverton:
http://www.bluegroup.org/
(link is dead, at least for me, but I'm pretty sure the group is still 
active)


This site didn't work before, but it is, now.

- 
Marc Shapiro


No boom today. Boom tomorrow. There's always a boom tomorrow.
What?! Look, somebody's got to have some damn perspective around here.
Boom. Sooner or later ... boom!

- Susan Ivanova: B5 - Grail


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Fortune file!

2006-04-26 Thread Kevin Mark
On Tue, Apr 25, 2006 at 03:17:52PM -0700, Michael M. wrote:
> Kevin Mark wrote:
> >On Mon, Apr 24, 2006 at 07:19:02PM -0700, Paul Johnson wrote:
> >  
> >>On Monday 24 April 2006 17:54, Marc Shapiro wrote:
> >>
> >>
> >>>I, also, live in Aloha, only about 3 miles from the 'center of the
> >>>universe'.  I frequently pass within site of OSDL when I am out
> >>>shopping.  I wonder how many of us on this list are in the immediate 
> >>>local?
> >>>  
> >>I don't know.  It would be interesting to get a Portland-area Debianista 
> >>meet-up and key-signing party. 
> >>
> >
> >Hi Paul and others in OR,
> >This link[0] is list of local debian meeting groups. I'm on the one for
> >NYC.
> >Cheers,
> >Kev
> >
> >[0] http://wiki.debian.org/LocalGroups
> >  
> I had joined the mailing list for the NYC group while I was still living 
> there, but then I moved back to Portland before I made it to any of the 
> get-togethers.  I was under the impression that B.M. Hill, who I thought 
> started the group, had moved back to Boston, but he is still listed as 
> the contact for the NYC group.
Hi Michael,
Yes he is in list mom. Mako is in Boston but passes though on ocassion as do 
various and
sundry debian folks who may stop over because of airport issues or car
routes. All can join regardless.
Cheers,
Kev
-- 
|  .''`.  == Debian GNU/Linux == |   my web site:   |
| : :' :  The  Universal | debian.home.pipeline.com |
| `. `'  Operating System| go to counter.li.org and |
|   `-http://www.debian.org/ |be counted! #238656   |
| my keysever: pgp.mit.edu   | my NPO: cfsg.org |


signature.asc
Description: Digital signature


Re: Fortune file!

2006-04-25 Thread Michael M.

Kevin Mark wrote:

On Mon, Apr 24, 2006 at 07:19:02PM -0700, Paul Johnson wrote:
  

On Monday 24 April 2006 17:54, Marc Shapiro wrote:



I, also, live in Aloha, only about 3 miles from the 'center of the
universe'.  I frequently pass within site of OSDL when I am out
shopping.  I wonder how many of us on this list are in the immediate local?
  
I don't know.  It would be interesting to get a Portland-area Debianista 
meet-up and key-signing party. 



Hi Paul and others in OR,
This link[0] is list of local debian meeting groups. I'm on the one for
NYC.
Cheers,
Kev

[0] http://wiki.debian.org/LocalGroups
  
I had joined the mailing list for the NYC group while I was still living 
there, but then I moved back to Portland before I made it to any of the 
get-togethers.  I was under the impression that B.M. Hill, who I thought 
started the group, had moved back to Boston, but he is still listed as 
the contact for the NYC group.


--
Michael M. ++ Portland, OR ++ USA
"No live organism can continue for long to exist sanely under conditions of absolute 
reality; even larks and katydids are supposed, by some, to dream." --S. Jackson



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Fortune file!

2006-04-25 Thread Michael M.

Paul Johnson wrote:

On Monday 24 April 2006 17:54, Marc Shapiro wrote:

  

I, also, live in Aloha, only about 3 miles from the 'center of the
universe'.  I frequently pass within site of OSDL when I am out
shopping.  I wonder how many of us on this list are in the immediate local?



I don't know.  It would be interesting to get a Portland-area Debianista 
meet-up and key-signing party. 

  
Don't know about Debianistas specifically, but there are a couple of 
LUGs in the area:


Portland:
http://www.pdxlinux.org/
http://www.pdxlug.org/

Beaverton:
http://www.bluegroup.org/
(link is dead, at least for me, but I'm pretty sure the group is still 
active)


And more elsewhere in Oregon (Eugene, Tillamook, Willamette Valley, 
etc.) and southern Washington.  (Never mind those subversives in the 
Seattle area trying to undermine Microsoft on its home turf.)


If we do get a meet-up going, please not in Aloha, that's too close to 
Beaverton, and I'm still not over the fact Beaverton Police gave me a 
speeding ticket on Allen Blvd by Beaverton Christian Church the same day they 
refused to investigate someone getting shot to death a few hours later on the 
same spot behind my house they cited me for going 31 in a 30 on a bicycle.  
They're also too spineless to stop the drug dealing in front of Beaverton 
High School when classes let out (they'll watch it happen in plain sight 
right in front of them in their siezed-from-a-drug-dealer DARE car and do 
nothing).  Beaverton's not safe and there is no (useful) police in that city 
(and I used to live at MLK and Killingsworth Street in Portland!); I feel 
Linus may have moved there for the same reason he moved to California:  
Didn't realize it's not the part of the [country|state] you ever want to live 
for any income or length of time before he got there.


  
And yet, according to today's Oregonian, Beaverton has the 
fastest-growing school district in the state, while enrollment in 
Portland's public schools continues to decline.


--
Michael M. ++ Portland, OR ++ USA
"No live organism can continue for long to exist sanely under conditions of absolute 
reality; even larks and katydids are supposed, by some, to dream." --S. Jackson



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Fortune file!

2006-04-24 Thread Kevin Mark
On Mon, Apr 24, 2006 at 07:19:02PM -0700, Paul Johnson wrote:
> On Monday 24 April 2006 17:54, Marc Shapiro wrote:
> 
> > I, also, live in Aloha, only about 3 miles from the 'center of the
> > universe'.  I frequently pass within site of OSDL when I am out
> > shopping.  I wonder how many of us on this list are in the immediate local?
> 
> I don't know.  It would be interesting to get a Portland-area Debianista 
> meet-up and key-signing party. 

Hi Paul and others in OR,
This link[0] is list of local debian meeting groups. I'm on the one for
NYC.
Cheers,
Kev

[0] http://wiki.debian.org/LocalGroups
-- 
|  .''`.  == Debian GNU/Linux == |   my web site:   |
| : :' :  The  Universal | debian.home.pipeline.com |
| `. `'  Operating System| go to counter.li.org and |
|   `-http://www.debian.org/ |be counted! #238656   |
| my keysever: pgp.mit.edu   | my NPO: cfsg.org |


signature.asc
Description: Digital signature


Re: Fortune file!

2006-04-24 Thread Paul Johnson
On Monday 24 April 2006 17:54, Marc Shapiro wrote:

> I, also, live in Aloha, only about 3 miles from the 'center of the
> universe'.  I frequently pass within site of OSDL when I am out
> shopping.  I wonder how many of us on this list are in the immediate local?

I don't know.  It would be interesting to get a Portland-area Debianista 
meet-up and key-signing party. 

If we do get a meet-up going, please not in Aloha, that's too close to 
Beaverton, and I'm still not over the fact Beaverton Police gave me a 
speeding ticket on Allen Blvd by Beaverton Christian Church the same day they 
refused to investigate someone getting shot to death a few hours later on the 
same spot behind my house they cited me for going 31 in a 30 on a bicycle.  
They're also too spineless to stop the drug dealing in front of Beaverton 
High School when classes let out (they'll watch it happen in plain sight 
right in front of them in their siezed-from-a-drug-dealer DARE car and do 
nothing).  Beaverton's not safe and there is no (useful) police in that city 
(and I used to live at MLK and Killingsworth Street in Portland!); I feel 
Linus may have moved there for the same reason he moved to California:  
Didn't realize it's not the part of the [country|state] you ever want to live 
for any income or length of time before he got there.

-- 
Paul Johnson
Email and IM (XMPP & Google Talk): [EMAIL PROTECTED]
Jabber: Because it's time to move forward  http://ursine.ca/Ursine:Jabber


pgpDivFmvi8KK.pgp
Description: PGP signature


Re: Fortune file!

2006-04-24 Thread Kelly Clowers
On 4/24/06, Marc Shapiro <[EMAIL PROTECTED]> wrote:



> I, also, live in Aloha, only about 3 miles from the 'center of the
> universe'.  I frequently pass within site of OSDL when I am out
> shopping.  I wonder how many of us on this list are in the immediate local?
>
> --
> Marc Shapiro

I feel the need to reply, although I am not exactly in the "immediate local".
I live in Philomath, which is a fair distance (~90 mi) from OSDL, but I'm
mere minutes from the OSU Open Source Lab ( http://osuosl.org/ ).


Re: average users -
Some of my family members know what Linux is, a couple of them
would recognize it only as some "computer thing" I had mentioned
before, and one uses it, but might be hard pressed to explain exactly
what an OS is. I doubt anyone in my father's family has heard of Linux.

My brother on the other hand has used it at school and may set up a
Linux file server soon. (Gamer + in school learning .NET with VS
means he is not likely to switch his desktop.)

Cheers,
Kelly


Re: Fortune file!

2006-04-24 Thread Raquel Rice
On Mon, 24 Apr 2006 20:34:05 -0500
Ron Johnson <[EMAIL PROTECTED]> wrote:

> On Mon, 2006-04-24 at 18:21 -0700, Raquel Rice wrote:
> > On Mon, 24 Apr 2006 17:54:14 -0700
> > Marc Shapiro <[EMAIL PROTECTED]> wrote:
> > 
> > > Michael M. wrote:
> > > 
> [snip]
> > 
> > I grew up in Hillsboro several years ago.  I'm going back for
> > our (mumble-mumble)-year high school reunion in August.  I also
> > have a son and a granddaughter who live in Hillsboro.
> 
> That would make it your... 10 year reunion.  Right?
> 
> -- 
> -
> Ron Johnson, Jr.

U ... yeah!  Right!  ;-)

-- 
Raquel

If you think you're too small to make a difference, you've obviously
never been in bed with a mosquito.
  --Michelle Walker


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Fortune file!

2006-04-24 Thread Ron Johnson
On Mon, 2006-04-24 at 18:21 -0700, Raquel Rice wrote:
> On Mon, 24 Apr 2006 17:54:14 -0700
> Marc Shapiro <[EMAIL PROTECTED]> wrote:
> 
> > Michael M. wrote:
> > 
[snip]
> 
> I grew up in Hillsboro several years ago.  I'm going back for our
> (mumble-mumble)-year high school reunion in August.  I also have a
> son and a granddaughter who live in Hillsboro.

That would make it your... 10 year reunion.  Right?

-- 
-
Ron Johnson, Jr.
Jefferson, LA USA

"If you disregard people's motives, it becomes much harder to
foresee their actions."
George Orwell


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Fortune file!

2006-04-24 Thread Raquel Rice
On Mon, 24 Apr 2006 17:54:14 -0700
Marc Shapiro <[EMAIL PROTECTED]> wrote:

> Michael M. wrote:
> 
> >
> > Well, my mom asked me what a "blog" was a few months ago because
> > she  heard some newsmodels talking about blogs on TV.  So I
> > guess these  things can filter down eventually.  But she lived
> > in Hillsboro, one  town west of Beaverton, and I daresay she had
> > not heard of Linux.  My  cousin, a Machead from way back, lives
> > in Aloha (kind of wedged in  between Hillsboro and Beaverton),
> > and I don't think she's any more  than vaguely aware of Linux. 
> > I'll have to ask her.  I'm in Portland,  on the other side of
> > the center of the Linux universe from Hillsboro,  so I guess you
> > could say my family revolves around Linux,  geographically
> > speaking, like the planets around the sun (except that  we don't
> > actually change positions).  I think I'm the only one who  knows
> > what it is, let alone uses it.
> >
> > Now Nike and Intel, on the other hand ... everyone here knows
> > them!
> >
> I, also, live in Aloha, only about 3 miles from the 'center of the
> 
> universe'.  I frequently pass within site of OSDL when I am out 
> shopping.  I wonder how many of us on this list are in the
> immediate local?
> 
> -- 
> Marc Shapiro
> 

I grew up in Hillsboro several years ago.  I'm going back for our
(mumble-mumble)-year high school reunion in August.  I also have a
son and a granddaughter who live in Hillsboro.

-- 
Raquel

If you think you're too small to make a difference, you've obviously
never been in bed with a mosquito.
  --Michelle Walker


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Fortune file!

2006-04-24 Thread Marc Shapiro

Michael M. wrote:



Well, my mom asked me what a "blog" was a few months ago because she 
heard some newsmodels talking about blogs on TV.  So I guess these 
things can filter down eventually.  But she lived in Hillsboro, one 
town west of Beaverton, and I daresay she had not heard of Linux.  My 
cousin, a Machead from way back, lives in Aloha (kind of wedged in 
between Hillsboro and Beaverton), and I don't think she's any more 
than vaguely aware of Linux.  I'll have to ask her.  I'm in Portland, 
on the other side of the center of the Linux universe from Hillsboro, 
so I guess you could say my family revolves around Linux, 
geographically speaking, like the planets around the sun (except that 
we don't actually change positions).  I think I'm the only one who 
knows what it is, let alone uses it.


Now Nike and Intel, on the other hand ... everyone here knows them!

I, also, live in Aloha, only about 3 miles from the 'center of the 
universe'.  I frequently pass within site of OSDL when I am out 
shopping.  I wonder how many of us on this list are in the immediate local?


--
Marc Shapiro

No boom today. Boom tomorrow. There's always a boom tomorrow.
What?! Look, somebody's got to have some damn perspective around here.
Boom. Sooner or later ... boom!

- Susan Ivanova: B5 - Grail


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Fortune file!

2006-04-24 Thread Paul Johnson
On Monday 24 April 2006 15:42, Michael M. wrote:
> Now Nike and Intel, on the other hand ... everyone here knows them!

Now if both companies were forced to hire people locally instead of hiring 
people from out of state or on H1B's, we would be getting somewhere...

-- 
Paul Johnson
Email and IM (XMPP & Google Talk): [EMAIL PROTECTED]
Jabber: Because it's time to move forward  http://ursine.ca/Ursine:Jabber


pgp39VRmEGgyp.pgp
Description: PGP signature


Re: Fortune file!

2006-04-24 Thread Michael M.

Paul Johnson wrote:

On Saturday 22 April 2006 21:09, Michael M. wrote:
  
Aunt Matilda is only vaguely aware of what an operating system is, and has 
no idea that any alternatives exist. 



Give Aunt Matilda some credit.  Odds are if she watches Star Trek or pays any 
attention to the evening news, she knows it from Captain Sisco out of uniform 
pitching servers for IBM or from newsmodels talking about it on TV (ever 
since Linus moved to Beaverton, Linux makes the local news on a infrequent 
but regular basis, so my viewpoint may be skewed on this).


  


Well, my mom asked me what a "blog" was a few months ago because she 
heard some newsmodels talking about blogs on TV.  So I guess these 
things can filter down eventually.  But she lived in Hillsboro, one town 
west of Beaverton, and I daresay she had not heard of Linux.  My cousin, 
a Machead from way back, lives in Aloha (kind of wedged in between 
Hillsboro and Beaverton), and I don't think she's any more than vaguely 
aware of Linux.  I'll have to ask her.  I'm in Portland, on the other 
side of the center of the Linux universe from Hillsboro, so I guess you 
could say my family revolves around Linux, geographically speaking, like 
the planets around the sun (except that we don't actually change 
positions).  I think I'm the only one who knows what it is, let alone 
uses it.


Now Nike and Intel, on the other hand ... everyone here knows them!

--
Michael M. ++ Portland, OR ++ USA
"No live organism can continue for long to exist sanely under conditions of absolute 
reality; even larks and katydids are supposed, by some, to dream." --S. Jackson


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Fortune file!

2006-04-23 Thread Paul Johnson
On Saturday 22 April 2006 21:09, Michael M. wrote:
> The typical Aunt Matilda Windows User is someone who hears
> "virus" and opens a can of chicken soup.

How do I submit this to the fortune file?

> Aunt Matilda is only vaguely aware of what an operating system is, and has 
> no idea that any alternatives exist. 

Give Aunt Matilda some credit.  Odds are if she watches Star Trek or pays any 
attention to the evening news, she knows it from Captain Sisco out of uniform 
pitching servers for IBM or from newsmodels talking about it on TV (ever 
since Linus moved to Beaverton, Linux makes the local news on a infrequent 
but regular basis, so my viewpoint may be skewed on this).

> Were that not the case, I have yet to be convinced that Linux OS's would be 
> more protected from being p'wned than Windows OS's.  

Windows:  I lost count for this year alone.  Damn you Internet Explorer and 
your susceptibility to spyware at any speed...

Linux in the last decade:  Once, running bo.  Thank you bind4.  Lesson 
learned:  Never sponsor a high school security competition at a technical 
magnet academy.  Apt came out shortly later and solved the update problem, as 
did listening to the advice of the classmate that found the hole and knew the 
fix.  I thought it was a little excessive for him to have dd if=/dev/zero 
of=/dev/hda on finals week, but fortunately I had a backup, so other than 
having to pull a really painful double-all-nighter to get everything 
reinstalled, patched, user data restored from backup and finals projects 
finished.

-- 
Paul Johnson
Email and IM (XMPP & Google Talk): [EMAIL PROTECTED]
Jabber: Because it's time to move forward  http://ursine.ca/Ursine:Jabber


pgpxniDmfmFlY.pgp
Description: PGP signature


Re: fortune bug ?

2005-06-01 Thread =?ISO-8859-1?Q?Aur=E9lien_Camp=E9as?=
Le mardi 31 mai 2005 à 23:38 -0400, Kevin Mark a écrit :
> On Tue, May 31, 2005 at 08:15:52PM +0200, Aurélien Campéas wrote:
> > Le mardi 31 mai 2005 à 16:09 +0200, Aurélien Campéas a écrit :
> > [...]
> > > a lot of crap here, but look at the last stat64 syscalls near the end :
> > > it looks like a bug related to localisation (fortune tries to open a
> > > file named "fr_FR.UTF ..." instead of a real file). Indeed for this
> > > system I had the funny idea to ask for encoding of all files in UTF-8
> > > instead of iso-latin-1 as I usually do.
> > 
> > 
> > So, am I the only one out there that uses UTF8-something as default
> > encoding for filenames ?
> > 
> > Aurélien.
> > 
> 
> Hi,
> maybe run the command prefixed with LANG= or LANGUAGE= or LC_ALL= 
> LC_ALL=en_US fortune
> 

Indeed. Then, fortune tries to do that :

stat64("/usr/local/share/games/fortunes/en_US", 0xbfffdb9c) = -1 EACCES
(Permission denied)

In fact, in a sarge box where fortune works, this also (almost)
happens ... in facts fortune tries a lot of silly filenames before
opening the right ones. Go figure. That's not important.

fortune fails when trying to open a non-existant file with an EACCES
return code (the working version does not get EACCES returns, only
ENOENTs). However I checked the permissions and they are *apparently*
the same (from /usr/share/games to .../fortunes).

Even lsattr shows nothing. How can that be ???


Aurélien.


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.clearswift.com
**




Re: fortune bug ?

2005-05-31 Thread Kevin Mark
On Tue, May 31, 2005 at 08:15:52PM +0200, Aurélien Campéas wrote:
> Le mardi 31 mai 2005 à 16:09 +0200, Aurélien Campéas a écrit :
> [...]
> > a lot of crap here, but look at the last stat64 syscalls near the end :
> > it looks like a bug related to localisation (fortune tries to open a
> > file named "fr_FR.UTF ..." instead of a real file). Indeed for this
> > system I had the funny idea to ask for encoding of all files in UTF-8
> > instead of iso-latin-1 as I usually do.
> 
> 
> So, am I the only one out there that uses UTF8-something as default
> encoding for filenames ?
> 
> Aurélien.
> 

Hi,
maybe run the command prefixed with LANG= or LANGUAGE= or LC_ALL= 
LC_ALL=en_US fortune

cheers,
Kev
-- 
counter.li.org #238656 -- goto counter.li.org and be counted!
  `$' $' 
   $  $  _
 ,d$$$g$  ,d$$$b. $,d$$$b`$' g$b $,d$$b
,$P'  `$ ,$P' `Y$ $$'  `$ $  "'   `$ $$' `$
$$ $ $$g$ $ $ $ ,$P""  $ $$
`$g. ,$$ `$$._ _. $ _,g$P $ `$b. ,$$ $$
 `Y$$P'$. `YP $$$P"' ,$. `Y$$P'$ $.  ,$.


signature.asc
Description: Digital signature


Re: fortune bug ?

2005-05-31 Thread =?ISO-8859-1?Q?Aur=E9lien_Camp=E9as?=
Le mardi 31 mai 2005 à 16:09 +0200, Aurélien Campéas a écrit :
[...]
> a lot of crap here, but look at the last stat64 syscalls near the end :
> it looks like a bug related to localisation (fortune tries to open a
> file named "fr_FR.UTF ..." instead of a real file). Indeed for this
> system I had the funny idea to ask for encoding of all files in UTF-8
> instead of iso-latin-1 as I usually do.


So, am I the only one out there that uses UTF8-something as default
encoding for filenames ?

Aurélien.




**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.clearswift.com
**




Re: fortune bug ?

2005-05-31 Thread =?ISO-8859-1?Q?Aur=E9lien_Camp=E9as?=
Le mardi 31 mai 2005 à 14:52 +0100, Lee Braiden a écrit :
> On Tuesday 31 May 2005 14:41, Aurélien Campéas wrote:
> > if (stat(file, &staat) == 0)
> > default:
> > perror("fortune: bad juju in is_existant");
> > exit(1);
> > Do someone knows a tool to expose the call graph of a C program ?
> 
> The easiest way might be to run it through strace (strace 2>log fortune), 
> find 
> (near the end of the log) where it writes that error message, then look for 
> the first stat() call before that in the same log.  Hopefully it'll show what 
> it's trying to access.
> 

good idea !


execve("/usr/games/fortune", ["fortune"], [/* 28 vars */]) = 0
uname({sys="Linux", node="eve", ...})   = 0
brk(0)  = 0x805
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7fe9000
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or directory)
open("/etc/ld.so.preload", O_RDONLY)= -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)  = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=59815, ...}) = 0
old_mmap(NULL, 59815, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fda000
close(3)= 0
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or directory)
open("/usr/lib/librecode.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p/\3\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1279588, ...}) = 0
old_mmap(NULL, 1279048, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7ea1000
old_mmap(0xb7fac000, 188416, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 
0x10b000) = 0xb7fac000
close(3)= 0
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or directory)
open("/lib/tls/libc.so.6", O_RDONLY)= 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`Z\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1254468, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7ea
old_mmap(NULL, 1264780, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7d6b000
old_mmap(0xb7e95000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 
0x129000) = 0xb7e95000
old_mmap(0xb7e9e000, 7308, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7e9e000
close(3)= 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7ea0800, limit:1048575, 
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, 
useable:1}) = 0
munmap(0xb7fda000, 59815)   = 0
stat64("[EMAIL PROTECTED]", 0xbfffcc5c)  = -1 ENOENT (No such file or directory)
open("[EMAIL PROTECTED]", O_RDONLY)  = -1 ENOENT (No such file or directory)
brk(0)  = 0x805
brk(0x8071000)  = 0x8071000
brk(0)  = 0x8071000
stat64("/usr/local/share/games/fortunes/[EMAIL PROTECTED]", 0xbfffc7ac) = -1 
EACCES (Permission denied)
dup(2)  = 3
fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR)
fstat64(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7fe8000
_llseek(3, 0, 0xbfffc6a8, SEEK_CUR) = -1 ESPIPE (Illegal seek)
write(3, "fortune: bad juju in is_existant"..., 52fortune: bad juju in 
is_existant: Permission denied
) = 52
close(3)= 0
munmap(0xb7fe8000, 4096)= 0
exit_group(1)   = ?



a lot of crap here, but look at the last stat64 syscalls near the end :
it looks like a bug related to localisation (fortune tries to open a
file named "fr_FR.UTF ..." instead of a real file). Indeed for this
system I had the funny idea to ask for encoding of all files in UTF-8
instead of iso-latin-1 as I usually do.






**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.clearswift.com
**




Re: fortune bug ?

2005-05-31 Thread Lee Braiden
On Tuesday 31 May 2005 14:41, Aurélien Campéas wrote:
> if (stat(file, &staat) == 0)
>   default:
>   perror("fortune: bad juju in is_existant");
>   exit(1);
> Do someone knows a tool to expose the call graph of a C program ?

The easiest way might be to run it through strace (strace 2>log fortune), find 
(near the end of the log) where it writes that error message, then look for 
the first stat() call before that in the same log.  Hopefully it'll show what 
it's trying to access.

-- 
Lee.

Please do not CC replies directly to me.  I'll read them on the list.



Re: fortune bug ?

2005-05-31 Thread =?ISO-8859-1?Q?Aur=E9lien_Camp=E9as?=
Le mardi 31 mai 2005 à 19:54 +0700, Dave Patterson a écrit :
> > 
> > I consider fortune to be the most important unix app ever written
> 
> So do I (well, at least one of the most). Let us know what you did to fix it. 
> 

The crappy string is in fortune.c (stupid programmers !!) :

/*
 * is_existant:
 *  Return TRUE if the file exists, FALSE otherwise.
 */
int is_existant(char *file)
{
struct stat staat;

if (stat(file, &staat) == 0)
return TRUE;
switch(errno)
{
case ENOENT:
case ENOTDIR:
return FALSE;
default:
    perror("fortune: bad juju in is_existant");
exit(1);
}
}

It is only called from add_file which add files ... I guess to the list
of fortune files ...

The whole source is an abomination btw :-/

Do someone knows a tool to expose the call graph of a C program ?

Thanks,
Aurélien.


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.clearswift.com
**




Re: fortune bug ?

2005-05-31 Thread Dave Patterson

> 
> I consider fortune to be the most important unix app ever written

So do I (well, at least one of the most). Let us know what you did to fix it. 

-- 
Regards, Dave
try again


signature.asc
Description: Digital signature


Re: fortune bug ?

2005-05-31 Thread =?ISO-8859-1?Q?Aur=E9lien_Camp=E9as?=
Le mardi 31 mai 2005 à 11:59 +0100, Lee Braiden a écrit :
> On Tuesday 31 May 2005 11:50, Aurélien Campéas wrote:
> > > > [EMAIL PROTECTED]:~$ fortune
> > > > fortune: bad juju in is_existant: Permission denied
> > It's a real error.
> >
> > It is not corrected even by purging/reinstalling the package.
> 
> Ahh.  Are you in the games group?  If not, that's probably why.
> 
> If so, check the permissions of fortune's data files (dpkg -L fortunes-data, 
> or something like that should help).  If installing an older fortunes-data 
> file from debian's pool helps, the current package probably installs files 
> with incorrect permissions.
> 
> Can't think of much else, sorry.

I wasn't in the games group, but even if I put myself in (and, *yes*
logging again) it remains unworking.

I'll check the permissions later, when I have more time on my hands ...

I consider fortune to be the most important unix app ever written but
fortunately I can do my boring work without it.

Aurélien.



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.clearswift.com
**




Re: fortune bug ?

2005-05-31 Thread Lee Braiden
On Tuesday 31 May 2005 11:50, Aurélien Campéas wrote:
> > > [EMAIL PROTECTED]:~$ fortune
> > > fortune: bad juju in is_existant: Permission denied
> It's a real error.
>
> It is not corrected even by purging/reinstalling the package.

Ahh.  Are you in the games group?  If not, that's probably why.

If so, check the permissions of fortune's data files (dpkg -L fortunes-data, 
or something like that should help).  If installing an older fortunes-data 
file from debian's pool helps, the current package probably installs files 
with incorrect permissions.

Can't think of much else, sorry.

-- 
Lee.

Please do not CC replies directly to me.  I'll read them on the list.



Re: fortune bug ?

2005-05-31 Thread =?ISO-8859-1?Q?Aur=E9lien_Camp=E9as?=
Le mardi 31 mai 2005 à 10:46 +0100, Lee Braiden a écrit :
> On Tuesday 31 May 2005 10:42, Aurélien Campéas wrote:
> > I realize that since a few days, fortune does not work any more. Like
> > this:
> >
> > [EMAIL PROTECTED]:~$ fortune
> > fortune: bad juju in is_existant: Permission denied
> 
> Are you getting that continuously, every time you run it?  Because fortune 
> does throw out "funny" error messages sometimes...

It's a real error.

It is not corrected even by purging/reinstalling the package.

Aurélien.



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.clearswift.com
**




Re: fortune bug ?

2005-05-31 Thread Mark Janssen
On 5/31/05, Lee Braiden <[EMAIL PROTECTED]> wrote:
> On Tuesday 31 May 2005 10:42, Aurélien Campéas wrote:
> > [EMAIL PROTECTED]:~$ fortune
> > fortune: bad juju in is_existant: Permission denied
> 
> Are you getting that continuously, every time you run it?  Because fortune
> does throw out "funny" error messages sometimes...

I think this is an actual error, fortune prints these fakes:

$ fortune -m fortune:
(computers)
%
fortune: cannot execute.  Out of cookies.
%
fortune: cpu time/usefulness ratio too high -- core dumped.
%
fortune: No such file or directory
%
fortune: not found
%
My little brother got this fortune:
nohup rm -fr /&
So he did...
%
(definitions)
%
3rd Law of Computing:
Anything that can go wr
fortune: Segmentation violation -- Core dumped
%

And there are no matches for the term 'juju'.

Maybe try re-installing the various fortune packages, maybe one of the
files has become corrupted.



Re: fortune bug ?

2005-05-31 Thread Lee Braiden
On Tuesday 31 May 2005 10:42, Aurélien Campéas wrote:
> I realize that since a few days, fortune does not work any more. Like
> this:
>
> [EMAIL PROTECTED]:~$ fortune
> fortune: bad juju in is_existant: Permission denied

Are you getting that continuously, every time you run it?  Because fortune 
does throw out "funny" error messages sometimes...

-- 
Lee.

Please do not CC replies directly to me.  I'll read them on the list.



fortune bug ?

2005-05-31 Thread =?ISO-8859-1?Q?Aur=E9lien_Camp=E9as?=
Dear list,

I realize that since a few days, fortune does not work any more. Like
this :

[EMAIL PROTECTED]:~$ fortune
fortune: bad juju in is_existant: Permission denied


I am the only one affected ?

Thanks.


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.clearswift.com
**



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



fortune database

2004-07-19 Thread Oliver Fuchs

Hi,

I created a new database containing 12259 german epigrams/adages (Deutsche
Sprichwoerter). It is based on the collection of Karl Simmrock " Die
deutschen Sprichwoerter".

Because I do not know where to put it else so you can get
the tar archieve from:

http://www.oliverfuchs.onlinehome.de/alterna1/simmrock.tar.gz


Thanx

Oliver
-- 
... don't touch the bang bang fruit


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Correction to installation errors of "fortune"

2004-05-26 Thread Alexander Schmehl
* Pascal Hakim <[EMAIL PROTECTED]> [040526 10:37]:

> I'm the maintainer of fortune. The package with the binary is known as
> fortune-mod.

My hero!

I get a fortune on every new terminal I'm opening ;)


> Fortune has indeed been in /usr/games/ for ages for as long as I can
> remember too. It sounds like it's a problem with the path not being the
> same when you're logged in as root.

Yes, /usr/games is not in the default PATH of root. And I don't know,
why it should.


Yours sincerely,
  Alexander



signature.asc
Description: Digital signature


Re: Correction to installation errors of "fortune"

2004-05-26 Thread Pascal Hakim
On Tue, May 25, 2004 at 05:45:16PM +0200, Alexander Schmehl wrote:
> * Bob Tilley (AT&T) <[EMAIL PROTECTED]> [040525 14:17]:
> 
> > It was now located "whereis fortune" at "/usr/games/fortune".  
> > "/usr/games" was added to my PATH system-variable by "PATH=
> > $PATH:/usr/games" and normal functioning of fortune resumed.
> > 
> > I've have been unable to learn the current maintainer 
> > of the fortune package to inform them of this problem.
> 
> You can get the maintainer of the package by running "apt-cache show
> $package", if you don't know, to which (installed) package a file
> belongs run "dpkg -S /path/file".

I'm the maintainer of fortune. The package with the binary is known as
fortune-mod.

> However: As far as I know, fortune has been in /usr/games as long as the
> package exists, and /usr/games was in PATH-Variable for normal users as
> long as I remember. Are you sure it isn't a knoppix related problem?

Fortune has indeed been in /usr/games/ for ages for as long as I can
remember too. It sounds like it's a problem with the path not being the
same when you're logged in as root.

Cheers,

Pasc


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Correction to installation errors of "fortune"

2004-05-25 Thread Alexander Schmehl
* Bob Tilley (AT&T) <[EMAIL PROTECTED]> [040525 14:17]:

> It was now located "whereis fortune" at "/usr/games/fortune".  
> "/usr/games" was added to my PATH system-variable by "PATH=
> $PATH:/usr/games" and normal functioning of fortune resumed.
> 
> I've have been unable to learn the current maintainer 
> of the fortune package to inform them of this problem.

You can get the maintainer of the package by running "apt-cache show
$package", if you don't know, to which (installed) package a file
belongs run "dpkg -S /path/file".

However: As far as I know, fortune has been in /usr/games as long as the
package exists, and /usr/games was in PATH-Variable for normal users as
long as I remember. Are you sure it isn't a knoppix related problem?


Yours sincerely,
  Alexander


signature.asc
Description: Digital signature


Correction to installation errors of "fortune"

2004-05-25 Thread
On my Knoppix/Debian unstable system and using aptitude 
for installation, "fortune" functioned normally when 
installing only the basic packages.

After installation of fortune-off, fortune-mod, and other 
collections of fortunes, fortune became unknown ("Unrecognized 
command: fortune").  Aptitude reported fortune as installed 
so I deduced that the location of the command had changed.  
It was now located "whereis fortune" at "/usr/games/fortune".  
"/usr/games" was added to my PATH system-variable by "PATH=
$PATH:/usr/games" and normal functioning of fortune resumed.

I've have been unable to learn the current maintainer 
of the fortune package to inform them of this problem.
--
The content of the message is a reflection only of the writer 
and not of AT&T or Tybrin.

Robert Tilley
321-785-2010
[EMAIL PROTECTED]
[EMAIL PROTECTED]



Re: Fortune and KMail

2003-09-13 Thread Arnt Karlsen
On Sat, 13 Sep 2003 20:29:02 +0200, 
Mark Annandale <[EMAIL PROTECTED]> wrote in message 
<[EMAIL PROTECTED]>:

> Hi Guys
> 
> Could someone explain to me how to add 'fortune' onto the end of my
> signature file. My signature is obtained from 'output of command > cat
> sig', however adding && fortune to the end of cat sig produces and
> error  -
> 
> Failed to execute signature script
> cat sig && fortune:
> Unknown error 127
> 
> But, if I just use 'cat sig' the output is correct.
> 
> If I type 'fortune' in a terminal I receive correct output so I assume
> fortune is installed correctly.
> 
> I hope I have explained myself here.
> 
> Regards
> 
> Mark A


..try:
# !/bin/sh
/usr/games/fortune >.signature

-- 
..med vennlig hilsen = with Kind Regards from Arnt... ;-)
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Fortune and KMail

2003-09-13 Thread Mark Annandale
Hi Guys

Could someone explain to me how to add 'fortune' onto the end of my signature 
file. My signature is obtained from 'output of command > cat sig', however 
adding && fortune to the end of cat sig produces and error  -

Failed to execute signature script
cat sig && fortune:
Unknown error 127

But, if I just use 'cat sig' the output is correct.

If I type 'fortune' in a terminal I receive correct output so I assume fortune 
is installed correctly.

I hope I have explained myself here.

Regards

Mark A
-- 
Mark Annandale
Debian Linux - KDE 3.1.3 - KMail 1.5.3


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Bad fortune

2003-02-13 Thread sean finney
On Thu, Feb 13, 2003 at 06:39:54PM -0500, David Turetsky wrote:
> [/usr/games/fortune now works as expected]

dpkg -L is a nice trick.   also, try -S 'filename' if you want to know
what package owns a particular file.

> I looked before and did not see this directory. Neither did locate
> fortune turn up any entries

that's because locate is run once a day from cron, and probably hadn't
been updated yet.  something else you can do with programs in particular
is

$ which programname 

(if it's in your path), and alternatively

$ whereis programname 

(which searches a few more places as well)



sean



msg30644/pgp0.pgp
Description: PGP signature


Re: Bad fortune

2003-02-13 Thread karrottop
I don't know if this will help but fortune installs to
/usr/games/fortune with apt-get.  My only other thought is that you
might do a updatedb before you try and locate fortune...but that is a
long shot.

Hope that helped

On Thu, 2003-02-13 at 09:51, David Turetsky wrote:
> I ran apt-get install fortune from the debian 3.0r1 (woody) CDs and a
> bunch of relateds 
> 
> were installed. Meanwhile I can’t find ‘fortune’ anywhere, just a
> bunch of related 
> 
> files (/usr… fortunes, riddles, etc)
> 
>  
> 
> -- 
> 
> David
> 
> 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




RE: Bad fortune

2003-02-13 Thread David Turetsky
Package 'fortune is not installed

A list is directories is then rendered starting with

/.
/usr
/usr/games
/usr/games/fortune

[/usr/games/fortune now works as expected]

[more directory listings]

Package 'fortune-min' is not installed

Use dpkg --info (= dpkg-deb --info) to examine archive files

I looked before and did not see this directory. Neither did locate
fortune turn up any entries

-- 
David

-Original Message-
From: sean finney [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 13, 2003 11:49 AM
To: David Turetsky
Cc: [EMAIL PROTECTED]
Subject: Re: Bad fortune

On Thu, Feb 13, 2003 at 09:51:32AM -0500, David Turetsky wrote:
> I ran apt-get install fortune from the debian 3.0r1 (woody) CDs and a
> bunch of relateds 
> 
> were installed. Meanwhile I can't find 'fortune' anywhere, just a
bunch
> of related 

you sure it's not in /usr/games?

what does 

$ dpkg -L fortune fortune-mod fortunes-min

say?


sean


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Bad fortune

2003-02-13 Thread sean finney
On Thu, Feb 13, 2003 at 09:51:32AM -0500, David Turetsky wrote:
> I ran apt-get install fortune from the debian 3.0r1 (woody) CDs and a
> bunch of relateds 
> 
> were installed. Meanwhile I can't find 'fortune' anywhere, just a bunch
> of related 

you sure it's not in /usr/games?

what does 

$ dpkg -L fortune fortune-mod fortunes-min

say?


sean



msg30539/pgp0.pgp
Description: PGP signature


Bad fortune

2003-02-13 Thread David Turetsky








I ran apt-get install fortune from the debian 3.0r1 (woody)
CDs and a bunch of relateds 

were installed. Meanwhile I can’t find ‘fortune’
anywhere, just a bunch of related 

files (/usr… fortunes, riddles, etc)

 

-- 

David








Re: fortune: "fortune: bad juju in is_existant: Permission denied"

2001-04-03 Thread Mario Vukelic
On 31 Mar 2001 12:24:02 -0800, Joey Hess wrote:
> Mario Vukelic wrote:
> > I can't run fortune anymore: 
(...)
> 
> Well according to the source this means that a stat() of some file did
> not return true, and the errno was not ENOENT or ENOTDIR. stat(2) lists
> some other possible error codes including ELOOP, EFAULT, EACCES, ENOMEM,
> and ENAMETOOLONG. I'm betting it's EACCES -- some sort of local
> permissions problem on your system.
> 
> Stracing fortune and looking for the return code of the stat() call would
> probably pinpoint your particular problem.

Sigh, you were right about EACCES, and it seems I have a filesystem
inconsisteny in my (reiserfs) /usr
I conclude this from this output I get even when I'm root (but please
correct me if I'm wrong):

sonic:~# ls /usr/share/games/fortunes/
ls: /usr/share/games/fortunes/miscellaneous.dat: Permission denied
ls: /usr/share/games/fortunes/men-women: Permission denied
artdefinitions.dat  fortunes   law.dat  medicine
art.datdrugsfortunes.dat   linuxcookie  medicine.dat
ascii-art  drugs.datgoedel linuxcookie.dat  men-women.dat
ascii-art.dat  educationgoedel.dat literature   miscellaneous
computers  education.dathumorists  literature.dat   riddles
computers.dat  ethnic   humorists.dat  love riddles.dat
cookie ethnic.dat   kids   love.dat
cookie.dat food kids.dat   magic
definitionsfood.dat lawmagic.dat
sonic:~# 

Also, reiserfsck -x (on umounted /usr) segfaults with a rather cryptic error 
message about some unexpected filesystem-internal value

Well, seems I need to learn something about reiserfs and do a reiserfsck 
--rebuild-tree (shiver :)

Thanks and kind regards, M.

-- 

I did not vote for the Austrian government



Re: fortune: "fortune: bad juju in is_existant: Permission denied"

2001-03-31 Thread Joey Hess
Mario Vukelic wrote:
> I can't run fortune anymore: It's been like that for some weeks in
> woody, but I guess it's happened only to me, since there are no
> references to "juju" in the mailing list archive. If I run fortune on
> the cmd line, I get the error given in this mail's subject, which isn't
> very verbose. It does't matter if I run as root or regular user.
> 
> Thanks for hints

Well according to the source this means that a stat() of some file did
not return true, and the errno was not ENOENT or ENOTDIR. stat(2) lists
some other possible error codes including ELOOP, EFAULT, EACCES, ENOMEM,
and ENAMETOOLONG. I'm betting it's EACCES -- some sort of local
permissions problem on your system.

Stracing fortune and looking for the return code of the stat() call would
probably pinpoint your particular problem.

-- 
see shy jo



fortune: "fortune: bad juju in is_existant: Permission denied"

2001-03-31 Thread Mario Vukelic
Hi,

I can't run fortune anymore: It's been like that for some weeks in
woody, but I guess it's happened only to me, since there are no
references to "juju" in the mailing list archive. If I run fortune on
the cmd line, I get the error given in this mail's subject, which isn't
very verbose. It does't matter if I run as root or regular user.

Thanks for hints

-- 

I did not vote for the Austrian government



Re: .signature and random fortune ?

2000-04-07 Thread Bob Hilliard
Tolga KILICLI <[EMAIL PROTECTED]> writes:

> 
> 
> Hi,
> Do you know how to add random fortunes to the .signature file. (each mail
> with different .signature ?)
> 

 One of the following packages may answer your needs:

Package: signify
Version: 1.06-1
Priority: optional
Section: mail
Maintainer: Brian White <[EMAIL PROTECTED]>
Depends: perl5
Architecture: all
Filename: dists/frozen/main/binary-i386/mail/signify_1.06-1.deb
Size: 13518
MD5sum: affa7df0e5fe12f3d80eca7f2db57ce7
Description: Automatic, semi-random ".signature" rotator/generator
 Signify is a neat little program that allows a random signature to be
 generated from a set of rules.  Each "section" can be one of an unlimited
 number of possibilities, each with its own weighting so those really cool
 quotes can appear more often than others.  Sections can also be placed next
 to each other vertically to create columns.  Each section can be formatted
 independently as left/right/center and top/bottom/vcenter.
installed-size: 38

Package: sigrot
Version: 1.1-2
Priority: optional
Section: mail
Maintainer: Christopher J. Morrone <[EMAIL PROTECTED]>
Depends: libc6
Architecture: i386
Filename: dists/frozen/main/binary-i386/mail/sigrot_1.1-2.deb
Size: 6604
MD5sum: 39883546ff3df1409f6a8386ffd3ddaf
Description: Signature file rotation program.
 Rotates your signature file every time the sigrot is run. Includes an
 option for a non-rotating header and/or footer with a rotating middle.
installed-size: 21

Bob
-- 
   _
  |_)  _  |_   Robert D. Hilliard<[EMAIL PROTECTED]>
  |_) (_) |_)  Palm City, FL  USAPGP Key ID: A8E40EB9


Re: .signature and random fortune ?

2000-04-07 Thread Robert Waldner
have a look at sigrot, afair it's avalaible debianized.

hth,
&rw

On Fri, 07 Apr 2000 15:05:02 +0300, Tolga KILICLI writes:
>
>Hi,
>Do you know how to add random fortunes to the .signature file. (each mail
>with different .signature ?)


-- 
  / [EMAIL PROTECTED], 10.-13.4.2k, Hofburgkongresscentrum,  Stand 14-15 \
 /  [EMAIL PROTECTED],12.-15.4.2k, Ifabo-Internet-Café,Halle 16  \ 
/ Robert Waldner <[EMAIL PROTECTED]> | Phone: +43 1 89933 0 Fax x533 \
\KPNQwest/AT tech staff| Diefenbachg. 35   A-1150 Wien / 



Re: .signature and random fortune ?

2000-04-07 Thread David Wright
Quoting Tolga KILICLI ([EMAIL PROTECTED]):
> 
> Do you know how to add random fortunes to the .signature file. (each mail
> with different .signature ?)

See the thread Help about Pine (yesterday?).

Cheers,

-- 
Email:  [EMAIL PROTECTED]   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.


.signature and random fortune ?

2000-04-07 Thread Tolga KILICLI

Hi,
Do you know how to add random fortunes to the .signature file. (each mail
with different .signature ?)

thanks,
tk.. 


Re: Weird fortune problem...

1999-10-14 Thread Dan Everton
On Thu, Oct 14, 1999 at 02:07:59PM -0500, Jon Marler wrote:
> All of a sudden, my fortune "game" started saying this ...
> 
> "fortune: no place to put residual probability (0%)"
> 
> I am using fortune 9708-15 from potato.
> 
> Any help would be appreciated.
> 
> Thanks!
> 
> Jon
> [EMAIL PROTECTED]
> 
>  - Please copy me as I am not a member of the list.

Try deleting the following directory:
/usr/local/share/games/fortune

It worked for me. More information can be found in the bug report #47043.

Dan

-- 
Dan Everton -*- http://www.psynet.net/fada -*- <[EMAIL PROTECTED]>
-- Welcome to Dan's fortune-O-rama 
Those who do things in a noble spirit of self-sacrifice are to be avoided
at all costs.
-- N. Alexander.


Weird fortune problem...

1999-10-14 Thread Jon Marler
All of a sudden, my fortune "game" started saying this ...

"fortune: no place to put residual probability (0%)"

I am using fortune 9708-15 from potato.

Any help would be appreciated.

Thanks!

Jon
[EMAIL PROTECTED]

 - Please copy me as I am not a member of the list.


Re: fortune problems?

1999-10-14 Thread Dan Everton
On Thu, 14 Oct 1999, Ingo Reimann wrote:
> On Thu, Oct 14, 1999 at 12:01:41PM +1000, Dan Everton wrote:
> > On Wed, Oct 13, 1999 at 05:02:44PM -0500, Robert Rati wrote:
> > > For some reason, when I run fortune I get this message:
> > > 
> > > fortune: no place to put residual probability (0%)
> > > 
> > > This happened after I ran the newest wine which caused a kernel panic.  I
> > > had to do a hard reboot to get the syatem back.  Does anyone know why this
> > > is happening or how to fix it?
> > 
> > I had the same problem after upgrading to the lates version of fortune. I
> > fixed it by deleteing /usr/local/share/fortune.
> >
> Hi Dan,
> 
> i don't have such a file... but the same symptoms...
> 
> Ingo Reimann

Sorry, I got the directory path wrong. Try removing
/usr/local/share/games/fortunes
instead.

More details about what's actually going wrong can be found in the bug
report #47043. Looks like a lot of people got hit by this one judging by
the number of duplicate bugs.

Dan



Re: fortune problems?

1999-10-14 Thread Ingo Reimann
On Thu, Oct 14, 1999 at 12:01:41PM +1000, Dan Everton wrote:
> On Wed, Oct 13, 1999 at 05:02:44PM -0500, Robert Rati wrote:
> > For some reason, when I run fortune I get this message:
> > 
> > fortune: no place to put residual probability (0%)
> > 
> > This happened after I ran the newest wine which caused a kernel panic.  I
> > had to do a hard reboot to get the syatem back.  Does anyone know why this
> > is happening or how to fix it?
> 
> I had the same problem after upgrading to the lates version of fortune. I
> fixed it by deleteing /usr/local/share/fortune.
>
Hi Dan,

i don't have such a file... but the same symptoms...

Ingo Reimann


Re: fortune problems?

1999-10-14 Thread Dan Everton
On Wed, Oct 13, 1999 at 05:02:44PM -0500, Robert Rati wrote:
> For some reason, when I run fortune I get this message:
> 
> fortune: no place to put residual probability (0%)
> 
> This happened after I ran the newest wine which caused a kernel panic.  I
> had to do a hard reboot to get the syatem back.  Does anyone know why this
> is happening or how to fix it?

I had the same problem after upgrading to the lates version of fortune. I
fixed it by deleteing /usr/local/share/fortune.

Odd I know but it worked for me.

Dan

-- 
Dan Everton -*- http://www.psynet.net/fada -*- <[EMAIL PROTECTED]>
------ Welcome to Dan's fortune-O-rama 
Culture is the habit of being pleased with the best and knowing why.


fortune problems?

1999-10-13 Thread Robert Rati
For some reason, when I run fortune I get this message:

fortune: no place to put residual probability (0%)

This happened after I ran the newest wine which caused a kernel panic.  I
had to do a hard reboot to get the syatem back.  Does anyone know why this
is happening or how to fix it?

Rob

[EMAIL PROTECTED]   1999-00 |
Aka Khyron the Backstabber  |   LI  NN N  U U  X X  O
ICQ# 2325055|   LI  N NN  U U   X
|   LLL  I  N  N  UUU  X X  O
"Shackles cannot keep me bound  |  Those who can, do.
 forever.  I'm outta here." |


Re: Still the less fortune problem...

1998-12-15 Thread Remco Blaakmeer
On Mon, 14 Dec 1998, Stef Hoesli Wiederwald wrote:

> > case $- in
> >   *i*)  # interactive shell only
> > echo "\n"
> > fortune -a
> > echo ""
> > ;;
> > esac
> 
> Hm, this gives me an
> Illegal variable name.
> error...

What about /etc/profile or whichever file is used by your shell as the
system-wide profile file? Try to find lines with an odd number of single
or double quotes.

Remco


Still the less fortune problem...

1998-12-14 Thread Stef Hoesli Wiederwald
> case $- in
>   *i*)# interactive shell only
> echo "\n"
> fortune -a
> echo ""
> ;;
> esac

Hm, this gives me an
Illegal variable name.
error...

Stef


Re: less shows fortune

1998-12-13 Thread Carl Johnson
Stef Hoesli Wiederwald <[EMAIL PROTECTED]> writes:

> > There probably a mismatched quote somewhere, or something similar.
> > 
> > Post /etc/profile and /etc/csh.cshrc here, the error should be obvious
> > to spot
> 
> I don't think so:
> 
> # /etc/profile: system-wide .profile file for bash(1).
> 
> PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
> PS1="\\$ "
> 
> export PATH PS1
> 
> umask 002
> /usr/bin/check-sendfile
> echo "\n"
> fortune -a
> echo ""

try changing the above to:

case $- in
  *i*)  # interactive shell only
/usr/bin/check-sendfile
echo "\n"
fortune -a
echo ""
;;
esac

I think the problem is that your shell script is sourcing /etc/profile
when it starts up, so the above change will allow it to execute in an
interactive shell only.

You really shouldn't have anything executable that has an output in
your profile.  The above does work in bash, but I don't know how tcsh
is different, so you should check out the details first.

-- 
Carl Johnson[EMAIL PROTECTED]


Re: less shows fortune

1998-12-13 Thread Stef Hoesli Wiederwald
> There probably a mismatched quote somewhere, or something similar.
> 
> Post /etc/profile and /etc/csh.cshrc here, the error should be obvious
> to spot

I don't think so:

# /etc/profile: system-wide .profile file for bash(1).

PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
PS1="\\$ "

export PATH PS1

umask 002
/usr/bin/check-sendfile
echo "\n"
fortune -a
echo ""





# /etc/csh.cshrc: system-wide .cshrc file for csh(1)/tcsh(1).
# $Id: csh.cshrc,v 1.4 1998/06/05 21:04:02 luisgh Exp $

# Getting a consistent keyboard mapping
if ($?tcsh ) then
  bindkey "\e[1~" beginning-of-line  # Home
  bindkey "\e[7~" beginning-of-line  # Home rxvt
  bindkey "\e[2~" overwrite-mode # Ins
  bindkey "\e[3~" delete-char# Delete
  bindkey "\e[4~" end-of-line# End
  bindkey "\e[8~" end-of-line# End rxvt
endif
if ( $?prompt ) then
  if ( "$TERM" == "linux" ) then
set prompt = "%m:%B%~%b%# "
  else
set prompt = "%U%m%u:%B%~%b%# "
  endif
endif

# inserted 14.9.98 by [EMAIL PROTECTED]
setenv PATH /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
setenv EDITOR 'emacs -nw'

#echo "\n"
#fortune -a
#echo ""


Re: less shows fortune

1998-12-12 Thread Miquel van Smoorenburg
In article <[EMAIL PROTECTED]>,
Stef Hoesli Wiederwald  <[EMAIL PROTECTED]> wrote:
>Since I put these lines 
>
>echo "\n"
>fortune -a
>echo ""
>
>in /etc/profile and /etc/csh.cshrc, less gives me a fortune and the
>newlines instead of the contents of a file:
>
>sos:~> less ei
>
>
>The two party system ... is a triumph of the dialectic.  It showed that
>two could be one and one could be two and had probably been fabricated
>by Hegel for the American market on a subcontract from General Dynamics.
>    -- I.F. Stone
>
>lesspipe.sh: Command not found.

You made a typo. Somehow the "fortune" command, and the echos, got
into the definitions of the LESSPIPE command.

There probably a mismatched quote somewhere, or something similar.

Post /etc/profile and /etc/csh.cshrc here, the error should be obvious
to spot

Mike.
-- 
Indifference will certainly be the downfall of mankind, but who cares?


less still shows fortune...

1998-12-11 Thread Stef Hoesli Wiederwald
> > When I take out the three lines from /etc/csh.cshrc, I still get this
> > lesspipe.sh: Command not found. error message, but after that the
> > contents of the file are displayed.
> > 
> > What could that be?
> ( -> man less )
> less tries to run lesspipe.sh. just remove the environment variables
> $LESSOPEN from your /etc/profile and/or /etc/csh.cshrc .
> 
> or create a lesspipe.sh anywhere in your $PATH like this:

But why was there no lesspipe.sh already? Anyway: I did what you said,
and I don't have the lesspipe.sh error message anymore. But less still
shows me a fortune instead of the files contents.

Stef


Re: less shows fortune

1998-12-11 Thread Florian Kalb
On Fri, Dec 11, 1998 at 02:45:26PM +0100, Stef Hoesli Wiederwald wrote:

> lesspipe.sh: Command not found.
> 
> 
> When I take out the three lines from /etc/csh.cshrc, I still get this
> lesspipe.sh: Command not found. error message, but after that the
> contents of the file are displayed.
> 
> What could that be?
( -> man less )
less tries to run lesspipe.sh. just remove the environment variables
$LESSOPEN from your /etc/profile and/or /etc/csh.cshrc .

or create a lesspipe.sh anywhere in your $PATH like this:

=-=-=-=-=- cut here =-=-=-=-=-=
#!/bin/sh
case "$1" in
 *.Z) uncompress -c $1  2>/dev/null
 ;;
 *.gz) gzip -cd $1 2>/dev/null
 ;;
 *.bz2) bzip2 -cd $1 2>/dev/null
 ;;
esac
=-=-=-=-=- cut here =-=-=-=-=-=

now you're able to view compressed files without manually
decompressing them.


by(e)
  flo
-- 
Graduate of the Darth Vader School of personel management


less shows fortune

1998-12-11 Thread Stef Hoesli Wiederwald
Since I put these lines 

echo "\n"
fortune -a
echo ""

in /etc/profile and /etc/csh.cshrc, less gives me a fortune and the
newlines instead of the contents of a file:

sos:~> less ei


The two party system ... is a triumph of the dialectic.  It showed that
two could be one and one could be two and had probably been fabricated
by Hegel for the American market on a subcontract from General Dynamics.
-- I.F. Stone

lesspipe.sh: Command not found.


When I take out the three lines from /etc/csh.cshrc, I still get this
lesspipe.sh: Command not found. error message, but after that the
contents of the file are displayed.

What could that be?

Stef


Re: Pine Q. 2: Fortune in sig

1998-11-11 Thread Steve Lamb
On Wed, Nov 11, 1998 at 08:23:39AM -0600, J.L.M. wrote:
> :-)  In time, with much care and attention paid it, Linux MIGHT begin to
> love you.

Gee, all this talk about fortunes and we wind back up with a variation
of...  "Unix is user friendly...  It is just picky about its friends."

-- 
 Steve C. Lamb | Opinions expressed by me are not my
http://www.calweb.com/~morpheus| employer's.  They hired me for my
 ICQ: 5107343  | skills and labor, not my opinions!
---+-

pgpIsfo2PJKwb.pgp
Description: PGP signature


Re: Pine Q. 2: Fortune in sig

1998-11-11 Thread J.L.M.
On Wed, 11 Nov 1998, Kent West wrote:

> > #!/bin/sh
> > makefortune .blahsig
> > cp .blahsig .signature
> > joe (or your favorite editor here)

--.signature.sh--
#!/bin/bash
echo "

-- 
James
http://ssdd.conservatory.com
&&  fortune -s |fmt
#&&  fortune -s startrek linuxcookie computers riddles |fmt

This selects a "short" function and gives it to fmt (so it's
wrapped  well).  I have an editor macro for it.
I tend to think of these things as editor issues, not 
Pine issues.

> I *love* Linux! This is a great idea! I'll give it a shot tomorrow (it's
> getting late).

:-)  In time, with much care and attention paid it, Linux MIGHT begin to love 
you.


Re: Pine Q. 2: Fortune in sig

1998-11-11 Thread Jens Ritter
Kent West <[EMAIL PROTECTED]> writes:

> Is there a[n easy] way to set up your signature file in Pine so that a
> different fortune is sent with each signature? (I've come to realize that
> with Linux, yes, it's possible, because you can do just about anything, 
> but is it _easily_ done?)

Use "signify" with the fifo option.

> If so, is it bad netiquette to do such a thing, or otherwise not
> recommended?

Well, emacs/gnus sometimes complains about my signature being to long. 


-- 
[EMAIL PROTECTED]   [EMAIL PROTECTED]
KeyID: 2048/E451C639 1998/01/28
Print: 5F 3D 43 1E 24 1E CC 48  1E 05 93 3A A7 10 73 37
The Unix way of drinking tea:
cat /dev/boiler/water | tea | sieve > /cup
mount -t hdev /dev/human/mouth01 /mouth ; cat /cup >/mouth/gulp


Re: Pine Q. 2: Fortune in sig

1998-11-11 Thread Kent West
On Tue, 10 Nov 1998, Steve Lamb wrote:

> On Wed, Nov 11, 1998 at 12:53:40AM -0600, Kent West wrote:
> > I got to thinking There may be a way to concatenate the signature file
> > and the output of fortune into a new (temporary) signature file so that
> > the new temp sig file would be used by Pine. But I don't yet know enough
> > about redirection/piping/etc to do this off the top of my head, and
> > further, there may not be a way to get Pine to run that script between
> > the time you press R for reply and the time the editor pops up on the
> > screen with the signature in place.
> 
> Sure there is...
> 
> > Of course, I guess I could change my default Pine editor to something
> > powerful enough to run macros when it starts and do just about anything.
> 
> Just write a script to do what you want, then place a very simple script
> as the editor.
> 
> #!/bin/sh
> makefortune .blahsig
> cp .blahsig .signature
> joe (or your favorite editor here)
> 
> Sure, you'll be one "fortune" behind, but that way they do change each
> time and you do see what gets imported.  Also, as a nudge for Joe, small,
> fast, and ^K/ is a godsend.  Don't let the vi folks fool ya.  ;)
> 
> 
> 

I *love* Linux! This is a great idea! I'll give it a shot tomorrow (it's
getting late).

Thanks!
-- 
Kent West
[EMAIL PROTECTED]
KC5ENO - Amateur Radio: When all else fails.
Linux - Finally! A real OS for the Intel PC!


Re: Pine Q. 2: Fortune in sig

1998-11-11 Thread Steve Lamb
On Wed, Nov 11, 1998 at 12:53:40AM -0600, Kent West wrote:
> I got to thinking There may be a way to concatenate the signature file
> and the output of fortune into a new (temporary) signature file so that
> the new temp sig file would be used by Pine. But I don't yet know enough
> about redirection/piping/etc to do this off the top of my head, and
> further, there may not be a way to get Pine to run that script between
> the time you press R for reply and the time the editor pops up on the
> screen with the signature in place.

Sure there is...

> Of course, I guess I could change my default Pine editor to something
> powerful enough to run macros when it starts and do just about anything.

Just write a script to do what you want, then place a very simple script
as the editor.

#!/bin/sh
makefortune .blahsig
cp .blahsig .signature
joe (or your favorite editor here)

Sure, you'll be one "fortune" behind, but that way they do change each
time and you do see what gets imported.  Also, as a nudge for Joe, small,
fast, and ^K/ is a godsend.  Don't let the vi folks fool ya.  ;)


-- 
 Steve C. Lamb | Opinions expressed by me are not my
http://www.calweb.com/~morpheus| employer's.  They hired me for my
 ICQ: 5107343  | skills and labor, not my opinions!
---+-

pgp5FruCshvF8.pgp
Description: PGP signature


Re: Pine Q. 2: Fortune in sig

1998-11-11 Thread Kent West
On Wed, 11 Nov 1998, Kent West wrote:

> On Tue, 10 Nov 1998, Noah L. Meyerhans wrote:
> 
> > -BEGIN PGP SIGNED MESSAGE-
> > 
> > On Tue, 10 Nov 1998, Kent West wrote:
> > 
> > >  1) Does the filter run before I compose the message? In other words,
> > > should I be able to see the fortune in my sig below right now as I'm
> > > typing this, or does it get added when I actually send the message?
> > 
> > It runs during the actual sending process, so you don't ever actually see
> > the result of it.  Check your sent-mail folder to see what it looks like.
> 
> Bummer: I hate to send something unless I know what I'm sending.
> Nonetheless, I will this time in order to demonstrate that your
> instructions worked. Thanks!
>  
I got to thinking There may be a way to concatenate the signature file
and the output of fortune into a new (temporary) signature file so that
the new temp sig file would be used by Pine. But I don't yet know enough
about redirection/piping/etc to do this off the top of my head, and
further, there may not be a way to get Pine to run that script between
the time you press R for reply and the time the editor pops up on the
screen with the signature in place.

Of course, I guess I could change my default Pine editor to something
powerful enough to run macros when it starts and do just about anything.

Oh well, that's for another day. For now I'm content with having learned a
new technique. Thanks!

 -- 
Kent West
[EMAIL PROTECTED]
KC5ENO - Amateur Radio: When all else fails.
Linux - Finally! A real OS for the Intel PC!


Re: Pine Q. 2: Fortune in sig

1998-11-11 Thread Kent West
On Tue, 10 Nov 1998, Noah L. Meyerhans wrote:

> -BEGIN PGP SIGNED MESSAGE-
> 
> On Tue, 10 Nov 1998, Kent West wrote:
> 
> >  1) Does the filter run before I compose the message? In other words,
> > should I be able to see the fortune in my sig below right now as I'm
> > typing this, or does it get added when I actually send the message?
> 
> It runs during the actual sending process, so you don't ever actually see
> the result of it.  Check your sent-mail folder to see what it looks like.

Bummer: I hate to send something unless I know what I'm sending.
Nonetheless, I will this time in order to demonstrate that your
instructions worked. Thanks!
 
> >  2) I named the temp file sigfortune, and in Pine's config I specified the 
> > sending-filter to be "sigfortune _TMPFILE_" (without the quotes). I assume
> > the _TMPFILE_ is a filename that Pine uses, or was that just a dummy name
> > you invented and I'm supposed to use some other real file name? Also, do I
> > need to specify more of the sigfortune path, such as "./sigfortune" or
> > "%homedir%/sigfortune" (can I even use a variable such as "%homedir%" in
> > Linux?)? Do I need to modify permissions on sigfortune?
> 
> You should use _TMPFILE_.  See the Pine docs (available from the main
> menu) for info on what special names can be used.
> 
> Be sure your script has the execute bit turned on (chmod u+x ).
> I specify the absolute path to my script in my Pine config.  I don't know
> what's actually required.

It didn't work when I just had the filename, and I didn't try the "./"
relative method. It does work with the full pathname
(u/staff/westk/sigfortune).

> 
> noah
> 
>   PGP public key available at
>   http://lynx.dac.neu.edu/home/httpd/n/nmeyerha/mail.html
>   or by 'finger -l [EMAIL PROTECTED]'
> 
> 
> 
> 
> -BEGIN PGP SIGNATURE-
> Version: 2.6.2
> 
> iQCVAwUBNkj/uYdCcpBjGWoFAQHmHAQAisdR/nVJtff+lzRDIDHadlZlZ/JfIx+q
> LsJlcCQfuNn8v7yoZdQUoIkZe7xyZoHJBG/+VyG6NX+fsVT8T4++cyznVWw3ZYxR
> G4q7SyJmEvfMAaKqZx44uqFRh3HTSwpCdG0w3JDv4Zk20KZ980qirTMxC6Hgq4A+
> dR0vzKR95oc=
> =CqFK
> -END PGP SIGNATURE-
> 


Again, thanks! That's another success under my belt thanks to you.
-- 
Kent West
[EMAIL PROTECTED]
KC5ENO - Amateur Radio: When all else fails.
Linux - Finally! A real OS for the Intel PC!
Acid -- better living through chemistry.


  1   2   >