TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:17715] Aliasing



Nick.T.Reinking@supervalu.com wrote:
> 
> My whole point of doing this is because I type 'ps aux' out
> of habit, instead of 'ps -ef'.  Changing it to be ps-script isn't
> going to help me at all, here.  ;)  I just want my bad habits to
> work.  Sneef!

*WHAM* *WHAM* *squirk* *BANG* *CRASH* *WHAM* *WHAM* *WHAM*

Okay, I unscrewed my head, banged it on the wall a few times, put it
back on at a 45 degree angle, and it still seems like the aliasing with
a script should work..  You should be able to type `ps' and it will just
invoke a normal ps.  If you do anything other than `aux' as the first
argument, it should just pass those arguments clear through..  Only if
you type in 'ps aux' should anything be changed, and the change would be
to run `ps -ef' instead of 'ps aux'.

Unless you didn't see the critical

alias 'ps'='ps-script'

line at the bottom of my previous message

alternatively, if you have root privileges, you could move the actual
`ps' binary to a diferent name ('ps-hidden' or something), and make the
script name be `ps'.  Then, you wouldn't even need the alias command.

-- 
 _  _  _  _ _  ___    _ _  _  ___ _ _  __   Why don't tomb, comb, and 
/ \/ \(_)| ' // ._\  / - \(_)/ ./| ' /(__   bomb sound alike? 
\_||_/|_||_|_\\___/  \_-_/|_|\__\|_|_\ __)                             
[ Mike Hicks | http://umn.edu/~hick0088/ | mailto:hick0088@tc.umn.edu ]