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
LEARN ABOUT OPENSOLARIS
srand
rand(3UCB) SunOS/BSD Compatibility Library Functions rand(3UCB)
NAME
rand, srand - simple random number generator
SYNOPSIS
/usr/ucb/cc [ flag ... ] file ...
int rand();
int srand(seed)
unsigned seed;
DESCRIPTION
rand() uses a multiplicative congruential random number generator with period 2^32 to return successive pseudo-random numbers in the range
from 0 to 2^31 -1.
srand() 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.
SEE ALSO
cc(1B), drand48(3C), rand(3C), random(3C)
NOTES
Use of these interfaces should be restricted to only applications written on BSD platforms. Use of these interfaces with any of the system
libraries or in multi-thread applications is unsupported.
The spectral properties of rand() leave a great deal to be desired. drand48(3C) and random(3C) provide much better, though more elaborate,
random-number generators.
The low bits of the numbers generated are not very random; use the middle bits. In particular the lowest bit alternates between 0 and 1.
SunOS 5.11 30 Oct 2007 rand(3UCB)