Sponsored Content
Top Forums Shell Programming and Scripting genrating pseudo random numbers Post 302115739 by hack_tom on Friday 27th of April 2007 12:58:40 AM
Old 04-27-2007
ok if this is not possible atleast you can help me with perl script to generate following file

--------------------------------
mov t1
mov t2
mov t3
...
..
..
.
mov tn

where t1, t2, t3, .... tn are pseudo random numbers whose value ranges from 0 to largest 32 bit number.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Random numbers without repetition

Is anyone know some scripts to generate random number without repetition using bash; for example generate 10 different random numbers. Thanks (8 Replies)
Discussion started by: asal_email
8 Replies

2. Solaris

pseudo: [ID 129642 kern.info] pseudo-device: vol0

Hi I have a system that gave me some messages on bootup that I was not used to seeing: pseudo: pseudo-device: vol0 genunix: vol0 is /pseudo/vol@0 these came with these: Feb 13 17:42:17 system1 eri: SUNW,eri0 : 100 Mbps full duplex link up Feb 13 17:42:21 system1sendmail: My unqualified... (0 Replies)
Discussion started by: mndavies
0 Replies

3. Shell Programming and Scripting

Random numbers from 0 to 1000

Hello All, I want to make a simple script which generate random number from 0 to 1000. and simply display it. Plz HELP!!!!!! Regards, Waqas Ahmed (2 Replies)
Discussion started by: wakhan
2 Replies

4. Shell Programming and Scripting

Random Numbers - Perl

Hi Guys I have a script to find Ranomd numbers. But I want to make the file to produce more random. Could u guys help me plz. In this Script I have the code that generates random in for loop and the range I have specified in my %chromlength input and out put will be like this chrno start end... (3 Replies)
Discussion started by: repinementer
3 Replies

5. Shell Programming and Scripting

Generating random numbers

Hi, I am having trouble with generating random numbers. can this be done with awk? So I have a file that looks like this: 23 30 24 40 26 34 So column1 is start and column2 is end. I want to generate 3 random #'s between start and stop: So the output will look like this: ... (9 Replies)
Discussion started by: phil_heath
9 Replies

6. Programming

Random numbers in parent/child?

Hi I'm trying to generate random numbers both in parent process and the child process. But I get the same random number in both processes. Why doesn't it generate different numbers altough I seed random number generator? Here's my code: #include <stdio.h> #include <unistd.h> #include... (2 Replies)
Discussion started by: xyzt
2 Replies

7. Shell Programming and Scripting

Replace a random string of numbers

Hi Can someone help me with this one? I have string.. (PROC_PROC_ID == 12183) <--PID is dynamic and i want to replace the PID number with whatever PID from /opt/hpws/apache32_2/logs/httpd.pid file. i'm having problem since the PID on the string is dynamic. It may be 2-5 digits or more. ... (5 Replies)
Discussion started by: ryandegreat25
5 Replies

8. Shell Programming and Scripting

Auto Ftp pseudo random file

I have a script that generates a file which is my own incarnation of a date using the 'date' function (we'll call this script a). I would like that script to invoke my other script (script b) which contains my ftp info. Since I have yet to figure out a good way to use regular ftp (yes i can only... (6 Replies)
Discussion started by: DC Slick
6 Replies

9. Homework & Coursework Questions

Random numbers

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! Write a shell script that will take the sum of two random number? Ex: Random n1 +Random n2 = result i tries to write it but i had some dufficulties ... (3 Replies)
Discussion started by: renegade755
3 Replies
qtmodernizer(1) 					    BSD General Commands Manual 					   qtmodernizer(1)

NAME
qtmodernizer -- Tool to convert legacy movies to modern format with minimal changes. SYNOPSIS
qtmodernizer [options ...] pathToSource [pathToDestination] DESCRIPTION
qtmodernizer is a command line tool to examine a media file which may be in a legacy format or may contain legacy media tracks. In this case a legacy format is one which cannot be read directly by CoreMedia or AVFoundation frameworks. qtmodernizer examines all the tracks to determine if they are all in a form that can currently be played. If all tracks are playable and the format is readable, qtmodernizer does returns and does nothing. If any of the audio or video tracks are encoded with a codec that CoreMedia does not support, that track will be converted to a modern format, usually H.264 for video and AAC for audio (see --useprores for other choices). Command line options of qtmodernizer: -h | --help -p | --useprores If -p or --useprores is specified, qtmodernizer will use the ProRes video codec and LPCM audio codec instead of H.264 and AAC-LC. For video tracks it will produce AppleProRes422. For audio it will produce uncompressed output (lpcm). Tracks outher than audio or video are not re-encoded and will not be affected. Either AppleProRes422 may be chosen or the AppleProRes4444 option may be chosen but not both. -p4 | --useprores4444 If -p4 or --useprores4444 is specified, qtmodernizer will use the ProRes4444 video codec and LPCM audio codec instead of H.264 and AAC-LC. For video tracks it will produce AppleProRes4444. For audio it will produce uncompressed output (lpcm). Tracks outher than audio or video are not re-encoded and will not be affected. Either AppleProRes4444 may be chosen or the AppleProRes422 option may be chosen but not both. -r | --replace Normally qtmodernizer will not replace any existing files. If --replace is specified, a file already existing at the destination path will be replaced by the new output. qtmodernizer will not replace the file at original source path used in the command. -v | --verbose Normally qtmodernizer only displays important error or warning messages. Specifying --verbose causes other information about the modernization to be displayed on the command line. --infoonly implies --verbose. -i | --infoonly Causes qtmodernizer to display information about the tracks contained in the source file and what the modernization process would be for each track (if any) but does not actually produce an output file. EXAMPLES
qtmodernizer legacy_movie.mov modern_movie.mov Each legacy audio and video track would be re-encoded to a modern (H.264 or AAC) track with other tracks passed through. The resulting movie is saved as modern_movie.mov qtmodernizer -p legacy_movie.mov modern_movie.mov Legacy audio and video tracks would be re-encoded like in the above example but the resulting codecs would be ProRes for video and LPCM for audio qtmodernizer ~/Movies/legacy_movie.mov This command will create a modernized movie in the ~/Movies directory named "legacy_movie-modernized.mov" HISTORY
qtmodernizer command first appeared in Mac OS X 10.9. Mac OS X May 31, 2019 Mac OS X
All times are GMT -4. The time now is 09:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy