From: Ben Finney on
John Kelly <jak(a)isp2dial.com> writes:

> Interix has no "mktemp -d" utility.

Does the GNU “coreutils” compile for Interix? That will provide 'mktemp'
with '-d' feature.

> So I thought of reading a few characters from /dev/urandom to get what I
> want. But I wonder, is /dev/urandom available on most platforms?

The Wikipedia article for '/dev/random' also discusses '/dev/urandom'
<URL:http://en.wikipedia.org/wiki//dev/random>, and lists OSen where
it's implemented.

Generally, if it's not promised by the SUS, it would be caveat
implementeur to assume it's on any particular system.

Best IMO to use the GNU coreutils if you want their functionality.

--
\ “The best mind-altering drug is truth.” —Jane Wagner, via Lily |
`\ Tomlin |
_o__) |
Ben Finney
From: John Kelly on
On Wed, 11 Aug 2010 13:31:53 +1000, Ben Finney
<ben+unix(a)benfinney.id.au> wrote:

>John Kelly <jak(a)isp2dial.com> writes:
>
>> Interix has no "mktemp -d" utility.
>
>Does the GNU �coreutils� compile for Interix?

Not without a lot of hacking.


> That will provide �mktemp� with �-d� feature.

That's what I've used until now, and it's nice. But I need something
that will work on a barebones Interix system, without coreutils.


>> So I thought of reading a few characters from /dev/urandom to get what I
>> want. But I wonder, is /dev/urandom available on most platforms?
>
>The Wikipedia article for �/dev/random� also discusses �/dev/urandom�
><URL:http://en.wikipedia.org/wiki//dev/random>, and lists OSen where
>it's implemented.
>
>Generally, if it's not promised by the SUS, it would be caveat
>implementeur to assume it's on any particular system.

It doesn't need to be universally portable. It just needs to work on
the platforms I'm interested in.



--
Web mail, POP3, and SMTP
http://www.beewyz.com/freeaccounts.php

 | 
Pages: 1
Prev: $RANDOM
Next: sed and quoting issue