Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Get unique value from computer

by apl (Monsignor)
on Apr 01, 2011 at 10:45 UTC ( #896874=note: print w/ replies, xml ) Need Help??


in reply to Get unique value from computer

To prevent hard-coding problems (as mentioned by marto), consider checking for the existence of some unusually named file in a standard directory.

If the file exists, your program can run; if it doesn't, it won't.

This gives you the additional flexibility to add machines without having to modify your software.


Comment on Re: Get unique value from computer
Re^2: Get unique value from computer
by Ratazong (Prior) on Apr 01, 2011 at 12:03 UTC
    Files can be copied from one machine to another ... which reduces their usefulness regarding getting unique values ...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://896874]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2014-09-18 02:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (104 votes), past polls