Showing posts with label message. Show all posts
Showing posts with label message. Show all posts

Tuesday, November 4, 2008

Really Simple Keyless Steganography For Linux And Unix

IMPORTANT NOTE: A reader has noted that Blogspot elected to change all my bitmap images to jpg format without renaming them, which, of course, removes the hidden message just as surely as resizing does. Apologies for any confusion. I will refrain from posting bitmaps in the future. At least when their actually "remaining" bitmaps is of importance!

Hey again,

Today we're going to take a look at a topic that most people are probably familiar with to one degree or another. To use the dictionary definition, steganography is the art of "hiding a secret message within a larger one in such a way that others can not discern the presence or contents of the hidden message."

I'm sure the title of today's post probably put off more than a few purists who subscribe to the more exact definition that steganography is "the art of writing in cipher, or in characters which are not intelligible except to persons who have the key." If you define steganography that strictly, there can be no such thing as keyless steganography, except in the land where the oxymoron is king ;)

Later in the week, we'll be looking at "really" hiding a message inside another message (or PDF, or picture, etc, as the case may be) so that it can't be encoded or decoded without a key. For now, we're going to look at just how easily one can pass a message along (inside a bitmap image) without using a key. The beauty of this method is that it's incredibly easy to implement and hard to notice if one isn't looking for it.

For our example today, we'll take a standard Windows bitmap tile: The cute, pouting little kitten. Knowing that the little kitty on the right (below) is actually an agent for the delivery of a blatant hidden message, it probably looks a lot more menacing now, right?

innocent kitty stealth kitty


Okay, it doesn't look all that different than the original picture. However, if you blow up the top left section of the bitmap, you can see the difference (Remember; this is a hackish way of hiding a message that is just begging to be found out, so we can make a point ;)

innocent kitty blowup stealth kitty blowup


Now, you should be fairly confident that the kitten on the right is a bit more vicious than the kitten on the left (in the original pictures). We should note that the blown-up sections of the pictures, and even resizing the original bitmap (below), will completely erase our message (This is generally true of most steganographic methods).

stealth kitty large

So what's the secret to lame steganography? It's exactly that: completely lame ;) We could have actually taken some time and spaced the message out somewhat and made it much harder to see the difference in the altered image, but, again, we're trying to make the difference obvious (although not totally).

The secret to doing this sort of "lame steganography" is simple (raw) editing of the binary file. Using "vi" (available on virtually every distro of Linux and Unix imaginable) is one simple way to accomplish this. If you use "vi" to "read" the second kitty (the rightmost in the first set of pictures), you'll notice the message near the end:

<J"?ÅOY?'BiâXÅqdaeY/¤I>O¬¬>->O¬êSl"I>I>O>c,/¤ñÄI>o'_¼ì£,¼,_lIc£(",¼IOH<%>m"i£ª£òíl¼&ja fb` ?%jD,E3Öÿ²_O_II^£+zâ@á8åafri>¦zÆY("frSöÆ'é»jO-YO_#Y
¼I>OIIOÆ,£acIÄY?Ah>NíoåNåkO.åI"¥YCAÅYåqHr OE"&j?'IIE3Nåìä+IçIIJ$!A( THIS CAT WANTS TO EAT YOU ALIVE<I>ê,O"E,`'O>E,l"Ez^r%zE,I>ò¼`'ÑÄo'_Ä'åôåé»?'c£
Y/Oê»<ê3i>L¼ª£I"
å+,§,BA#AEjçSE«-ídQñoÄa¤Y,¼Äqi£?Y±_0Y?I+¼IOOIkIH"A0+r£Qfr<OOåíÜIO-I¬O+z?9dQÅigr+¼?¬Ç'f,É,II3_Ñås_"_S_


Another, more elegant way to do it, is with any hex editor (for instance, Ultra Edit). Just like with vi, you can add the message and read it very simply (in the ASCII conversion column). This is how the output looks in Ultra Edit in the original file:

¡ ‹ì›¼ÏÄRÕ¯´+´¦Š"aYåy&z„qâH+‹


and with the hidden message (hidden in the kitty on the right):

THIS CAT WANTS TO EAT YOU ALIVE‹


You see what I'm saying? That cat is just downright mean ;)

As promised, later this week, we'll take a look at some more advanced forms of steganography. In the meantime, the odds are that no one (except the person you tell) will notice this sort of secret-message-passing. And the best part is that you don't need to invest in any extra software to get the job done :)

Cheers,

, Mike




Iker Landajuela had this suggestion as an alternate solution to getting at information hidden in hex files!


To watch for string inside a BMP picture we can execute:

$ hexdump -C hiddenimage.bmp | grep "hidden message"


Please note that this blog accepts comments via email only. See our Mission And Policy Statement for further details.

Sunday, October 5, 2008

Encoding Regular Emails Into SPAM - Net Humor

Hey There,

The other day, I found what is sure to be one of my favorite programs out on the net; at least until next week ;) Everyone hates getting SPAM and most people generally filter it out. I don't have any actual statistics on the percentage of email users who do what, when, where, why or how to their SPAM, but I'm just guessing most people see certain text in an email and automatically delete it, even if it's from a "friend" (So many virii can parse MS Address Books that a name no longer holds any definite indication of value). Given that this is generally the case, I thought it was interesting that there's actually a site out on the Internet that will take a short message from you and encode it into SPAM. It'll even decode the SPAM it creates, so your buddies can figure out what you've actually sent them.

The SpamMimic web application is available for free use and, at this point, will allow you to encode to your choice of generic SPAM, weakly-encrypted SPAM, fake PGP SPAM and fake Russian SPAM. What will they think of next? ;) The explanation for the "why" of this tool is located on their site's explanation page and, surprisingly enough, it makes some sense. Basically, the theory is: If someone's looking for dirt on you, they'll always go for the encrypted PGP ( or GPG) emails you have (assuming they contain valuable information), but they'll never check the tons of garbage SPAM you have sitting in your email box. They'll breeze right past that, assuming it's the typical garbage that SPAM typically is, and your encoded messages will remain safe and undetected.

It's a lot of fun to try out. For instance, if I enter the phrase:

Hey Guys. Let's get together Friday at 8:00 to burn down the old school house!

The SpamMimic Encoder will translate it into the charming piece of fluff that I put way down at the end of this post because it's so incredibly long. The cool thing is that it can actually decode your secret SPAM message, too. It's pretty inventive and clever. Try and find "school" in the output below. It's actually there. SPOILER ALERT: Think Lewis Carroll ... A Boat Beneath A Sunny Sky ... Acrostics ... No more clues ;)

Give it a shot. I think you might find you like it. It's actually a pretty amusing and novel way to secure your data :)

You can find the decoder here and the following embedded code will take you to the SpamMimic site once you enter your phrase to encode!

Enjoy!






Enter your short secret message:







Spam Encoded Version Of "Hey Guys. Let's get together Friday at 8:00 to burn down the old school house!":

