![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Routes being automatically added | Conutmonky | UNIX for Dummies Questions & Answers | 1 | 02-28-2008 04:13 PM |
| How come nothing is added to utmp in this case? | frequency8 | High Level Programming | 1 | 07-01-2007 02:21 PM |
| New Person Added to the Forum | wcarp05 | Shell Programming and Scripting | 1 | 04-13-2006 10:17 AM |
| How to scan only new lines added in file? | redlotus72 | UNIX for Dummies Questions & Answers | 3 | 04-28-2005 12:34 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Unique value added
Guys,
I am trying to get unique numbers which i can use as a primary key in a table. I tried using the <seconds_since_epoch>.<hostname> combination but since more than one process can run on the same machine at the same time, this won't be unique either. Can anyone tell me another way to do this? Thanks. Regards, garric |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
<seconds_since_epoch>.<hostname>.<pid>
|
|
#3
|
|||
|
|||
|
Thanks.. that works
|
|||
| Google The UNIX and Linux Forums |