08-22-2016
Quote:
Originally Posted by
zajtat
I was going through the post again to look over things and have double-checked that the perl script works fine with files that have numbers as names. There are no bugs in perl script and there has never been such a problem, that's why I've answered a question about the name of the output file that it does not matter. I did try to provide clear information and answer all the questions to the best of my abilities and I apologise that it was not understandable. Thank you all of your time and help once more!
Apologies for any typos.
But was it tested with a file named 0, zero? Looking at your alternative code there is NO 0, zero, file generated at all; your files start with the number 1.
We are not trying to belittle you, just glean as much information as possible to satisfy your requirements. You have no idea how difficult some problems are for volunteers on here, and remember we ARE volunteers, to solve with limited or incorrect information. Until late into this thread no-one even knew about a Perl script and the error report pointed straight to an unknown script at that time. If we had the Perl script to view the Perl experts on here would have probably solved your problem without ANY errors from either the Perl or the Shell scripts well inside in less than 20 odd replies.
There can't be anything so secret about your Perl script that you cannot show it to us.
Your Perl script might need a specific _library_/module and that module may be causing this error, who knows, we don't, as we do not have this script to view.
Please oh please, for everyones' sanity, give as much information as possible so that the big guns on here, who give their time for free, can supply you with a solution ASAP.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
This site has been very helpful thus far.. I thank you all in advance for sharing the knowledge. Let me get to it.
I am trying to write a very small script to take away from the boredom of doing the same thing over and over.
Everynow and again I have to get the hex value of a file using a... (2 Replies)
Discussion started by: BkontheShell718
2 Replies
2. UNIX for Advanced & Expert Users
How can we view all the input/output settings of unix environment for a session (6 Replies)
Discussion started by: paritoshc
6 Replies
3. Shell Programming and Scripting
Hi,
I am having an Input file .which is having a list of names.
comapring with our database , needs to write the out put in file called output.txt , format should be name--> country--->phone number
could you please help me..
thanks in advance (7 Replies)
Discussion started by: hegdeshashi
7 Replies
4. Shell Programming and Scripting
Hi there
could anybody point me in the right direction when it comes to looping through the output of a system command in perl (i.e. df -k) doing a test against each line to see if it matches?
for example if i have a df -k output like this and I wanted to grab the lines that matched "sda" or... (3 Replies)
Discussion started by: rethink
3 Replies
5. Shell Programming and Scripting
Hi,
I have two files , one file with data file with attributes that need to be sent to another file to generate a predefined format.
Example:
File.txt
AP|{SSHA}VEEg42CNCghUnGhCVg==
APVG3|{SSHA}XK|"password"
AP3|{SSHA}XK|"This is test"
....
etc
---------
test.sh has... (1 Reply)
Discussion started by: hudson03051nh
1 Replies
6. Solaris
Hi friends,
I'm newbie to SVM.
Just wanna try installed it on one of our server (to do mirroring for disk0 and disk1) but i think im lost until now. :(
the steps i've taken is as below:-
1.prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2
2.metadb -a -c 3 -f c1t0d0s7... (3 Replies)
Discussion started by: kronenose
3 Replies
7. Shell Programming and Scripting
Legends,
I want to remain in the script until user passes the correct name.
I had tried the below code; but it didn't work out.
Please help
echo "\nPlease enter the source system: \c"
while read SYSTEM_NAME
do
if ];
then
echo "\nMaking $SYSTEM_NAME as source system for particular... (5 Replies)
Discussion started by: sdosanjh
5 Replies
8. Shell Programming and Scripting
I have been trying this program for a long time. I am trying to read a file named "odon" line by line; read the first line, send it to do a command saved in a file "perm", once the first line has finished going through the content of the file perm, the result is saved with the number of the line.... (17 Replies)
Discussion started by: iconig
17 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
I am trying to loop through the string contents of an array, to add it during the saving of the output files. I am trying this code to print each column and save it to unique file name, but it doesn't work. Thanks for any help.
fnam=(japan usa uk)
alldata.dat contained sample data... (1 Reply)
Discussion started by: ida1215
1 Replies
10. Shell Programming and Scripting
Hi,
I have some output from 'ls' command and I want to loop over the output in a bash script. What would be a good way to go about it?
For example, if the output of the ls command gives me 'prefix1 prefix2 prefix3', how can I set a loop that will iterate over these?
many thanks! (5 Replies)
Discussion started by: pc2001
5 Replies
ES2TS(1) User Commands ES2TS(1)
NAME
es2ts - convert ES to TS
SYNOPSIS
es2ts [switches] <infile> <outfile>
DESCRIPTION
TS tools version 1.11, es2ts built Nov 11 2008 17:15:46
Convert an elementary video stream to H.222 transport stream. Supports input streams conforming to MPEG-2 (H.262), MPEG-4/AVC
(H.264) and AVS. Also supports MPEG-1 input streams, insofar as MPEG-2 is backwards compatible with MPEG-1.
Note that this program works by reading and packaging the elementary stream packages directly - it does not parse them as H.262 or
H.264 data.
Files:
<infile>
is a file containing the Elementary Stream data (but see -stdin below)
<outfile>
is an H.222 Transport Stream file (but see -stdout and -host below)
Switches:
-pid <pid>
<pid> is the video PID to use for the data. Use '-pid 0x<pid>' to specify a hex value. Defaults to 0x68.
-pmt <pid>
<pid> is the PMT PID to use. Use '-pmt 0x<pid>' to specify a hex value. Defaults to 0x66
-verbose, -v
Output summary information about each ES packet as it is read
-quiet, -q
Only output error messages
-stdin Take input from <stdin>, instead of a named file
-stdout
Write output to <stdout>, instead of a named file Forces -quiet.
-host <host>, -host <host>:<port>
Writes output (over TCP/IP) to the named <host>, instead of to a named file. If <port> is not specified, it defaults to 88.
-max <n>, -m <n>
Maximum number of ES data units to read
Stream type:
When the TS data is being output, it is flagged to indicate whether it conforms to H.262, H.264 or AVS. It is important to get this
right, as it will affect interpretation of the TS data.
If input is from a file, then the program will look at the start of the file to determine if the stream is H.264, H.262 or AVS. This
process may occasionally come to the wrong conclusion, in which case the user can override the choice using the following switches.
If input is from standard input (via -stdin), then it is not possible for the program to make its own decision on the input stream
type. Instead, it defaults to H.262, and relies on the user indicating if this is wrong.
-h264, -avc
Force the program to treat the input as MPEG-4/AVC.
-h262 Force the program to treat the input as MPEG-2.
-avs Force the program to treat the input as AVS.
TS tools version 1.11, es2ts built Nov 11 2008 17:15:46
Convert an elementary video stream to H.222 transport stream. Supports input streams conforming to MPEG-2 (H.262), MPEG-4/AVC
(H.264) and AVS. Also supports MPEG-1 input streams, insofar as MPEG-2 is backwards compatible with MPEG-1.
Note that this program works by reading and packaging the elementary stream packages directly - it does not parse them as H.262 or
H.264 data.
Files:
<infile>
is a file containing the Elementary Stream data (but see -stdin below)
<outfile>
is an H.222 Transport Stream file (but see -stdout and -host below)
Switches:
-pid <pid>
<pid> is the video PID to use for the data. Use '-pid 0x<pid>' to specify a hex value. Defaults to 0x68.
-pmt <pid>
<pid> is the PMT PID to use. Use '-pmt 0x<pid>' to specify a hex value. Defaults to 0x66
-verbose, -v
Output summary information about each ES packet as it is read
-quiet, -q
Only output error messages
-stdin Take input from <stdin>, instead of a named file
-stdout
Write output to <stdout>, instead of a named file Forces -quiet.
-host <host>, -host <host>:<port>
Writes output (over TCP/IP) to the named <host>, instead of to a named file. If <port> is not specified, it defaults to 88.
-max <n>, -m <n>
Maximum number of ES data units to read
Stream type:
When the TS data is being output, it is flagged to indicate whether it conforms to H.262, H.264 or AVS. It is important to get this
right, as it will affect interpretation of the TS data.
If input is from a file, then the program will look at the start of the file to determine if the stream is H.264, H.262 or AVS. This
process may occasionally come to the wrong conclusion, in which case the user can override the choice using the following switches.
If input is from standard input (via -stdin), then it is not possible for the program to make its own decision on the input stream
type. Instead, it defaults to H.262, and relies on the user indicating if this is wrong.
-h264, -avc
Force the program to treat the input as MPEG-4/AVC.
-h262 Force the program to treat the input as MPEG-2.
-avs Force the program to treat the input as AVS.
SEE ALSO
The full documentation for es2ts is maintained as a Texinfo manual. Please check http://tstools.berlios.de for more information.
es2ts 1.11 November 2008 ES2TS(1)