Dear Friend , Especially for you - this breath-taking
news . If you are not interested in our publications
and wish to be removed from our lists, simply do NOT
respond and ignore this mail . This mail is being sent
in compliance with Senate bill 2216 ; Title 6 , Section
303 ! Do NOT confuse us with Internet scam artists
. Why work for somebody else when you can become rich
as few as 96 days . Have you ever noticed most everyone
has a cellphone plus more people than ever are surfing
the web . Well, now is your chance to capitalize on
this . We will help you use credit cards on your website
and process your orders within seconds ! You can begin
at absolutely no cost to you . But don't believe us
. Ms Ames who resides in Washington tried us and says
"My only problem now is where to park all my cars"
. We are a BBB member in good standing ! For God's
sake, order now . Sign up a friend and you'll get a
discount of 20% ! Thank-you for your serious consideration
of our offer . Dear Web surfer ; Especially for you
- this hot news ! If you are not interested in our
publications and wish to be removed from our lists,
simply do NOT respond and ignore this mail . This mail
is being sent in compliance with Senate bill 1625 ,
Title 6 , Section 307 . This is not multi-level marketing
. Why work for somebody else when you can become rich
as few as 98 days . Have you ever noticed more people
than ever are surfing the web and people are much more
likely to BUY with a credit card than cash ! Well,
now is your chance to capitalize on this ! WE will
help YOU deliver goods right to the customer's doorstep
and decrease perceived waiting time by 170% ! The best
thing about our system is that it is absolutely risk
free for you ! But don't believe us . Mr Jones who
resides in North Dakota tried us and says "My only
problem now is where to park all my cars" ! We are
a BBB member in good standing ! We BESEECH you - act
now . Sign up a friend and your friend will be rich
too . Best regards ! Dear Friend , Your email address
has been submitted to us indicating your interest in
our letter ! This is a one time mailing there is no
need to request removal if you won't want any more
! This mail is being sent in compliance with Senate
bill 2116 , Title 2 , Section 301 ! This is not a get
rich scheme . Why work for somebody else when you can
become rich inside 22 months . Have you ever noticed
how long the line-ups are at bank machines and people
love convenience . Well, now is your chance to capitalize
on this . We will help you sell more and decrease perceived
waiting time by 150% ! You can begin at absolutely
no cost to you ! But don't believe us ! Ms Jones who
resides in Louisiana tried us and says "I've been poor
and I've been rich - rich is better" ! This offer is
100% legal . We IMPLORE you - act now . Sign up a friend
and you get half off . Best regards ! Dear Colleague
; You made the right decision when you signed up for
our mailing list ! If you no longer wish to receive
our publications simply reply with a Subject: of "REMOVE"
and you will immediately be removed from our club !
This mail is being sent in compliance with Senate bill
2516 , Title 1 , Section 301 . This is not a get rich
scheme ! Why work for somebody else when you can become
rich inside 12 days ! Have you ever noticed how many
people you know are on the Internet and nearly every
commercial on television has a .com on in it . Well,
now is your chance to capitalize on this . WE will
help YOU decrease perceived waiting time by 180% plus
sell more . You can begin at absolutely no cost to
you ! But don't believe us . Mr Anderson of Hawaii
tried us and says "I was skeptical but it worked for
me" ! We are licensed to operate in all states . Don't
delay - order today ! Sign up a friend and you'll get
a discount of 60% . Thank-you for your serious consideration
of our offer ! Dear Friend ; This letter was specially
selected to be sent to you ! This is a one time mailing
there is no need to request removal if you won't want
any more . This mail is being sent in compliance with
Senate bill 2516 , Title 5 ; Section 305 . This is
NOT unsolicited bulk mail . Why work for somebody else
when you can become rich in 40 DAYS . Have you ever
noticed nobody is getting any younger and nearly every
commercial on television has a .com on in it . Well,
now is your chance to capitalize on this . WE will
help YOU increase customer response by 130% and turn
your business into an E-BUSINESS ! You can begin at
absolutely no cost to you . But don't believe us .
Mr Ames of Alaska tried us and says "Now I'm rich many
more things are possible" ! We assure you that we operate
within all applicable laws . Don't delay - order today
. Sign up a friend and you'll get a discount of 50%
. Thank-you for your serious consideration of our offer
! Dear Sir or Madam , Thank-you for your interest in
our publication . This is a one time mailing there
is no need to request removal if you won't want any
more . This mail is being sent in compliance with Senate
bill 2516 ; Title 4 ; Section 304 . This is different
than anything else you've seen ! Why work for somebody
else when you can become rich within 99 months ! Have
you ever noticed nobody is getting any younger & people
love convenience ! Well, now is your chance to capitalize
on this . We will help you sell more plus sell more
. You are guaranteed to succeed because we take all
the risk ! But don't believe us ! Mrs Simpson of Louisiana
tried us and says "I was skeptical but it worked for
me" ! This offer is 100% legal ! Do not delay - order
today ! Sign up a friend and you'll get a discount
of 40% ! Thank-you for your serious consideration of
our offer .


, Mike




Please note that this blog accepts comments via email only. See our Mission And Policy Statement for further details.

Sunday, August 31, 2008

Computer Humor... Truth In Multi-National Advertising?

Hey again,

You may recall, just a few days ago (I think...), we put out a script do language translation using Yahoo/AltaVista's Babelfish interface. I mentioned, briefly, in that post that, when translating something into a foreign language, I always like to do a "reverse translation" using the translated output from my original query, and see how close the back-translation comes to what I originally wrote. It can make for hilarious results. In fact, unless you're entering something like "hello," it's almost guaranteed to come back goofy when translated back to English (or your native language).

For instance, given a phrase, and randomly picking Italian for the language to translate to-and-from, we would get this:

Original Phrase: Can I get you a drink, officer?

Translated to from English to Italian: Posso ottenergli una bevanda, ufficiale?

Translated back to English: I can ottenergli a drink, official?

What??? Apparently, The Italian "ottenergli" has no literal or idiomatic translation in English. And, if the back translation proves anything, it's that direct translation between languages is fairly weak. The translator (preferably a human ;) needs to be able to translate idiomatic phrases and cultural nuances and adapt them accordingly.

The good news is that this can be even more hilarious for you :) At the Lost In Translation language-bouncing site, it'll put anything you want through multiple language filters and give you back something that more closely resembles gibberish than your original expression.

Even "Hello" is not immune!!! Here is the output (only the final output, although, on the Lost In Translation page it takes you through each step in the translation/back-translation process so you get a play by play on how your original meaning is mashed up and beaten into a sticky pulp of utter nonsense ;)

English Text Entered: Hello
After Final Back-Translation: Today

This makes no sense to me whatsoever (since I don't have a thorough understanding of all of the languages the site uses to "babelize" your original word or sentence). But it does make for some interesting reading. I've found, also, that if you choose not to include "Chinese, Japanese and Korean," your phrase has a better chance at surviving. For instance, "hello there," without the CJK, comes back as "hello there." With CJK, it seems to come back as either "highly there" or "today here" ;)

I, personally, find it very interesting to put my company's catch-phrase in. Any advertising slogan is generally good fodder, as well :)

I've tried to inline the initial "textarea" box here (you will be taken off of blogspot to tashian.com to get your results). If it doesn't work in your browser, you can get to the original Babel page here.

Cheers,



Enter English Text and "Babelize" it:




Include Chinese, Japanese, and Korean


, Mike




Please note that this blog accepts comments via email only. See our Mission And Policy Statement for further details.

Saturday, August 30, 2008

More Funny Unix, Linux and Mainframe Error Messages

Hey again,

Trolling the net some more, I found a whole ton of funny Unix, Linux, mainframe, compiler, VAX, VMS, etc, error messages and I think we have enough material to span two posts here. So, in effect, today's post is also a "live test" of how long a blogspot posting can be. If it overruns, and the bottom gets clipped, you can get the material from its source at TMK.com.

WASTE OF TIME SAVER: ???? I'm starting to sound like these messages ;) Just as a heads up for anyone who visits the source listed above, you'll note that the string of emails they have posted there list the base href of this string of funny errors as http://www.oraclehumor.com/TextIndex/HumorText/errors.txt. I didn't include this as a hypertext link because it just goes to a placeholder page (I'm sure it was something else in its day ;)

I hope you enjoy this copious list of errors. You may recognize a few from our older post on Linux and Unix error messages (mostly the ones near the top), but I've read them all and can guarantee you plenty of fresh material (insofar as it's dated and, of course, only considered fresh in the context of this blog, since these errors were discovered and sent back and forth a while ago.... )

