Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Playful Perl

by cees (Curate)
on Feb 13, 2004 at 19:00 UTC ( [id://328856]=note: print w/replies, xml ) Need Help??


in reply to Playful Perl

One of the simplest one I used long long ago was to alias a bunch of common commands like this:

alias ls='echo "This program requires Microsoft Windows..."' alias cd='echo "This program requires Microsoft Windows..."' alias vi='echo "This program requires Microsoft Windows..."' # Any other programs you can think of alias unalias='echo "This program requires Microsoft Windows..."' alias alias='echo "This program requires Microsoft Windows..."'

Make sure alias is the last one :)

Of course it is trivial to get around by using a full path to the program you want to run, but it usually gets a laugh and the odd time it stumps someone for a while...

You could easily wrap in in a loop read through /bin and /usr/bin and alias every command if you wanted :).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://328856]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-23 15:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found