Operating System - HP-UX
1834604 Members
4391 Online
110069 Solutions
New Discussion

b,SWhat Command Would You Like to Seeb,}.

 
SOLVED
Go to solution
Darrell Allen
Honored Contributor

Re: b,SWhat Command Would You Like to Seeb,}.

Along the same lines as Harry's...

A new shell for some of my "special" users. Call it msh ("man" shell). msh would display the man page for every command these "special" users entered, require confirmation, then allow only non-harmful command lines to be executed.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Ian Dennison_1
Honored Contributor

Re: b,SWhat Command Would You Like to Seeb,}.

Paula,

It's a joke! Anyone without the mental capabilities to comprehend the implications of their actions before they perform them, had best stay with those Operating Systems that have an 'undo'.

Those who can, do; those who can't,.. seem to end up working with me!

Share and Enjoy! Ian
Building a dumber user
Paula J Frazer-Campbell
Honored Contributor

Re: b,SWhat Command Would You Like to Seeb,}.

Hi Ian

Sorry brain is a bit slow today, too busy planning Xmas activities.

Paula
If you can spell SysAdmin then you is one - anon
Alan Casey
Trusted Contributor

Re: b,SWhat Command Would You Like to Seeb,}.

I like the leave-me-alone command.
Someone also suggested in another conversation:
leave - remind user what time to leave at.
Vincent Farrugia
Honored Contributor

Re: b,SWhat Command Would You Like to Seeb,}.

Hello,

Since there is a command named "man", might as well do a command named "woman" :-)

man woman: (apart from outputting a baby)

woman - brings you a nice woman wherever you are.

-r : Russian woman
-n : Nude woman. Requires an authorisation code. Can be used with -r.
-f : You know what it is. Has to be used with -n and can be used with -r.

Sorry for this :-)

Vince
Tape Drives RULE!!!
George_Dodds
Honored Contributor

Re: b,SWhat Command Would You Like to Seeb,}.

Here's one more for the road-

Use the proceadures in the order stated for the least amount of hassle from users (at least till you get back!)

shutdown -h 0
Switch off mobile
Go to the pub
Tom Geudens
Honored Contributor

Re: b,SWhat Command Would You Like to Seeb,}.

Hi,
My favourite command (and I don't need Santa to create it, I already did :-) is
harakiri

Unfortunately it ONLY kills all the user's processes ... the user him/herself is left untouched (on second thought there's room for improvement there ... something "to do" in the new year).

Tom Geudens
A life ? Cool ! Where can I download one of those from ?
Tom Geudens
Honored Contributor

Re: b,SWhat Command Would You Like to Seeb,}.

Hi Paula,
I noticed you just executed the
#give_hat -name "Tom Geudens"
command

That's all I could wish for Christmas,
Thanks "Santa" Paula,
Tom
A life ? Cool ! Where can I download one of those from ?
Paula J Frazer-Campbell
Honored Contributor

Re: b,SWhat Command Would You Like to Seeb,}.

Well Done

On your new hat.

Paula
If you can spell SysAdmin then you is one - anon
fg_1
Trusted Contributor

Re: b,SWhat Command Would You Like to Seeb,}.

Hi all

clonebrittany -B -S

where -B equals size desired
where -S equals selfish mode

This would definitely put the HO HO HO back in christmas this year

or another command would be:

killbinladen -M

where -M equals method (all options accepted)

Merry Christmas and Happy New Year to all.

John Payne_2
Honored Contributor

Re: b,SWhat Command Would You Like to Seeb,}.

How about "authtoreroutepaycheck"

A user calls up with a problem, (A really dumb problem, you know who they are...) you tell them you can work on it. Move file to their home directory, ask them to log in. Tell them they need to execute script in order for you to work on their problem.

Voila! Holiday bonus!
Spoon!!!!
Helen French
Honored Contributor

Re: b,SWhat Command Would You Like to Seeb,}.

hey paula,

what abt 'fuser' instead of fireuser?

Happy holidays ...

Shiju
Life is a promise, fulfill it!
Mark Greene_1
Honored Contributor

Re: b,SWhat Command Would You Like to Seeb,}.

dwim (do what i mean)

- will do exactly the function intended in the face of unexpected data. May be used in a pipeline as the ultimate (or penultimate if you want to pipe to pg or more as well) commandline filter.

--
mark
the future will be a lot like now, only later
Mark Greene_1
Honored Contributor
Solution

Re: b,SWhat Command Would You Like to Seeb,}.

Harry,

here's a quick-n-dirty rtfm I have been using:

#!/bin/ksh
# search done in this form: cat intro.[chapter] |uncompress - |deroff|grep [string]
###

MANDIR=/usr/share/man
BOLD=`tput smso` #may cause problems if output routed to file or printer
UNBOLD=`tput rmso`
STATUS=1 #assume failure, set to 0 if we find a string

STRING=$1 #search string

CHAPTER=$2 #man chapter to search

for MAN_FILE in `ls $MANDIR/man$CHAPTER.Z/*`; do
RESULTS=`cat $MAN_FILE|uncompress - |deroff|grep -n "$STRING"`
if [ $? -eq 0 ]; then
echo "$BOLD$STRING$UNBOLD found in file $BOLD$MAN_FILE$UNBOLD"
echo $RESULTS
echo
STATUS=0
fi
done
exit $STATUS
# end of script #