As usual, I've "modified" any and all swear words, to keep the "Safe Search" folk happy. I also removed the email footers and headers from the material. It helped save on space (this post is humungous - over 700 lines - without them), but you can check all that out, again, at the computer error messages list.

Enjoy, and keep smiling. It looks good on ya ;) ...For the record, my favorite is the very last one :)

-------------------------------------------------------------------------

From Version 7 UNIX: "Values of B will give rise to dom."

(no, I don't know what it meant (or if it still exists!)
but it had something to do with removing a directory with
a name beginning with '.'.)
--

----------------------------------------------------------------------

Actually, my all-time favorite is:

FATAL system error #nnnn
CAUSE: We should never get here!

----------------------------------------------------------------------

my favorite happened while i was transfering a file from one
machine to another. after about five minutes the machine still
hasn't copied the file and responds with....

OHHHH.... I give up
>
>Core dumped

----------------------------------------------------------------------

My favorite is the PL/1 compiler message

"COMPILER UNABLE TO ABORT"

This is the message when the compiler has attempted to abort the compilation
five times, and has failed each time.

I don't know what happens next.

----------------------------------------------------------------------

This is what the Univac 2200's os1100 os produces, when I fill my
program file beyond its capacity:

I/O TYPE 01 CODE 22 CONT 12 REENT ADR: 015245 BDI: 403034
PACKET ADR 045301
AN ATTEMPT WAS MADE TO WRITE BEYOND THE MAXIMUM ASSIGNED SPACE
FOR A MASS STORAGE FILE. AN ATTEMPT WAS MADE TO EXPAND A MASS
STORAGE FILE BEYOND THE MAXIMUM ASSIGNED SPACE. A READ
FUNCTION FOR A MASS STORAGE FILE SPECIFIED AN ADDRESS (WORD 5
OF THE I/O PACKET) THAT IS BEYOND THE MAXIMUM ASSIGNED SPACE.
A READ OR WRITE FUNCTION FOR A WORD-ADDRESSABLE MASS STORAGE
FILE SPECIFIED A MASS STORAGE ADDRESS (WORD 5 OF THE I/O
PACKET) AND A TOTAL DATA COUNT. WHEN THE MASS STORAGE ADDRESS
IS ADDED TO THE TOTAL DATA COUNT, THE RESULTING ENDING MASS
STORAGE ADDRESS IS GREATER THAN 2*/35-1. A READ OR WRITE
FUNCTION FOR A SECTOR-FORMATTED MASS STORAGE FILE SPECIFIED A
MASS STORAGE ADDRESS (WORD 5 OF THE I/O PACKET) THAT IS
GREATER THAN 2*/30-1. ADI ONLY: REFERENCE ATTEMPTED BEYOND THE
ASSIGNED FILE WHEN THE FILE IS CONFIGURED AS A FH-432 OR
FH-1782 DRUM.
(Filename: FEK*ONT)
END MAP. ERRORS: 1 TIME: 33.978 STORAGE: 054203/014304/035416/3/0220776
ERR$ TYPE 03 CODE 00 CONT 12 REENT ADR: 045147 BDI: 000015
USER EXECUTED ER ERR$.

The fun thing is that the err.msg.s are usually more like:
I/O TYPE 01 CODE 22 CONT 12 REENT ADR: 015245 BDI: 403034

and a register dump.

----------------------------------------------------------------------

My favorite error message that I have *INCLUDED* in a program was:
ERROR: A really big F### UP has been detected !!

----------------------------------------------------------------------

Disk drive error codes:

Momentaraly writing while seeking
Constantly writing while seeking
Momentaraly writing while reading
.....

----------------------------------------------------------------------

If you run "strings" on the executable of gawk (the messdos version, at
least), you'll see a line with this message:

initstate: not enough state (%d bytes) with which to do jack; ignored.

I've no idea how to get gawk (GNU awk) to spit out this message, but it
appeals, somehow....

----------------------------------------------------------------------

We have a PC clone with a flakey keyboard. It often produces the error
message "Keyboard not present, press any key"


A friend of mine in a compiler writing class produced a compiler with one
error message "you lied to me when you told me this was a program"

----------------------------------------------------------------------

My favorite was "PROGRAMMER GOOFED . . . YOU SHOULD NEVER SEE THIS MESSAGE"

----------------------------------------------------------------------

When I was at Purdue, the IE department had a DG Nova system that would respond
to attempts to run object programs formatted for a DG Eclipse system with the
message:

YOU CAN'T DO THAT!

----------------------------------------------------------------------

A library automation package I once worked on had the message:

Man the Lifeboats! Women and children first! ....

Management was not amused when the first customer called in for
support with this message. :-)

No sense of humor, some of those mgt. types!

----------------------------------------------------------------------

Okay, I know this isn't rec.games.trivia, but...

Can someone tell me the machine and editor which, when instructed to

MAKE WAR

would respond with

MAKE LOVE NOT WAR

(no, I don't know the answer; someone told me about this one once)

----------------------------------------------------------------------

It's TECO, on VAX/VMS, and goes like this:

$ make :== $ sys$system:teco32 make
$ make love
Not war?
*

Long live TECO!!!

----------------------------------------------------------------------

Here are some that I found in reading the string-pool from Knuth's TeX:
[Note that I included these from the actual file, so the one with 'can
fix can fix' below is what's actually there!]


(That makes 100 errors; please try again.)


You can now delete more, or insert, or whatever.


Sorry, I don't know how to help in this situation.
Maybe you should try asking a human?


Sorry, I already gave what help I could...


An error might have occurred before I noticed any problems.


``If all else fails, read the instructions.''


This can't happen.


I'm broken. Please show this to someone who can fix can fix


I can't go on meeting you like this.


One of your faux pas seems to have wounded me deeply...
in fact, I'm barely conscious. Please fix it and try again.


Interruption
You rang?


IMPOSSIBLE.

NONEXISTENT.

ETC.

BAD.


A funny symbol that I can't read has just been input.
Continue, and I'll forget that it ever happened.


I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.


I dddon't go any higher than filll.


Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.

----------------------------------------------------------------------
If things go amiss in Interactive Data Language, as they frequently do,
you get :

Something Rotten in Denmark, Interp Stack Not ALigned

just before the core dumps.

----------------------------------------------------------------------

My own favorite, from one of DEC's less successful versions of the RT11
linker:

<Assorted DEC ID fruitcake> ILLEGAL ERROR

----------------------------------------------------------------------

My first 'C' class was under 4.1 BSD. I forgot to name my
first program with a ".c" suffix; hence the following error message:

% cc prog1
ld: bad magic number


which was a bit confusing to a person who didn't know
about magic numbers or what even 'ld' was....

Then there is my favourite, 'sail', who asks for a scenario
number from a list; if anything but a valid digit is input, 'sail'
simply says "very funny" and exits.

----------------------------------------------------------------------

The most common error message we got from a modula II compiler that I used
at an other company was "Unexpected ';', expecting ';'"

----------------------------------------------------------------------

The early versions of TeX had this classic, which I believe the people at
Stanford even had printed on T-shirts:

You can't do that in horizontal mode.

----------------------------------------------------------------------

My favorite was on the (gasp!) IBM 7094. Occasionally, the COBOL
compiler would die with just:

"COMPILER THWARTED".

This was in '74. I remember, because we had a tenth anniversary
party for the compiler (printed a date in '64 at the top of each
listing).

----------------------------------------------------------------------

>We have a PC clone with a flakey keyboard. It often produces the error
>message "Keyboard not present, press any key"

In which case it's not really compaible. *The* message is

"Keyboard error or no keyboard present. Press F1 to continue."

Pull the keyboard lead out of an IBM (while power of), power on and
laaaaugh.

----------------------------------------------------------------------

A program called "junk" written by a student here at PSU gives the
following error message:

"Argument is bletchful."

On the Commodore Amiga, system crashes are always indicated by a black
window with a red flashing border at the top of the screen with the
words "Guru Meditation" and a number.

----------------------------------------------------------------------

This is probably just another Urban Legend, but ...

A large company had just gotten their first Macintosh. As Macs do, it
had a system crash, and popped up a window with a picture (uhh, excuse
me, icon :-) of a bomb on it.

Management ordered the building evacuated. And called the police ...

----------------------------------------------------------------------

Doing a strings on our version of lint yields this error message; I have
no idea how to get it to spit out... stack overflow, maybe?

"lint's little mind is blown."

----------------------------------------------------------------------

And a graph plotting program on the Amiga uses the red box with:

"Hot Damn! You need more ram!"

When it runs out of memory.

----------------------------------------------------------------------

Not to mention the MPW C compiler (not all of these may be funny to all of you):

String literal too long (I let you have 512 characters, that's 3 more than
ANSI said I should)

.....And the lord said, 'lo, there shall only be case or default labels
inside a switch statement'

a typedef name was a complete surprise to me at this point in your program

You can't modify a constant, float upstream, win an argument with the IRS, or
satisfy this compiler

This struct already has a perfectly good definition

type in (cast) must be scalar; ANSI 3.3.4; page 39, lines 10-11 (I know you
don't care, I'm just trying to annoy you)

Can't cast a void type to type void (because the ANSI spec. says so, that's
why)

