[ale] UID variable in csh?

Geoffrey esoteric at 3times25.net
Wed Oct 30 11:00:34 EST 2002


What's wrong with 'id' ?????

cfowler wrote:
> Here is a shell function
> 
> getUid() {
> 	TMPNAME = /tmp/uid{$$}.c
> 	
> 	cat > $TMPNAME << EOF
> 	int main(void) { printf("%d\n", getuid()): return 0 }
> 	EOF
> 	gcc -o /tmp/uid %TMPNAME 1>/dev/null 2>/dev/null
> 	/tmp/uid
> 	rm $TMPNAME
> }
> 
> Now I'm sure that was a too creative way to do it eh?  You can grab the
> same info via perl.  
> 
> On Wed, 2002-10-30 at 08:40, John Wells wrote:
> 
>>Is there a way to determine uid of the owner of the current shell under
>><hack, cough, gag>csh</hack, cough, gag>?
>>
>>Thanks!
>>John
>>
>>
>>
>>
>>
>>---
>>This message has been sent through the ALE general discussion list.
>>See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
>>sent to listmaster at ale dot org.
>>
>>
>>
> 
> 
> 
> 
> ---
> This message has been sent through the ALE general discussion list.
> See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
> sent to listmaster at ale dot org.
> 
> 

-- 
Until later: Geoffrey		esoteric at 3times25.net

I didn't have to buy my radio from a specific company to listen
to FM, why doesn't that apply to the Internet (anymore...)?


---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list