[ale] UID variable in csh?

John Wells jb at sourceillustrated.com
Wed Oct 30 10:17:01 EST 2002


It would be that simple, but it's an NIS managed box and I don't want to
simply cat the yp/passwd file as it's location is likely to change.

The perl seems to work fine, though, as does your C solution.  I was just
hoping there was a csh var available, as I'm not guaranteed perl will be
installed on destination boxes and packaging a c executable involved a tad
bit more overhead.

Thanks for both of your help!

John

cfowler said:
> cat /etc/passwd | grep $LOGNAME | cut -d : -f 3
>
>
> On Wed, 2002-10-30 at 09:41, Fletch wrote:
>> >>>>> "cfowler" == cfowler  <cfowler at outpostsentinel.com> writes:
>>
>> [...]
>>
>>     cfowler> Now I'm sure that was a too creative way to do it eh?
>> cfowler> You can grab the same info via perl.
>>
>>         Much simpler from perl.
>>
>> perl -le 'print $<'
>>
>> --
>> Fletch                | "If you find my answers frightening,
>> __`'/| fletch at phydeaux.org   |  Vincent, you should cease askin'
>>    \ o.O' 770 294-0820 (m)      |  scary questions." -- Jules
>>       =(___)=
>>                       |
>> U
>>
>> ---
>> 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.




---
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