Huh ?

can't go mucking with a 'void *'

we already did this function

This label is the target of a goto from outside of the block containing this
label AND this block has an automatic variable with an initializer AND your
window wasn't wide enough to read this whole error message

Call me paranoid but finding '/*' inside this comment makes me suspicious

Symbol table full - fatal heap error; please go buy a RAM upgrade from your
local Apple dealer

----------------------------------------------------------------------

I just got this error message while trying to spell-check a document:

"It seem you are trying to check the output from a word-processor. Not
only does this not make sense, but you would probably damage the file
if you tried so I am not going to let you do this!"

Well, what if I wanted to damage it!!!

----------------------------------------------------------------------

Well just now while switching newsgroups i got this message:

It looks like the active file is messed up. Contact your news administrator
and leave the "bogus" groups alone, and they may come back to normal. Maybe.
^^^^^
----------------------------------------------------------------------

This one is not exactly an error message story, but it's close, so here goes:

Our department is currently developing a Diagnostics package for IBM-PC boxes,
and as one of our intermediate INTERNAL releases, we added a new menu, with
help screen etc, for a set of functions we were about to add. It went through
the normal internal review cycle, with the Dept head spending some time looking
at it as well. Unknown to us, the dept head shipped a copy to a customer to
get their comments. The memo we got back from the customer was quite funny,
and I quote:

The SYSTEM UTILITY menu functions have not been implemented. Therefore
no comments for this. Help for this menu is somebody's idea of a joke!
I can only assume the help will be changed when the menu functions have
been completed

The dept head had never looked at any of the help menus, so he didn't know
what was going on. When he came back to us to find out what the problem was
this is what he found:

Attention K-Mart shoppers: Blue Light special in out SYSTEM UTILITIES
department. for the next 10 days we will be taking requests for the
utilities that you think should be here. Thank you again for shopping
K-Mart.

Needless to say, the dept head was P-Oed, but he ignored the

INTERNAL USE ONLY
disclaimer we had put with the software.

probably not funny, just wierd

----------------------------------------------------------------------

Error messages I've seen:

"Things are not looking good!"

"I didn't think this set of error conditions could ever happen"

"Now deleting all files. Goodbye" Then read a directory in order to make the
hard drive rattle!

When I was new to UNIX -> "file qwerty.asdfg has bad magic."
sounds like a real OS, no rinkydink stuff here?

And I knew some guys that were writing some SW to be used by local
clerical staff, and they got to a this should never happen, but we should
put in a message. Someone said the only person that could ever get into
this deep a mess is Linda, so they put a message that said
"Hi Linda! We wondered how long it would take, for you to mess up this bad."
Well sure enough, six months later,
Linda comes storming in mad as a wet hen, having discovered
that error message.

----------------------------------------------------------------------

One amusing error message that I've seen is produced when you try to
restart the 'nnmaster' news program with the -k option. This should kill
the existing nnmaster so you can restart a new one- But if things go
wrong, you get the message "The running master will not die..."!!

----------------------------------------------------------------------

This would have been a good one; unfortunately, it got caught before
the software went out (last place I worked):

"Shut 'er down, Clancy, she's a-pumpin' mud!"

The perpetrator, to my knowledge, was not found.

----------------------------------------------------------------------

An error has occured on the error logging device.

----------------------------------------------------------------------

I ran a program once which had a menu of commands, including one
to get help. If you pressed the help key you got:

"Out of order"

Very helpful!
In a simialr program, if you typed in an invalid command you got either

"Hey are you talking to me? Try again!"
or
"Invalid command. Feel ashamed for yourself and try again."
or
"Of all the commands available you picked the wrong one!"

----------------------------------------------------------------------

I've never seen this error occur, but I noticed while hacking graphics
routines into the Z80 portion of Radio Shack's (Microsoft's) TRS-80 Model 16
M68000 Xenix. (Note that for a while, this computer supported the largest
Unix (-like) base in the world).

The Z80 handled all the of the IO in the machine and somewhere imbedded in
the code was the message "Shut her down, Scotty, she's sucking mud again!"

----------------------------------------------------------------------

Back in the dark ages (1967 or so) I rewrote a large part of the IBFTC
Fortran compiler for the IBM 7040 to add in most of the goodies which
were becoming available in compilers for other machines. (The primary
models I used were S/360 FORTRAN G and the Sigma 7 Fortran, but I
stole ideas wherever I could.) Keeping track of the data within the
compiler was a complex chore (at the time I was in grad school, and
I was the only staffer on the project...can you say "long hours"?)

I wrote in numerous checks on the internal procedures, but didn't have
much in the way of recovery code if inconsistent data were detected
except to abort with an error message. I swiped the error message from
a GE system; as I wrote it the text was:

ERROR 1164 HOW IN THE HELL DID YOU GET HERE

----------------------------------------------------------------------

Here are a few gems from our Harris VOS system.

We got used to seing this one a lot.

JOBCNTRL ER 512 : WARNING: FILE GENERATED.
>he 512
THE FILE WHICH WAS SPECIFIED AS THE 'COPY TO' OR DESTINATION FILE WAS
NOT THERE AND WAS THEREFORE GENERATED BY JOBCONTROL. IF YOU DID NOT
MEAN TO COPY TO A NEW FILE ELIMINATE THE FILE.

The next few are pretty amusing.

JOBCNTRL ER 76 : NO ACCESS FOR $TOAD SERVICE
>he 76
A USER PROGRAM MADE A CALL TO A $TOAD SERVICE AND THE USER DOES NOT HAVE
THE PROPER ACCESS TO BIT TO USE THAT SERVICE. ACCESS RESTRICTIONS
ARE PLACED ON THE $TOADS SERVICES IN GENERAL, AND $CPRIOR, $PABORT,
AND $SUSP FOR INDIVIDUAL RESTRICTIONS.

JOBCNTRL ER 2167 : NO ACCESS TO VULCANIZE PROGRAM
>he 2167
AN ATTEMPT HAS BEEN MADE TO VULCANIZE A REAL-TIME, MONITOR, OR NRH
TYPE PROGRAM, OR A PROGRAM WITH HIGH ACCESS, ACCOUNTING FILE ACCESS,
OR SUB-SYSTEM ACCESS. THE VULCANIZE REQUEST IS IGNORED BECAUSE THE
USER DOES NOT HAVE ACCESS TO GENERATE SUCH A PROGRAM.

