01-19-2010
What in the world does $$ mean?
If I type "echo $$" in to the command line it outputs some random number but it outputs the same one every time. What is this?
7 More Discussions You Might Find Interesting
1. Solaris
just wanted to give salutations to all in here.
i hope to contribute as much as i take.
happy "unix-ing" :b: (0 Replies)
Discussion started by: JeepResQ
0 Replies
2. What is on Your Mind?
What does the world need now.... ???
Feel free to suggest new items to the poll .... we might add them :) (25 Replies)
Discussion started by: Neo
25 Replies
3. Programming
Hello! I know I must take the efforts of learning C..! I need to recompile a binary with the following at the beginning: test if a file exists, remove it and exit. All in "C". As simple as this in sh:
file=/tmp/filename
if ; then
rm -f $file
exit 0
fi
Thanks! (8 Replies)
Discussion started by: teresaejunior
8 Replies
4. What is on Your Mind?
How will the world end (someday long into the future, we hope)? (68 Replies)
Discussion started by: Neo
68 Replies
5. Programming
Hello!
I have a question to native English-speaking people. In the popular program's "hello world" greeting, what meaning the "world" has: "all", "everybody", "people", "friends" or "whole world", "planet", "Earth", "Universe"?
In other words, to whom this greeting is addressed: to the... (14 Replies)
Discussion started by: Eugene Muzychen
14 Replies
6. What is on Your Mind?
Just wanna say "Hello World!" :) (6 Replies)
Discussion started by: ment0smintz
6 Replies
7. What is on Your Mind?
This is an excellent video comment on modern society and the remix is good too:
https://www.youtube.com/watch?v=5DU1B_XkyIk
5DU1B_XkyIk
Watch the video above and post your comments. (3 Replies)
Discussion started by: Neo
3 Replies
RAND(1SSL) OpenSSL RAND(1SSL)
NAME
openssl-rand, rand - generate pseudo-random bytes
SYNOPSIS
openssl rand [-help] [-out file] [-rand file...] [-writerand file] [-base64] [-hex] num
DESCRIPTION
The rand command outputs num pseudo-random bytes after seeding the random number generator once. As in other openssl command line tools,
PRNG seeding uses the file $HOME/.rnd or .rnd in addition to the files given in the -rand option. A new $HOME/.rnd or .rnd file will be
written back if enough seeding was obtained from these sources.
OPTIONS
-help
Print out a usage message.
-out file
Write to file instead of standard output.
-rand file...
A file or files containing random data used to seed the random number generator. Multiple files can be specified separated by an OS-
dependent character. The separator is ; for MS-Windows, , for OpenVMS, and : for all others.
[-writerand file]
Writes random data to the specified file upon exit. This can be used with a subsequent -rand flag.
-base64
Perform base64 encoding on the output.
-hex
Show the output as a hex string.
SEE ALSO
RAND_bytes(3)
COPYRIGHT
Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the OpenSSL license (the "License"). You may not use this file except in compliance with the License. You can obtain a
copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
1.1.1a 2018-12-18 RAND(1SSL)