- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Duplex printing from oracle forms fix needed using...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 04:12 AM
04-14-2003 04:12 AM
Duplex printing from oracle forms fix needed using SED
i have fount what seems to be the answer but are having problems making the SED script work.
the report looks like the before example in the attachment and i need it to look like the after example in the attachment.
it is worth mentioning that there is one instance of the BeginSetup section but multiple of the BeginPageSetup and all the instances need Setting as in the after section of the attachment.
There are currently two scripts that i have to run the output file though to get the desired affect they are as follows i want to do it in one script. i thought i had but it doesn't work( see Duplex2) and i still have to run it though Duplex1 manually as well.
Duplex1
s/Duplex None/Duplex/g
s/Duplex false/Duplex true/g
/^%%BeginPageSetup/,$ {
/^%%BeginFeature/,/^%%EndFeature/d
}
Duplex2
s/Duplex None/Duplex/g
s/Duplex false/Duplex true/g
/^%%BeginPageSetup/,$ {
/^%%BeginFeature/,/^%%EndFeature/d
}
/^%%BeginSetup/,$ {
/^%%BeginFeature/,/^%%EndFeature/d
}
help this has been giong on to long.
andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 05:03 AM
04-14-2003 05:03 AM
Re: Duplex printing from oracle forms fix needed using SED
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 10:10 AM
04-15-2003 10:10 AM
Re: Duplex printing from oracle forms fix needed using SED
Your example didn't have the Duplex settings in it, so I'm not sure where those fall. If they're not in one of the "Feature" sections, then the following seems to do what you want:
sed '/^%%BeginFeature/,/^%%EndFeature/d;s/Duplex None/Duplex/g;s/Duplex false/Duplex True/g'
If the Duplex settings are in the Feature sections, you'll have to play around with the hold space so you can put the change to the hold space, then copy it back out. It might be ugly, though.
Good luck!
Seth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 06:11 AM
04-22-2003 06:11 AM
Re: Duplex printing from oracle forms fix needed using SED
this seems to work fine if i run it manually, but i need it to run from a batch job using forms 6.
i have been trying to use the TK_PRINT variable set up in the .KSHRC file in the users home directory.
but it doesn't seem to like the command when applied to a sed script and then read in at the appropriate time using TK_PRINT and sugestions as to what i should include in the sed script to get this to work.
regards
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 06:30 AM
04-22-2003 06:30 AM
Re: Duplex printing from oracle forms fix needed using SED
Is this a network printer.
If so set up a copy of the printer only for the ORACLE and change the script for the copy printer to do duplex by default.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 06:33 AM
04-22-2003 06:33 AM
Re: Duplex printing from oracle forms fix needed using SED
If you are usig a network printer then make a new printer in your spooler which is only for ORACLE and chenge the script in
/etc/lp/interface/model.orig to do duplex by default.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 06:59 AM
04-22-2003 06:59 AM
Re: Duplex printing from oracle forms fix needed using SED
it seems to see this section and think that it is a new page each time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 06:59 AM
04-22-2003 06:59 AM
Re: Duplex printing from oracle forms fix needed using SED
it seems to see this section and think that it is a new page each time.
regards
andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 08:18 AM
04-22-2003 08:18 AM
Re: Duplex printing from oracle forms fix needed using SED
Here's to good luck..!
Seth