JOBCNTRL ER 2211 : IT'S NOT NICE TO FOOL POP!
>he 2211
YOU JUST TRIED TO FAKE-OUT MOTHER NATURE, AND SHE CAUGHT YOU! SUPER-
VULCAN NOW HAS YOUR NAME ON HIS ENEMY LIST, AND YOU CAN BE CERTAIN THAT
FUTURE ATTEMPTS TO RESOURCE LFN 0,3,OR 6 WILL RESULT IN YOUR BEING
ABORTED, SPINDLED, MANGLED, FOLDED, PUNCHED, DELETED, AND DEALLOCATED.

This last message was often the cause of a sinking feeling late at
night.

JOBCNTRL ER 44 : PROGRAM FILE DESTROYED.
>he 44
THE PROGRAM HAS BEEN ABORTED DUE TO INCONSISTENCIES IN THE INFORMATION
GENERATED BY THE VULCANIZER. THE DISC COPY OF THE PROGRAM MAY HAVE BEEN
DESTROYED OR THE PROGRAM MAY NOT HAVE BEEN RE-VULCANIZED AFTER A MAJOR
SYSTEM RELEASE. IN ANY CASE RE-VULCANIZE THE PROGRAM (RLIBS ALSO).

Fortunately I don't have use this machine anymore :-) :-) :-)

----------------------------------------------------------------------

>From the telephone switch world -

Outputs required from the ALARM SYSTEM
minor alarm
major alarm
critical alarm

alarm system failure alarm

----------------------------------------------------------------------

Trailblazer for the Atari ST has a good one.
You press the [Help] key and the machine laughs at you.

----------------------------------------------------------------------

A friend of mine screwed up somehow when he installed Windows 3.0 on his 386
running DOS 4.01, and now he can hardly run the damn thing without receiving
the following ominous-sounding declaration:

This application has violated system integrity and must be terminated.

No one at Microsoft seems to have heard of it.


Also, I've been told that on VMS, if you attempt to send out e-mail with an
invalid header, it will respond with "You are a charlatan."

----------------------------------------------------------------------

Here's another one:

Occasionally our ultrix system will forget who you are and if you want
to "talk" to another user, the talk daemon will come back with

Go away. You don't exist.

----------------------------------------------------------------------

My OS (QNX) has a command called TSK (short for TASK) which allows you to
view information to do with tasks (code size, id's, son, dad, etc) when
I first saw it a friend of mine showed me the list of commands, of which
one is tsk tsk, I tried it, and it came up with the following message:

Tsk tsk? Have I been a bad computer?

----------------------------------------------------------------------

When I tried to compile a program, (which had compiled nice
on a SUN workstation with both gcc and cc) on one of our old
VAX 11/750 I got the fantastic error

.. line 2706 compiler error: schain botch

(4.3 BSD and cc)

Does anyone have any clue to what that means ?

----------------------------------------------------------------------

In an earlier version of BSD (4.1?) if you did [I think it was a] "who" and
you were the only one on the system, it would print something like

Are you lonely?

Anyone have a better memory of this than I do?

----------------------------------------------------------------------

I remember my old TRS-80 Color Computer. It only had 2-letter
abbrevisations for all errors. The one for "file not open" when
you tried to read/write a file was:

?NO ERROR

It amused me when it happened.

----------------------------------------------------------------------

I got an error message on time while I was copying a file, and the
system seemed to be hung up. Just as I was going to attempt to abort
out the machine came back.


oh........ I give up.... dumping core now!


and the damn thing did !!!!!

----------------------------------------------------------------------

When I was working at Mark Williams Company, I had a midnight project to
take the Atari-ST version of make and put much of the shell functionality
(as far as command line parsing, wild card expansion, and a few built-in
functions) and 'cc' into the make executable, thereby improving the speed
of builds and such. I never did finish this, but I changed the standard
$ make love
Not war?
...
to
$ make love
For heavens sake, doesn't anyone just talk anymore?
...
and considered adding a random selection of other comments, like
Not tonight, I've got a headache.
I beg your pardon?
Your place or mine?
Maybe someone else has managed to hide something like this into a
commercial package.

----------------------------------------------------------------------

When I was in college the entire school was using a single PDP-11/40
under RSTS/E. We had somewhere around 20 DECwriter II's (LA36's) for
use by the students in various places around the campus. One evening
I encountered a terrified beginning FORTRAN student who had encountered
a bug in the FortranIV compiler we were running at the time. Something like:

FORTRAN FATAL INTERNAL ERROR
FATAL COMPILER DAMAGE REPORT FOLLOWS

followed by a page and a half of register and stack dump info. This
student was convinced that he'd broken the compiler, and that he'd be
in big trouble for breaking the compiler for everyone else.

