The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
'exec /bin/sh' breaks alias stulincoln Shell Programming and Scripting 1 05-29-2008 01:00 PM
Help on page breaks simhasuri Shell Programming and Scripting 1 01-31-2008 04:51 PM
Newbie ? Need Help with If/Then & Line Breaks... kthatch UNIX for Dummies Questions & Answers 1 05-01-2007 08:44 PM
How to remove page breaks from a flat file??? kumarsaravana_s Shell Programming and Scripting 5 04-17-2007 09:51 AM
Insert page breaks into .csv file welsht Shell Programming and Scripting 2 02-04-2005 02:39 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-28-2005
rama71 rama71 is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 9
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 (permalink)  
Old 06-28-2005
jim mcnamara jim mcnamara is online now Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,779
You're talking about running the script in sqlplus, I assume
SET PAGESIZE 0 spool myfile.lis @myscript spool off
-->
Code:
SET PAGESIZE 0
spool myfile.lis
@myscript
spool off
        
  #3 (permalink)  
Old 06-28-2005
rama71 rama71 is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 9
No this is not it it's a Pro*C program it's not spool.

but thanks anyway
  #4 (permalink)  
Old 06-28-2005
jim mcnamara jim mcnamara is online now Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,779
Sorry - you mean the "at" unix command.
Could you please display the at command you're using?
  #5 (permalink)  
Old 06-28-2005
rama71 rama71 is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 9
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 (permalink)  
Old 06-28-2005
jim mcnamara jim mcnamara is online now Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,779
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.
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:37 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0