08-31-2009
Please elaborate on what you are looking for.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am looking for an unzip application that can handle Unix .z files, but from a Windows environment AND has a command-line prompt. Anybody know of anything?
TIA,
H2M3 (2 Replies)
Discussion started by: H2M3
2 Replies
2. Windows & DOS: Issues & Discussions
I am having some trouble decompressing a tar.bz2 with Cygwin. Is it even possible to do this? I am new to Unix so I have no idea.
I downloaded GCC on my Windows machine (gcc-3.4.4.tar.bz2) and I've been trying to decompress and install it. Is cygwin this best way to decompress on a windows... (3 Replies)
Discussion started by: noob1021
3 Replies
3. Shell Programming and Scripting
Hello all, i am a complete beginner when it comes to unix and shell scripting.
I want to be able to compress a file (ff) with a shell script for example the command would look like
compress.sh ff
then with the script have the file compressed using the zip, gzip and compress commands.
I... (1 Reply)
Discussion started by: noodlesoup
1 Replies
4. UNIX for Advanced & Expert Users
I stumbled on this feature on a SLES10 system yesterday... if you tar tf filename.tar.gz or tar xf filename.tar.gz it automatically gunzips the data for you. Has this feature been around for a while? I have 1.12 on my system, which doesn't, but the 1.20 manual mentions it... (3 Replies)
Discussion started by: Annihilannic
3 Replies
5. Shell Programming and Scripting
Hi Guys,
totally new to scripting.
I have a huge list of foleders.
I want to tar the contents of each folder inside the same folder and the name of the tar file is the same name as the folder.
how would I go about this in scirpt?
cheers
Viper (3 Replies)
Discussion started by: brownviper1966
3 Replies
6. What is on Your Mind?
Hello!
I'm about to embark on a new project to port the VPM (Variable Permability Model) for decompression diving from some old BASIC code (attached, "VPM.txt") to PHP.
Then, I plan to create a plugin for this site where folks can run VPM on the web.
Then, I plan to improve VPM based on... (15 Replies)
Discussion started by: Neo
15 Replies
7. What is on Your Mind?
Continued from here.
Port the main loop C code to PHP. Here is the C code for the main loop:
/* =============================================================================== */
/* Begin MAIN proc (see endofpgm for alternate entry) */
/*... (2 Replies)
Discussion started by: Neo
2 Replies
8. Solaris
I have recently built a new server and patched Soalris 10 up tp latest bundle etc...
When I run a decompress using the format zcat fred.Z |tar -xvf - it runs at a very slow rate.
A similiar server which is less powerful runs over twice as quick.
Is there any work arounds to configure decompress... (4 Replies)
Discussion started by: smcart
4 Replies
9. Post Here to Contact Site Administrators and Moderators
Hi Neo,
i have followed your porting of the VPM algorithm to C+. Did you ever finish this exercise? I am playing around with some ARM chips and would love to run the algorithm on them... would you care to share the final results?
Thanks for your help.
Greetings Carsten (0 Replies)
Discussion started by: carsten
0 Replies
rand(3C) rand(3C)
NAME
rand(), rand_r(), srand() - simple random-number generator
SYNOPSIS
DESCRIPTION
uses a multiplicative, congruential, random-number generator with period 2^32 that returns successive pseudo-random numbers in the range
from 0 to 2^15-1.
can be called at any time to reset the random-number generator to a random starting point. The generator is initially seeded with a value
of 1.
returns a random number at the address pointed to by the randval parameter. The seed parameter can be set at any time to start the random-
number generator at an arbitrary point.
Note
The spectral properties of leave a great deal to be desired. provides a much better, though more elaborate, random-number generator (see
drand48(3C)).
RETURN VALUE
If seed or randval is NULL, returns 0. Otherwise, returns a psuedo-random integer.
EXAMPLES
The following:
int x, y;
srand(10);
x = rand();
y = rand();
would produce the same results as:
int x, y, s = 10;
x=rand_r(&s);
y=rand_r(&s);
WARNINGS
Users of should note that rand_r() now conforms with POSIX.1c. The old prototype of is supported for compatibility with existing DCE
applications only.
SEE ALSO
drand48(3C), random(3M), thread_safety(5), random(7).
STANDARDS CONFORMANCE
rand(3C)