At another point that year, (April 1) someone (I won't say who) edited the
system error message file.


?Invalid Character At Terminal -- Please Go Away
?Unibus timeout -- send in a new quarterback
?Ouch, That HURTS!

And other gems. The computer center manager was not thrilled.

----------------------------------------------------------------------

I worked on a UNIX system that had an editor called e. Once entered
it took control of the screen and required some highly unlikely sequence
of key strokes to exit. It was fairly easy to type e by accident so
to avoid this annoying fate some fellow aliased e to the message
You must be joking.
One day an e user decided to use his terminal and got a surprise.

----------------------------------------------------------------------

> "Error: Error ocurred when attempting to print error message."

I once blew away my VMS shell process by redefining the standard error file
SYS$ERROR (I think, it's been awhile). You execute the command and things
are fine, then you run your pascal program which dies with an error printed
to PAS$ERROR. PAS$ERROR is assigned to SYS$ERROR, which is assigned to
something invalid. The OS wants to tell you that the error channel is
invalid, and what does it try to do? Print on SYS$ERROR. At this point, I
got a hexadecimal register dump(!!) and blown off the system. And this was
on a "commercial" OS. How graceful.

----------------------------------------------------------------------

>"Error #1: Power supply not found"

Or my favorite real error message, found in the User's Manual for the Atari
800 computer, which produced only numbers for errors, so you had to look up
the translation in the manual:

ERROR 0: POWER NOT ON

----------------------------------------------------------------------

Shortly after I started work at the Stephen F. Austin State University computer
center as a support person, we had a coed come in with a very strange problem.
She had been trying to do her FORTRAN homework, and had run across a bug in the
FORTRAN compiler (ANSF on Honeywell CP-V). On her printout was some diagnostic
information, followed by the words:

Break Rob's knuckles.

I've always wondered who Rob was, and what he did wrong.

----------------------------------------------------------------------

>I think it was a remark in the BUGS section of the manpage for tunefs(8),
>something along the lines of "You can tune a filesystem, but you can't tuna
>fish"... Alas, all I can check right now is the Apple Unix man pages, which
>seem to have had the fishy witticisms excised. :-(.

The unix system we used at this university a few years back had two strange man
entries that went something like:

$ man fish

would give you:

Don't say "fish", Bishop. It doesn't mean anything.

and

$ man overboard

would give you:

# # ####### # ###### ###
# # # # # # ###
# # # # # # ###
####### ##### # ###### #
# # # # #
# # # # # ###
# # ####### ####### # ###

BUGS: No life raft

raf

----------------------------------------------------------------------

> My personal favorite: "Oops! Error while handling error!"
> (a concurrent C compiler)

My favorites were from the older Apollo OS's, two of the systems errors
were (I believe I remember them correctly):

Can't find wicked faraway objects.
and
Can't fit 27" tape through 25" door.

These were actually given in response to a request for meaning from
the stcode.

----------------------------------------------------------------------

>}On the venerable Model I Trash-80, the DOS had a vector reserved for what the
>}manual listed as "Unprintable Error". The exact meaning was never defined.

The MSDOS 1.0 manuals had a listing for "Invalid Error".
Talk about getting it wrong.

----------------------------------------------------------------------

error messages. get this one (today, friday, MARCH FIRST, 1991) our mainframe
decided not to allow logins.

why was that?

Nobody was validated for access on february 29th, 1991 (btw, what day of the
week was that?!)

----------------------------------------------------------------------

>[ in regards to the expression "if (a = b)" instead of "if (a == b)" ]
>
>Think *lint*. IMHO, there is nothing we need less than a compiler spitting
>out more useless verbage.

The only problem with that is that many PC based C compilers don't include
a lint program. It makes sense that the programmer at least have the option
of enabling various warning messages. Strangely enough, I once comitted
the exact opposite mistake. I had a C statement like this:

i == j;

The compiler (bless its little heart) gave me the warning:

"code has no effect"

----------------------------------------------------------------------

(Sorry if this is a well-known one. I'm new to Unix.)

Just to rehash an old thread... Today, I accidentally sent an empty mail
message, and Ultrix said, "No message, no subject; hope that's ok."

----------------------------------------------------------------------

Here is another first time post to the net. Hope it meets with your
approval...

I was learning PL/1 a couple years ago and for our first or second
assignment we had to split one file into two files based on the first char
on the line. The program compiled correctly and I even got output of sorts.
The result was the following line...

I the most critical examiner of all have determined that there is an error on
line 42.

----------------------------------------------------------------------

Computers running a DTK BIOS report a parity error as:

Parity Error But Segment Doesn't Found

----------------------------------------------------------------------

Then there was level D of TOPS (before DEC gave releases numbers, and
TOPS was the PDP-10 OP Sys; there was no TOPS-10 (or even Texex yet)).

MORE CORE AVAILABLE, BUT NOT FOR YOU

----------------------------------------------------------------------

I love these. In the SunOS 3.0 source code, somewhere in the VM
system I think, there was a line that said:

panic ("Shannon and Bill say this can't happen");

I saw this one for myself, in 1986, working for a now-defunct company
that was a Sun source licensee at the time. (Saw it in the source,
that is - never saw it happen :-).

....

A DEC oldtimer told me that a DEC-10 once printed

PUNT

after a particularly misguided attempt to get it to boot, is this
one apocryphal?

Does anyone collect these things?

----------------------------------------------------------------------

I've heard -- or read, I think -- about some code that contained the comment
"you aren't expected to understand this". Seems to me it was in TCP/IP.

----------------------------------------------------------------------

>I've heard -- or read, I think -- about some code that contained the comment
>"you aren't expected to understand this". Seems to me it was in TCP/IP.
>/kenw

The Whitesmiths 'C' manual had a line like that in the bugs section
of the manual page after a particulary harrowing description of,
as I remember, an internal function.

----------------------------------------------------------------------

> I've heard -- or read, I think -- about some code that contained the comment
> "you aren't expected to understand this". Seems to me it was in TCP/IP.

Deep inside the Teradyne hardware modeler code is a routine that feeds a
whole bunch of hex numbers into a SYS$QIO call. The only comment is
'Weird magic happens here'.

----------------------------------------------------------------------

I don't collect these things, but I have one to add, and I'm hoping
someone has an Earthly explanation for it. This happened on a
VAX 11/750 running 4.3 BSD. We've all seen the "You have new mail."
message after the csh prompt, but ONCE it actually said instead
"Thou hast new mail." It's only happened once! And I swear it
happened! Has anyone else ever seen this? I don't even know what
triggered it!

----------------------------------------------------------------------

Aaah, but then I want to know about *these* strings, found
(here) in /usr/local/bin/mail:

Too much "sourcing" going on.
Okie dokie
Mail's idea of conditions is screwed up
~h: no can do!?
Too many regrets
detract asked to insert commas
metoo
Somethings amiss -- no @ or % in arpafix
Made up bad net name
ubluit
Who are you!?
; why =

----------------------------------------------------------------------

The Algol compiler for the ICL 1900 used very occasionally collapse with
the message:

"The impossible has happened!"

----------------------------------------------------------------------

Tandy was big on the hidden Trek messages. On of their TRS-80 6.x
upgrades had an ASCII quote buried way out on an unused track.
Something like...

Beam me up Scotty, there's no life out here.

----------------------------------------------------------------------

The VS/PASCAL compiler under VM/CMS (there, that's two V's already and I
haven't even gotten to the real point yet) goes one step further in compiler
honesty. If your program compiles successfully, it will issue

NO COMPILER DETECTED ERRORS.

I swear I can see the italicization on the words "COMPILER DETECTED."

----------------------------------------------------------------------

Epoch has a few funny messages in it for disasterous circumstances.
Some of them are:

"Holy Panes Batman, the window's missing!" - when a X window structure
isn't there.

"Holy PH, Batman, the buffer's missing!" - a window without a buffer.
This one has actually been seen outside the lab.

"Holy Vectors Batman, I can't get more lines!" - malloc failed.

The error message I want to put in, but never have had the chance, is
"System Error - Sureness out of Bounds". You PLATO heads know what I
mean.

----------------------------------------------------------------------

Expressionist (a Mac application for doing equations) has the
following error messages in it:

Mysterious Error -nnn

Internal Error: Illegal hedge TV number. (huh?? what?!)

Internal Error: BlinkThere or HiliteThere messed up.

Bad External File System: Boy, is your system messed up. :)

----------------------------------------------------------------------

Honeywell's customer service department once got a very concerned
message from a confused customer whose MULTICS system had printed:

Hodie natus est radici frater

before giving up the (holy?) ghost. ``Today unto the root is born a
brother''.

This is a hack on ``Hodie natus est filius nobis'', or ``Today unto us
is born a son''. I don't know the reference exactly, but it's in
Handel's Messiah.

It seems a Multics hacker (allegedly Bernie Greenberg) at MIT had
inserted the liturgical allusion when it detected the ``impossible
event'' of the filesystem deciding it had two roots.

[Greenberg is also known for having taken notes in Latin (``for
clarity and precision'') when in the fever dream induced by first
exposure to a Rubik's Cube.]

----------------------------------------------------------------------

In the IRC-server there are some "nice" messages, and here's a coupple of them:

Looks like mere mortals are trying to enter the Twilight Zone
FATAL: Major security hack. Notify Administrator.
Identity problems, eh ?
Bad Craziness
'tis is no game for mere mortals
Go away and get a life
Death before dishonour ?
Dave, don't do that...
Good afternoon, gentelman, I'm a HAL 9000 Computer
Only few mortals may try to enter the Twiligth Zone
Only real wizzards know the spells to open the gate of paradize
Trying to unlock the door twice eh ?
Use the force, Luke !
Change balls, please

My favorite is definitivly the "Bad Craziness" ... :-)

----------------------------------------------------------------------

On an old Perkin-Elmer Machine, the Pascal Compiler would say:

"NONE of your errors have been found"

The compiler was smart enough to know that your program had errors anyway :-)

----------------------------------------------------------------------

Now, granted, this is something one of us here did, but our VAX precedes
its panics with the message

"Well, you ran into something and the game is over."

----------------------------------------------------------------------

My favorite RSTS/E error message is "Unused error message #xxx". Somehow
I managed to get these when hitting ^C as a certain program loads.

----------------------------------------------------------------------

Take this for what it's worth, but at a shop where I once worked, an
overnight processing run would sometime fail with the error message:

"FALL DOWN GO BOOM"

----------------------------------------------------------------------

Well, this is just a story, picked up from the early days of Usenet, so it's
possibly unfounded and furthermore some folks have likely already seen it,
but it gave me days of snickers.

Story goes that that some little text-edit subsystem of something or other
which had very few things that could go wrong had only one error message,
used for both user and internal errors:

Data potato doo-wop doo-wop

When pressed for an explanation, the programmer said: "well, I figured
it hd to print *something* when there was an error."

----------------------------------------------------------------------

> When you type your mail and type ~C (typo for ~c) my unix mail tells me:
>
> Okie dokie, core dumped.

bash$ cat > x.c
main() { execl ("/bin/mail", 0); }
^D
bash$ gcc x.c
bash$ ./a.out
puke
bash$

----------------------------------------------------------------------

On the old NCR Towers I used to get the following message on the
console whenever someone on a terminal would hold down the left
(or right - I forget which) arrow key:

spurious multibus interrupt

It took us a long time to figure out what was causing the messages
since nothing else bad happened and the people on the terminals
would be looking at their own screens while typing. Anyone on the
console, on the other hand, would look at the process table for
suspicious processes, etc.

NCR took the bug report with a great deal of disbelief, but their next
release of UNIX didn't have the problem.

----------------------------------------------------------------------

I predict that Eighth Generation computers
will compile no programs, run no applications,
and access no data. Instead they will be
designed and tuned to give a continuously
variable spectrum of elegant and precise
error messages describing your failure to
induce them to do so.

----------------------------------------------------------------------

As long as we're running strings on everything from here to
Berkeley...

Someone in a now-junked message pointed out something from lint. I
don't remember what it was, but here's one I did find in lint, SunOS
4.1.1 (I think):

EDOTDOT!!!!

Your guess is probably much better than mine.

----------------------------------------------------------------------

You think THATS funny (it is), but strings "/usr/lib/sendmail" for a few laughs:

>From the silly:-

You wascal wabbit! Wandering wizards won't win!
savemail: HELP!!!!

to the plausible but still silly:-

Who are you ?
Can't parse myself!

to the plain ridiculous:-

MAIL DELETED BECAUSE OF LACK OF DISK SPACE

- not to mention all the SMTP "HELO" dialogue...

----------------------------------------------------------------------

What about this one (present in SunOS 4.1.1 and who knows where else)
when attempting to use the csh builtin 'suspend' from a login shell:

Can't suspend a login shell (yet).

What's that supposed to mean??? Not until later in the afternoon? Not
until they rewrite the shell? Not until you get rid of stopped jobs?

:-) I got quite a chuckle out of that one.