HTH
--
mark
the future will be a lot like now, only later
Rita C Workman
Honored Contributor

Re: b,SWhat Command Would You Like to Seeb,}.

Here's a couple I'd like to see:

#forums -u (Forums brought back up instantly on command)

#forums -e (Eliminate the 404 errors)

#forums -s (Put Forums into hyper speed..)

#forums -pu (Ability to subtract points from any user who neglects assigning points to their questions-or maybe an electrical shock the next time they try to post a question..ha ha)

And last - but not least...

#forums -jrf -acs (Quick command to give them another crown - they'll have the points faster'n any of us anyway..ha ha)

Rgrds,
Rita

Thierry Poels_1
Honored Contributor

Re: b,SWhat Command Would You Like to Seeb,}.

Hi,

how about "autopilot" ?

would be welcome during these holidays ;-)

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Paula J Frazer-Campbell
Honored Contributor

Re: b,SWhat Command Would You Like to Seeb,}.

Hi to all

How about :-

upgrade - instantly upgrade your system to whatever specs - more memory, cpu disks etc.

Paula
If you can spell SysAdmin then you is one - anon
Deepak Extross
Honored Contributor

Re: b,SWhat Command Would You Like to Seeb,}.

How about "oops"
man oops:
Restores files deleted by the last 'rm -rf *'
Paula J Frazer-Campbell
Honored Contributor

Re: b,SWhat Command Would You Like to Seeb,}.

Hi

Universe has an oops command - undo last.

Paula
If you can spell SysAdmin then you is one - anon
Eugen Cocalea
Respected Contributor

Re: b,SWhat Command Would You Like to Seeb,}.

Hi,

Krupp, the weapons makers? Do they still exist?

'new_server'

run it when you are somehow out of resources. A new server (with hardware configuration maxed) (and already best-tuned) will appear, along with the cables needed (that will be properly connected in their slots / hubs ).

E.
To Live Is To Learn
Ian Dennison_1
Honored Contributor

Re: b,SWhat Command Would You Like to Seeb,}.

New OS switch,....

export OBVIOUS=True

When I do a 'dbf' command, it's quite obvious what I meant, so the shell will translate it to the proper command 'bdf'.

Same goes for missing 1 space in a command string that throws the whole thing out! Thank Allah for Korn Shell History!

Share and Enjoy! Ian
Building a dumber user
Vincent Farrugia
Honored Contributor

Re: b,SWhat Command Would You Like to Seeb,}.

Hello,

Following huge requests for restoring commands, I did two commands named vrm and vrest (Vince's rm and Vince's restore). Vrm is like rm, but before it erases the files, it backups them in a compressed file. Vrest can open this file and restores them on request.

Clever huh? :-)
Tape Drives RULE!!!
Marc Dijkstra
Trusted Contributor

Re: b,SWhat Command Would You Like to Seeb,}.

Firstly a very happy holiday season to all the sunny forumers that are celebrating...

All my Xmas wishes are fulfilled.... I am still running UN*X!
"A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila"
Bill McNAMARA_1
Honored Contributor

Re: b,SWhat Command Would You Like to Seeb,}.

No extra commands, just an extra option to swinstall ..

swinstall -ig

install goddamit

also to reboot

reboot -vq

very quick

Very useful...

Have a GREAT Christmas!
Have ten beers for me!

Later,
Bill
It works for me (tm)
Robin Wakefield
Honored Contributor

Re: b,SWhat Command Would You Like to Seeb,}.

I claim no credit for this - it's from a good beginners unix site, and is quite amusing:

http://people.msoe.edu/~taylor/4ltrwrd/UAap.html

ap:

The ap (auto pilot) command has a deceptive name. It doesn't actually place the computer on auto pilot. The ap command reads your mind and attempts to perform the commands you want to do. For example, thinking "I really wish I had a backup copy of the tanana image." will cause ap to input

cp tanana.* tanana_bak.*

to the Unix shell. Preceding a thought with "ignore" will cause ap to ignore your next thought. Although, with enough practice, the ap command can be a significant time saver, there are a few unresolved problems with this command.

1.I often change my mind while in the thinking process. In the previous example I may have decided later that I wanted to call the backup copy something else. No big deal here, ap just changes the filename but it isn't the most efficient use of computer resources.
2.All of the commands are echoed to the screen so that you know exactly what is going on. This is great as long as you remember to think "ignore" before you read each command. If you forget, the command will be executed again. This will continue until you remember to include the "ignore" flag or you think, "What is going on here?" which will cause the man pages for the particular command you are repeating to be displayed.
3.The ap command reads the strongest mind waves (known as grey waves) that it finds. If you have weak grey waves or your monitor is closer to someone else in your office, ap may listen to someone else's mind instead of yours. Also, walls do not provide insulation from grey waves, so if your monitor is near a wall, be prepared for some grey waves from minds on the other side of the wall to occasionally sneak in.
4.As you probably know, humans (you included) don't use their brains to their highest potential. In fact, many believe that we use as little as 5% of our brain's capacity. The problem here is that ap is only able to read around 80% of your mind. Unfortunately, many people use the 5% of their mind that ap can't read. When ap is called it scans your mind for activity, if none is found it prints the following cryptic error message:

ap: Command not found.

This indicates that it couldn't find a command in your head. Don't worry, this doesn't mean that you aren't thinking, it just means that you use the part of your brain that ap can't access.

Robin.