Re: echo $EUID

2002-04-03 Thread Shawn McMahon
begin quoting what Mark J. Reed said on Tue, Apr 02, 2002 at 11:35:25PM -0500: In cases where there was an even wider divergence between the BSD and System V commands (the ps(1) command being the most infamous example), you may find the BSD version in /usr/ucb (this is analogous to but

Re: echo $EUID

2002-04-03 Thread Mark J. Reed
On Wed, Apr 03, 2002 at 08:12:00AM -0500, Shawn McMahon wrote: Don't assume, however, that BSD style necessarily is 100% the same as GNU style. ps being the example, yet again; the w option doesn't show as much stuff as you can get with two ws on GNU ps. You can also put two 'w's on

Re: echo $EUID

2002-04-03 Thread Shawn McMahon
begin quoting what Mark J. Reed said on Wed, Apr 03, 2002 at 08:18:57AM -0500: You can also put two 'w's on /usr/ucb/ps and get the full command line of every process, Nope; it has a cutoff after a certain number of characters, and there's nothing you can do about it. We ran into this

Re: echo $EUID

2002-04-03 Thread Tim Kennedy
On Wed, 03 Apr 2002, Shawn McMahon wrote: I suggested we install GNU ps, but nobody in management wanted to hear that. I feel blessed. I have two species of management. The first kind wouldn't recognize a server if it reached out and smacked them. The second species wants to sound like

Re: echo $EUID

2002-04-02 Thread Sven Guckes
(hacker),.. so we just need the first number before the first space. easy: $ id | sed -e 's/^uid=\([0-9][0-9]*\).*/\1/'` 10077 works for me of course this is much easier with the ZShell: $ echo $EUID 10077 ZShell rules! :-) Sven -- Sven Guckes [EMAIL PROTECTED] ZSH HomePage: http

Re: echo $EUID

2002-04-02 Thread Mark J. Reed
On Wed, Apr 03, 2002 at 05:55:25AM +0200, Sven Guckes wrote: * Matthew D. Fuller [EMAIL PROTECTED] [2002-03-27 11:50]: .. I end up having to work around Solaris' braindamage in a number of ways. For instance, on every OTHER OS (including pre-Solaris-renaming SunOS, HP/UX 9, NeXT Mach),

Re: echo $EUID

2002-04-02 Thread Mark J. Reed
On Tue, Apr 02, 2002 at 11:27:31PM -0500, Mark J. Reed wrote: /usr/xpg4/bin/id -u To expand upon this: When SunOS becamse Solaris, its base moved from BSD (Berkeley's UNIX-based OS) to System V (official UNIX from ATT). For compatibility with System V applications (and with the POSIX