----------------------------------------------------------------------

The SAIL compiler had a number of puns on sailing, one of which was the
compiler internal error message which referred to "dryrot" (if you don't
know anything about boats and sailing, be aware that "dryrot" is the
bane of a boatowner's existence, and once it sets in your boat is
doomed...). The modula "dryrot" message seems to indicate that at least
one implementor had used SAIL.

----------------------------------------------------------------------

The classic short message was from JOSS, one of the early interactive
languages (from the mid-1960's; it ran on a machine at RAND Corporation
called the JOHNNIAC). It was on a small machine. It had one catchall
message:

EH?

this was based on the premise that the error would be so blindingly
obvious to the programmer that no further indication of the nature of
the error was required.

Wrong.

(I worked in another interactive system that thought this was such a
cute idea that they used it. This was a mistake. If you knew the
language, the cause of the error may have been obvious, but if you
didn't know the language you were in deep trouble. They extended this
philosophy to the printed documentation!)

----------------------------------------------------------------------

Well, I've seen the "You are a charlatan" in a mail context before,
though only on a DEC-20. Lessee, any DEC-20s left... :-(

Oh yeah, sri-nic ..err.. nic.ddn.mil.

bordeaux$ telnet nic.ddn.mil 25
Trying 192.67.67.20 ...
Connected to nic.ddn.mil.
Escape character is '^]'.
220-NIC.DDN.MIL SMTP Service 6.1 at Fri, 26 Jul 91 18:21:06 PDT
220 Don't Worry.
helo nonesuch.noao.edu
250 NIC.DDN.MIL - Never heard of that name, bordeaux.kpno.noao.edu
helo cc.utah.edu
250 NIC.DDN.MIL - You are a charlatan, bordeaux.kpno.noao.edu
quit
221 NIC.DDN.MIL -- Be Happy!

----------------------------------------------------------------------

We used a language called JEAN on ICL's 1900 series. We knew this was a
dialect of JOSS but it must have been closer than we knew as it used the
same error message.

The JEAN error message I liked was "Your expression has defeated me" which
was generated by a program such as
1.1 X=X
1.2 PRINT X

I never understood this until I was explaining to someone the meaning of
recursion in Algol. To demonstrate that simpler languages could not
handle recursion I gave JEAN a recursive definition of a factorial and
to my surprise it gave the right answer!

To understand this you also need to know that in JEAN
SET X=3 gave the variable X a value.
LET X=3 defined X as a function.
and the default verb was LET, not SET.

Hence "Your formula has defeated me" meant that it had run out of store
because of infinite recursion.

What a pity Basic defeated the much more elegant JOSS.

----------------------------------------------------------------------

Twenty or so years ago, the Fortran IV compiler for the SDS Sigma 2
would occasionally comment at the bottom of your listing:

WARNING: 54 - PROGRAM NOT RECURSIVE

(That *looks* right. I'm pretty sure about the number and the text.)

I was somewhat startled by the message, since I knew Fortran programs
were not recursive.

Eventually, in a fit of boredom and despair, I wrote a recursive
program which produced the error message. Worked fine, too. So far
as I know, it may still be running. Wasn't RE-ENTRANT tho.

----------------------------------------------------------------------

This carried over into other operating systems, including RT-11. Another
one I remember is HELP ME, which came back with:

Help is not available for you.

----------------------------------------------------------------------

Masscomp C compiler:
"Insane structure member list"

----------------------------------------------------------------------

In most cases I've found that a good way to find out what you can do with
a language is to read well-written descriptions of what you *can't* do
with it. I got into systems programming in the early 1960s by reading
the error message listings in the FORTRAN compiler, first for the 7090
FMS and later in IBSYS. Of course, in today's world the vendors would
have collective apoplexy if anyone seriously asked to see the compiler
sources, and the error message descriptions seem to routinely go something
like this:

Error ABC123D: User Error

Explanation: An unknown error has occurred in an unidentified program
while executing an unimplemented function at an
undefined address.

User Response: Correct error and resubmit.

----------------------------------------------------------------------

(this is what an older version of MMDF says)

telnet deskpro.sow.econ.vu.nl smtp
Trying 130.37.48.1 ...
Connected to deskpro.sow.econ.vu.nl.
Escape character is '^]'.
220 deskpro.sow.econ.vu.nl Server SMTP (Complaints/bugs to: postmaster)
helo foo.bar
250 deskpro.sow.econ.vu.nl - Liar, Liar! Pants on Fire!
quit
221 deskpro.sow.econ.vu.nl says goodbye to kappl.cs.vu.nl at Tue Jul 30 22:13:43
.
Connection closed by foreign host.

----------------------------------------------------------------------

I was just installing PCSA version 4.0 for DOS on a machine here, and after the
boot I got a system error. Okay, no problem, I do a quick

USE \\HOSTNAME

to see if the machine knows anything about the host. Lo and behold, it does
but it refuses to tell me:

Error: Success


-----------------------------------
, Mike




Please note that this blog accepts comments via email only. See our Mission And Policy Statement for further details.

Saturday, June 7, 2008

Using Perl To Handle Mass Mailing In Linux Or Unix

Hey there,

Today, we're going to take a look at a quick Saturday script to handle mass mailing with Perl. This is not to be confused with SPAM, although you could use it for that purpose if you're looking to trim down your social circle ;)

Actually, an older post we did on collecting mails using a CGI autoresponder is probably more suited to "Bulk Email Marketing." Although I simply delete any SPAM I get, I don't question anyone's right to fill my mailbox with junk if I sign up online to download some goofy report. I take no side in the "good vs. evil" debate, insofar as SPAM is concerned, and consider myself more of an on-looker. If it is, indeed, wrong, there is almost certainly something unpleasant waiting in the wings for the purveyors, and opting to sit on the fence can become very painful after a while ;)

