04-07-2014
Moderator's Comments:
|
|
We are not a free scriptwriting service. What have you tried?
|
|
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
ive looked around for software to do this in linux, but am still not sure how to. i want to be able to mount a cdr and write to it and be able to take the disk out and finish writing whatever i want to it at a later time. can we do this in linux? (4 Replies)
Discussion started by: norsk hedensk
4 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I need to do croning in PHP to generate a CDR (Call Details Record) file daily from the mysql database.
The CDR file has to be named in a certain sequence such as xx00000xxx200604080850.cdr. A new file is written every day.
The generated CDR file is then ftp over to a server.
I am... (0 Replies)
Discussion started by: kurl
0 Replies
3. UNIX for Dummies Questions & Answers
as you can see there is a delimiter after c8 "::". Awk sees the rest as fields because it doesn't recognize spaces and tabs as delimiters. So i am basically looking to isolate 20030003ba13f6cc. Can anyone help?
c8::20030003ba13f6cc disk connected configured unknown (2 Replies)
Discussion started by: rcon1
2 Replies
4. Shell Programming and Scripting
Dear Freind
in the file attached how parse the data to be like a normal table
:D (3 Replies)
Discussion started by: saifsafaa
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have to append 2 files and while appending i need to add a running sequence number (counter ) for each line at the first column.
For e.g. If file x contains details as below.
Tom
Dick
Harry
Charlie
and file y contains
Boston
Newyork
LA
Toledo
Then the new file should... (1 Reply)
Discussion started by: kalyansid
1 Replies
6. Shell Programming and Scripting
Hello Friends,
I need to examine a huge CDR file according to a complex (at least for me) condition like below and i couldnt write anything :(
In CDR file there are more than hundreds of fields, I need to print the rows which matches the below condition:
while $13 field of subsequent... (9 Replies)
Discussion started by: EAGL€
9 Replies
7. Shell Programming and Scripting
Hi all,
I have a file like this
ID 3BP5L_HUMAN Reviewed; 393 AA.
AC Q7L8J4; Q96FI5; Q9BQH8; Q9C0E3;
DT 05-FEB-2008, integrated into UniProtKB/Swiss-Prot.
DT 05-JUL-2004, sequence version 1.
DT 05-SEP-2012, entry version 71.
FT COILED 59 140 ... (1 Reply)
Discussion started by: manigrover
1 Replies
8. Shell Programming and Scripting
Need to use dd to generate a large file from a sample file of random data. This is because I don't have /dev/urandom.
I create a named pipe then:
dd if=mynamed.fifo do=myfile.fifo bs=1024 count=1024
but when I cat a file to the fifo that's 1024 random bytes:
cat randomfile.txt >... (7 Replies)
Discussion started by: Devyn
7 Replies
9. Shell Programming and Scripting
hi team,
i need a script for renaming a file with sequence number. script get a file from one directory'/home/billing/Cmm/sms/sms_tmp' append sequence no at the end of file name and move a file to other directory/home/billing/Cmm/sms/.
actual file is cdr201508271527 file after renaming ... (3 Replies)
Discussion started by: mfaizan40
3 Replies
10. BSD
I am setting this thread to this bsd forum, though it may fit into bash. But as using bsd and the terminal, I would like to generate a random sequence of alphanumerical digits, such as I use to do so on linux by typing just
mcookiethis one gives me a pretty random password, but it does not on bsd... (0 Replies)
Discussion started by: 1in10
0 Replies
LEARN ABOUT DEBIAN
srandom
RANDOM(9) BSD Kernel Developer's Manual RANDOM(9)
NAME
arc4rand, arc4random, random, read_random, srandom -- supply pseudo-random numbers
SYNOPSIS
#include <sys/libkern.h>
void
srandom(u_long seed);
u_long
random(void);
void
arc4rand(void *ptr, u_int length, int reseed);
u_int32_t
arc4random(void);
#include <sys/random.h>
int
read_random(void *buffer, int count);
DESCRIPTION
The random() function will by default produce a sequence of numbers that can be duplicated by calling srandom() with '1' as the seed. The
srandom() function may be called with any arbitrary seed value to get slightly more unpredictable numbers. It is important to remember that
the random() function is entirely predictable, and is therefore not of use where knowledge of the sequence of numbers may be of benefit to an
attacker.
The arc4rand() function will return very good quality random numbers, slightly better suited for security-related purposes. The random num-
bers from arc4rand() are seeded from the entropy device if it is available. Automatic reseeds happen after a certain timeinterval and after
a certain number of bytes have been delivered. A forced reseed can be forced by passing a non-zero value in the reseed argument.
The read_random() function is used to return entropy directly from the entropy device if it has been loaded. If the entropy device is not
loaded, then the buffer is filled with output generated by random(). The buffer is filled with no more than count bytes. It is advised that
read_random() is not used; instead use arc4rand()
All the bits generated by random(), arc4rand() and read_random() are usable. For example, 'random()&01' will produce a random binary value.
The arc4random() is a convenience function which calls arc4rand() to return a 32 bit pseudo-random integer.
RETURN VALUES
The random() function uses a non-linear additive feedback random number generator employing a default table of size 31 long integers to
return successive pseudo-random numbers in the range from 0 to (2**31)-1. The period of this random number generator is very large, approxi-
mately 16*((2**31)-1).
The arc4rand() function uses the RC4 algorithm to generate successive pseudo-random bytes. The arc4random() function uses arc4rand() to gen-
erate pseudo-random numbers in the range from 0 to (2**32)-1.
The read_random() function returns the number of bytes placed in buffer.
AUTHORS
Dan Moschuk wrote arc4random().
Mark R V Murray wrote read_random().
BSD
September 25, 2000 BSD