The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Command to find number of threads rajeev3062002 UNIX for Dummies Questions & Answers 0 04-01-2008 06:12 AM
ls command for listing the number of files jimmyc UNIX for Dummies Questions & Answers 4 03-24-2007 12:34 AM
How can I get only the number of the UID from id command? umen SUN Solaris 2 05-09-2006 06:24 AM
C-shell command to get system IP number? Splatt Shell Programming and Scripting 2 12-10-2001 01:13 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-09-2006
umen umen is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 239
How can I get only the number of the UID from id command?

Hello
im using sun Solaris, I need to get the user id number (generating unique id's)
but I fail to find switch to get only the number of the id

thanks for the help
  #2 (permalink)  
Old 05-09-2006
ranj@chn ranj@chn is offline Forum Advisor  
Playing with Ubuntu Now!
  
 

Join Date: Oct 2005
Location: Chennai
Posts: 365
id

id -u --> does it work?
  #3 (permalink)  
Old 05-09-2006
umen umen is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 239
no it gives me

id: illegal option -- u
Usage: id [-ap] [user]
  #4 (permalink)  
Old 05-09-2006
ranj@chn ranj@chn is offline Forum Advisor  
Playing with Ubuntu Now!
  
 

Join Date: Oct 2005
Location: Chennai
Posts: 365
try getuid

I am not sure what is the command in Sun Solaris. I work in HP-UX. Why not write a wrapper c code to return uid using getuid() function.
  #5 (permalink)  
Old 05-09-2006
umen umen is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 239
I have some restrictions can't use external wrappers
Only build in commands
any way maybe I will ask in sun Solaris forum , tnx
  #6 (permalink)  
Old 05-09-2006
pressy's Avatar
pressy pressy is offline Forum Staff  
solaris cultist
  
 

Join Date: Aug 2003
Location: Vienna / Austria (Europe) [EARTH]
Posts: 726
Exclamation

i've answered on the solaris section

""i've closed this thread -> cross posting""

regards PRESSY
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:16 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0