Page Breaks


 
Thread Tools Search this Thread
Top Forums Programming Page Breaks
# 1  
Old 06-28-2005
Page Breaks

Hi,

I have a program in Pro*c when I run it I have no problem with the output but when it runs via the at command and except the output has page breaks every 66 lines. I don't want those page breaks to be in the output.

any idea?
# 2  
Old 06-28-2005
You're talking about running the script in sqlplus, I assume
Code:
SET PAGESIZE 0
spool myfile.lis
@myscript
spool off

# 3  
Old 06-28-2005
No this is not it it's a Pro*C program it's not spool.

but thanks anyway
# 4  
Old 06-28-2005
Sorry - you mean the "at" unix command.
Could you please display the at command you're using?
# 5  
Old 06-28-2005
at -f $HOME/submit_test.shl now


submit_test.shl
/usr/bin/expect $HOME/test_ex.shl > $HOME/submit_test.log

test_ex.shl
spawn /app/test.shl

test.shl
$EXE_HOME/test -f -o $OUTPUT/test.lis

the last command will run the test.pc program and the output (test.lis) will have this extra page breaks if I run it directly from my folder there's no extra page breaks

Thanks
# 6  
Old 06-28-2005
Does test.pc write to stdout? ie., does it dup2 stdout and redirect it to the -o argument? If so:

Some default tty settings insert page breaks. Check the LINES environment variable inside test.shl, also insert a stty command in test.shl. You may need to alter your environment settings in test.shl or stop duping stdout.

If you are calling fopen("filename", "w"); I have NO idea what could cause the problem.
# 7  
Old 06-29-2005
Actually the pc file is not using the fopen, just do the prtstr and the default output is the same pc file name but with .lis extention.

if we don't redirect the output the default output has no problem, so the extra page breaks occur when we do the -o and specify the output name.

I'll check the tty settings.

Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Page breaks and line breaks

Hi All, Need an urgent solution to an issue . We have created a ksh file or shell script which generates 1 DAT file. the DAT file contains extract of a select statement . Now the issue is , when we are executing the ksh file , the output is coimng with page breaks and line breaks . We have... (4 Replies)
Discussion started by: Ayaskant
4 Replies

2. Shell Programming and Scripting

script for adding page number before page breaks

Hi, If there is an expert that can help: I have many txt files that are produced from pdftotext that include page breaks the page breaks seem to be unix style hex 0C. I want to add page numbers before each page break as in : Page XXXX Regards antman (9 Replies)
Discussion started by: antman
9 Replies

3. Shell Programming and Scripting

Print multiple copies page by page using lp command

Hi I have a pdf file that is being generated using the rwrun command in the shell script. I then have the lp command in the shell script to print the same pdf file. Suppose there are 4 pages in the pdf file , I need to print 2 copies of the first page, 2 copies of the second page , then 2... (7 Replies)
Discussion started by: megha2525
7 Replies

4. Web Development

Page load time- local page

Hi Is there a way to calculate the page load time, I am trying to calculate the load time of a page locally. I found tools to do this over http or https but none that work locally. Any ideas? Thanks. (4 Replies)
Discussion started by: jamie_123
4 Replies

5. UNIX for Dummies Questions & Answers

display command output page per page

Good afternoon, I wonder how i could use unix commands to ease the reading of long command result output ? like the "php -i" or any other command that returns a long answer. I could not find the right terms to Google it or search the forum. Therefore I bother you with this question. ... (3 Replies)
Discussion started by: Mat_k
3 Replies

6. Solaris

High Page In and Executable page In

Hi, Currently I'm experience very high page ins on my system running on solaris 10. From vmstat, the page ins figure is very high, further drill down shows the page ins are from file system and occassional spike in executable page ins. Details as follow: oracle@perch:/files>> vmstat 5... (9 Replies)
Discussion started by: srage
9 Replies

7. Shell Programming and Scripting

Help on page breaks

Hi, I am new to Unix (AIX). I have a header (in a text file) that needs to be wrtitten on all the pages of a result file (text file). After the header is written, data needs to be read from a file A(text file) and inserted to the result file. If the number of lines reaches 80 in a page, page... (1 Reply)
Discussion started by: simhasuri
1 Replies

8. Shell Programming and Scripting

lpr- how to print from page to page

hi all i have file_1 which contains 66 pages and i want to print only page 1 to 3 i try to write like this lp -d name_of_printer file_1 -P 1-7 this command does not work any ideas ? (4 Replies)
Discussion started by: naamas03
4 Replies

9. Shell Programming and Scripting

How to remove page breaks from a flat file???

Hi All, I get a flat file with its last field data splitting onto a new line.I got this program from Vgersh which when run would cancatenate the split data back to the end of the previous records.But this program fails when it encounters a page break between the split data and the previous... (5 Replies)
Discussion started by: kumarsaravana_s
5 Replies

10. Shell Programming and Scripting

Insert page breaks into .csv file

I have large .csv files that I need to get page breaks into. I am taking comma delimited files of over a million records and putting them into a pdf file. Is there a way, using sed or otherwise, to insert some type of page break character into my file? (2 Replies)
Discussion started by: welsht
2 Replies
Login or Register to Ask a Question