In any event, I hope you enjoy (or can find some good use for) today's script. It's very simple to run, and should allow you to mass email to groups of people (who belong to your mailing list because they work at your company or requested inclusion) on any Linux or Unix variant that supports sendmail. Minor modifications should be easy enough to make if you use another mail agent.

You can execute the script with the following arguments:

host # ./listmail.pl listname messagename

with the listname being a text file consisting of one address per line, with a more descriptive name followed by the email address and separated by double-colon notation (::), like this:

Mr. Miller::abc@def.com

You can modify the split() function in the script if you prefer to delimit multiple items on single lines using another typographical character (you can also opt to change the script so it only takes an email address per line and doesn't do the split).

The messagename should be a text file which includes the body of your email message. Also, your sendmail may be in /usr/lib, rather than /usr/sbin.

Note for those who wish to do some mangling and make this script more flexible: An easy improvement to this script would be to include the From:, To:, etc lines in your message file and then pipe your print statements to "sendmail -t", rather than hardcoding it using sendmail flags, as we've done below.

Anyhow, hope you enjoy it and have a great weekend :)


Creative Commons License


This work is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License

#!/usr/bin/perl
#
# listmail.pl - send email to folks, who want to receive email from you, more efficiently
#
# 2008 - Mike Golvach - eggi@comcast.net
#
# Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License
#

if ($#ARGV != 1) {
print "Usage: listmail listname messagename\n";
exit;
}

$maillist=$ARGV[0];
$message=$ARGV[1];
$count = 0;

open(MAILING, "<$maillist");
@mailing = <MAILING>;
close(MAILING);

foreach $mailee (@mailing) {
if ($count < 60) {
@addies = split(/::/, $mailee);
open(HEADER, ">/tmp/header.lst");
print HEADER "From: uvw\@xyz.com\n";
print HEADER "Subject: xyz.com Updates!\n";
print HEADER "Reply-To: uvw\@xyz.com\n";
print HEADER "X-cid: $addies[0]\n";
close(HEADER);
open(HEADER, "</tmp/header.lst");
@HEADER = <HEADER>;
close(HEADER);
open(SENDMAIL, "|/usr/sbin/sendmail -f uvw\@xyz.com -F \"uvw\@xyz.com\" -oi $addies[1]");
foreach $head (@HEADER) {
print SENDMAIL $head;
}
open(MESSAGE, "<$message");
@message = <MESSAGE>;
close(MESSAGE);
foreach $line (@message) {
print SENDMAIL $line;
}
close(SENDMAIL);
$count++;
} elsif ($count == 60) {
@addies = split(/::/, $mailee);
open(HEADER, ">/tmp/header.lst");
print HEADER "From: uvw\@xyz.com\n";
print HEADER "Subject: xyz.com Updates!\n";
print HEADER "Reply-To: uvw\@xyz.com\n";
print HEADER "X-cid: $addies[0]\n";
close(HEADER);
open(HEADER, "</tmp/header.lst");
@HEADER = <HEADER>;
close(HEADER);
open(SENDMAIL, "|/usr/sbin/sendmail -f uvw\@xyz.com -F \"uvw\@xyz.com\" -oi $addies[1]");
foreach $head (@HEADER) {
print SENDMAIL $head;
}
open(MESSAGE, "<$message");
@message = <MESSAGE>;
close(MESSAGE);
foreach $line (@message) {
print SENDMAIL $line;
}
close(SENDMAIL);
$count = 0;
sleep 60;
}
}


, Mike

Sunday, May 11, 2008

Fun Using Banner To Send Subliminal Messages In Cygwin Linux

Greetings, once again,

Here's a good "Lazy Sunday Post" in the same vein as previous posts on using color in the shell and the like. Much like a psychic reading, this post is for entertainment purposes only ;)

Today, I put together a little no-variable script (from which a real script could easily grow) using the "banner" command in Cygwin Linux. It's very simple to use and takes no arguments at all. You can execute it simply, like this:

hot # ./subanner <--- If there were arguments they might be "what your banner says" and "what you really mean" ;)

I didn't bother putting in any error checking, either, since this is just for a goof and doesn't take any variables. This works well on any implementation of the "banner" command that accepts the -c flag to indicate what character the banner should be printed out with. If your distro of Unix or Linux doesn't have this capability, Perl has a Text::Banner module that can do the same thing.

Hope you have fun mucking with this (make it your own. We all have something unique to say ;) and, at the same time, let users that log on to your machines know what you really think :)

p.s. If anyone knows how to strip the ending \012 off of banner output (And I've tried octal dump, sed, awk, tr, hex and octal codes, Perl, etc), please email me - it's making me nuts ;) Therefore, this banner is vertical rather than horizontal.

Maybe if it wasn't the weekend my brain would be in better shape to tackle this issue ;)

Cheers,


Creative Commons License


This work is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License

#!/bin/bash

#
# subanner - subliminal banner :)
#
# 2008 - Mike Golvach - eggi@comcast.net
#
# Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License
#

message="Be Kind"
meaning="Go Away"

count=0

while [ $count -lt ${#message} ]
do
banner -c "${meaning:$count:1}" "${message:$count:1}"
let count=$count+1
done


, Mike

Sunday, November 25, 2007

TSM Backup's Most Misleading Error Message

As much as I'd love to, I won't give you my opinion of Tivoli Storage Manager (TSM) in this post. It's not really about what I think, but will hopefully help out a few folks. TSM, in my experience, is not too difficult to install and set up on a host, but troubleshooting it can be another issue. A lot of times, the error messages it gives you lead you away from the problem rather than to it.

Which brings us to today's post topic: TSM's most misleading error message. This error specifically has to do with Oracle backups.

Assuming your installation has gone without incident, you've already logged into the TSM server from your host and verified all's well, like so:

host.xyz.com# dsmc q sess

And, after logging in, if you haven't set that up already, you see some marginal information about the TSM version, when the last backup was run, the schedule of backups, etc.

Now, you're ready to turn the product over to the client. It's been installed, but never run. And, surely enough, the next day (at the latest ;) you receive a call that the Oracle backups didn't work. Some minimal investigation into the log files (since logging into the TSM interface from the host using "dsmc" doesn't seem to show any issues, except that no Oracle backups have run) shows that something's very very wrong! You find yourself faced with this scary error:

ORA-19554: error allocating device, device type: SBT_TAPE, device name:
ORA-27000: skgfqsbi: failed to initialize storage subsystem (SBT) layer Linux Error: 106: Transport endpoint is already connected
Additional information: 7011
ORA-19511: Error received from media manager layer, error text:
SBT error = 7011, errno = 106, sbtopen: system error


So, your first inclination might be to go talk to the folks that manage site backups, because there's obviously a problem with the tape loader or a tape drive. But, this couldn't be farther from the truth.

Here's the kicker. The real issue has nothing at all to do with the error message! The issue is with the "dsmc" process not being able to write to its logs as the oracle user id! Yes, that's true :)

The good news is that, once you've gotten past the mystery, the solution is relatively simple. You can fix this problem very quickly by doing the following:

1. View the dsm.sys file that you've set up (it should be linked to /usr/bin/dsm.sys) and find out where the error logs and activity logs are being written. If you haven't specified this, your logs should be under the default installation directory under logs/tivoli/tsm -- depending on your version, the location may vary)

2. Now simply fix the permissions on the log so that the oracle user id can write to them:

chgrp dba errlog.log <--- Assuming dba is oracle's primary group.
chmod g+w errlog.log

3. Verify that all directories above this are accessible as well. The easiest way to figure out if you've gotten it right is to use the oracle user id to do the check:

su - oracle
cd /log/location/
echo hi >>errlog.log
vi errlog.log
<--- To remove the line with "hi" on it if you want.

Once that's all set, the "bad tape" error goes away and Oracle backups start working. How about that? :)

, Mike