06-30-2010
There is no problem in the statements used in both the approaches.
1. check that zero file size is created as soon as you ran the perl script. Or output or previous run.
2. Check the file was created by another user you dont have permission to over write/append it.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi folks
I have a file with thousands of lines with fixed length fields:
sample (assume x is a blank space)
111333xx444TTTLKOPxxxxxxxxx
I need to make a copy of this file but with only some of the field positions, for example I'd like to copy the sample to the follwing: so I'd like to... (13 Replies)
Discussion started by: HealthyGuy
13 Replies
2. Shell Programming and Scripting
Hello,
I am trying to output the values in an array to a file. The output needs to be formated such that each array value is left jusified in a field 8 character spaces long. Also, no more than 6 fields on a line. For example:
@array= 1..14;
Needs to be output to the file like so:
1 ... (4 Replies)
Discussion started by: seismic_willy
4 Replies
3. Shell Programming and Scripting
Hi All,
I am writing a Perl script such that the output from "perl myscript.pl file1" to be appended to another file name called file2.
I tried out with the below code but couldn't work.
Can any expert give me some advice?
open(OUTPUT, 'perl myscript.pl file1 |');
close OUTPUT;... (7 Replies)
Discussion started by: Raynon
7 Replies
4. Shell Programming and Scripting
In my server migration requirement, I need to compare if one file on old server is exactly the same as the corresponding file on the new server.
For diff and comm, the inputs need to be sorted. But I do not want to disturb the content of the file and need to find byte-to-byte match.
Please... (4 Replies)
Discussion started by: krishmaths
4 Replies
5. Shell Programming and Scripting
here is simple perl script i wanted for my net connection ... just to check if default gateway is pingable or not if not write in log file but problem is that i can not write in file i can print on STDOUT but not in file ...why so ??
same thing was there when i was tying to write on sockets... (7 Replies)
Discussion started by: zedex
7 Replies
6. Shell Programming and Scripting
Hi All
Can anyone please suggest me how to remove the last byte from a falt file .This is from the last line's last BYTE.
Please suggest me something.
Thank's and regards
Vinay (1 Reply)
Discussion started by: vinayrao
1 Replies
7. Shell Programming and Scripting
Hi,
I am new to perl
I need to connect from linux server to oracle database and i need to query the database and take result into csv file.
i try to do but i am getting this error:
#!/usr/bin/perl
use DBI;
BEGIN {
$ENV{ORACLE_HOME} = '/home/oracle/product/8.1.7';
... (1 Reply)
Discussion started by: prakash.gr
1 Replies
8. Shell Programming and Scripting
As an simple example, I have the following files
fin1.zv being a one column set of number
1 90
2 80
3 60
4 30
5 20
fin2.zv is another file like this
1 10 20 30 40 50
2 60 70 80 90 0
3 90 80 70 60 50
4 40 30 20 10 0
5 10 20 30 40 50 (2 Replies)
Discussion started by: kristinu
2 Replies
9. Programming
I am writing a mod perl 2 download module and I am facing the same issue as this guy.
mp2 / Apache byterange filter | ModPerl | ModPerl
If I remove the check for EOS in byterange_filter.c and recompile Apache2, the byte range filter is executed and the result is correct but I am not sure that... (0 Replies)
Discussion started by: metalbone
0 Replies
10. Shell Programming and Scripting
Hi,
I have a unix shell script which generates a flat file after connecting to Teradata servers to fetch tables and views and also picks up modified unix scripts from the specified paths.
Later on the script calls a perl script to assign a value based on the type of object in the flat file which... (2 Replies)
Discussion started by: yohasini
2 Replies
LEARN ABOUT DEBIAN
cuebreakpoints
cuebreakpoints(1) General Commands Manual cuebreakpoints(1)
NAME
cuebreakpoints - report track breakpoints from a CUE or TOC file
SYNOPSIS
cuebreakpoints [ { -i format | --input-format=format } { --append-gaps | --prepend-gaps | --split-gaps } ] [ file ... ]
cuebreakpoints --help
DESCRIPTION
cuebreakpoints reports the track breakpoints found in CUE and TOC files, which are typically created by compact disc ripping software. The
breakpoints are in a format usable by shnsplit (part of the shntool package).
Three approaches to track pregaps are availabe: append (to previous track), prepend (to succeeding track), and split (from both preceding
and succeeding tracks). The split approach can result in up to twice as many breakpoints being reported as there are tracks on the disc.
The first track's pregap cannot be appended to the previous track, so it is prefixed to the track in both append and prepend modes. If you
want the track without it, use the --split-gaps option.
If no filenames are specified, cuebreakpoints reads from standard input, and an input format option must be specified. If one or more
filenames is provided, but the input format option is not specified, the input format will be guessed based on each file's suffix (e.g.,
.cue or .toc). This heuristic is case-insensitive.
OPTIONS
-h, --help
displays a usage message and exits.
-i format, --input-format=format
sets the expected format of the input file(s) to format, which must be either cue or toc.
--append-gaps
appends pregaps to the end of the previous track. This is the default.
--prepend-gaps
prefixes pregaps to the beginning of each subsequent track.
--split-gaps
separates pregaps from both the preceding and succeeding tracks.
If more than one of --append-gaps, --prepend-gaps, and --split-gaps are specified, all except the last encountered are ignored.
EXIT STATUS
cuebreakpoints exits with status zero if it successfully generates a report for each input file, and nonzero if there were problems.
AUTHOR
Cuetools was written by Svend Sorensen. Branden Robinson contributed fixes and enhancements to the utilities and documentation.
SEE ALSO
cueconvert(1), cueprint(1)
cuebreakpoints(1)