Re: [U2] Trying to setup AIX virtual printer to generate PDF fromUniQuery

2011-01-10 Thread Ng, Caleb
Hi Steve,

Were you able to take a look at this?

Thanks,
Caleb Ng

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Steve Romanow
Sent: Wednesday, December 15, 2010 6:58 PM
To: U2 Users List
Subject: Re: [U2] Trying to setup AIX virtual printer to generate PDF
fromUniQuery

I have a virtual printer at work that runs a script I can look at.  It
will
be tomorrow before I can get details.

On Wed, Dec 15, 2010 at 6:57 PM, Ng, Caleb c...@sweetwater.org wrote:

 I am trying to set up a virtual print queue on AIX to direct a PROC to
 generate a UniData UniQuery statement that produces a report so that
it
 comes out as a PDF file using a2ps and ps2pdf (gs).  I can print the
 file manually from the command line but want to define this process as
a
 print queue which I'm having problems doing.   I was wondering if
anyone
 can point me down the right path.



 Thanks in advance.



 Caleb Ng

 Systems Analyst

 Sweetwater Authority

 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Trying to setup AIX virtual printer to generate PDF fromUniQuery

2011-01-10 Thread George Gallen
One problem might be that the ps2pdf script may not be memory dependant
and may require writing a file out, so the traditional --- | script | script | 
printer
might not work. You might need to write some form of script which takes the 
input
and then takes the output file and runs it into the other script, then takes the
output file from that one, and sends it to stdout, then you could use it as a 
filter
script.

I don't know anything about a2ps and ps2pdf, so I also could be totally off 
base.

Also, do a search for txt2pdf, that is a script we use to convert text output 
to pdf
files, there  isn't that  postscript secondary conversion.

George

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
 boun...@listserver.u2ug.org] On Behalf Of Ng, Caleb
 Sent: Monday, January 10, 2011 1:27 PM
 To: U2 Users List
 Subject: Re: [U2] Trying to setup AIX virtual printer to generate PDF
 fromUniQuery
 
 Hi Steve,
 
 Were you able to take a look at this?
 
 Thanks,
 Caleb Ng
 
 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org
 [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Steve
 Romanow
 Sent: Wednesday, December 15, 2010 6:58 PM
 To: U2 Users List
 Subject: Re: [U2] Trying to setup AIX virtual printer to generate PDF
 fromUniQuery
 
 I have a virtual printer at work that runs a script I can look at.  It
 will
 be tomorrow before I can get details.
 
 On Wed, Dec 15, 2010 at 6:57 PM, Ng, Caleb c...@sweetwater.org wrote:
 
  I am trying to set up a virtual print queue on AIX to direct a PROC
 to
  generate a UniData UniQuery statement that produces a report so that
 it
  comes out as a PDF file using a2ps and ps2pdf (gs).  I can print the
  file manually from the command line but want to define this process
 as
 a
  print queue which I'm having problems doing.   I was wondering if
 anyone
  can point me down the right path.
 
 
 
  Thanks in advance.
 
 
 
  Caleb Ng
 
  Systems Analyst
 
  Sweetwater Authority
 
  ___
  U2-Users mailing list
  U2-Users@listserver.u2ug.org
  http://listserver.u2ug.org/mailman/listinfo/u2-users
 
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Trying to setup AIX virtual printer to generate PDF fromUniQuery

2011-01-10 Thread Steve Romanow
Emailing you off list till we get sth working.

On Mon, Jan 10, 2011 at 1:36 PM, George Gallen ggal...@wyanokegroup.com wrote:
 One problem might be that the ps2pdf script may not be memory dependant
 and may require writing a file out, so the traditional --- | script | script 
 | printer
 might not work. You might need to write some form of script which takes the 
 input
 and then takes the output file and runs it into the other script, then takes 
 the
 output file from that one, and sends it to stdout, then you could use it as a 
 filter
 script.

 I don't know anything about a2ps and ps2pdf, so I also could be totally off 
 base.

 Also, do a search for txt2pdf, that is a script we use to convert text output 
 to pdf
 files, there  isn't that  postscript secondary conversion.

 George

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
 boun...@listserver.u2ug.org] On Behalf Of Ng, Caleb
 Sent: Monday, January 10, 2011 1:27 PM
 To: U2 Users List
 Subject: Re: [U2] Trying to setup AIX virtual printer to generate PDF
 fromUniQuery

 Hi Steve,

 Were you able to take a look at this?

 Thanks,
 Caleb Ng

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org
 [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Steve
 Romanow
 Sent: Wednesday, December 15, 2010 6:58 PM
 To: U2 Users List
 Subject: Re: [U2] Trying to setup AIX virtual printer to generate PDF
 fromUniQuery

 I have a virtual printer at work that runs a script I can look at.  It
 will
 be tomorrow before I can get details.

 On Wed, Dec 15, 2010 at 6:57 PM, Ng, Caleb c...@sweetwater.org wrote:

  I am trying to set up a virtual print queue on AIX to direct a PROC
 to
  generate a UniData UniQuery statement that produces a report so that
 it
  comes out as a PDF file using a2ps and ps2pdf (gs).  I can print the
  file manually from the command line but want to define this process
 as
 a
  print queue which I'm having problems doing.   I was wondering if
 anyone
  can point me down the right path.
 
 
 
  Thanks in advance.
 
 
 
  Caleb Ng
 
  Systems Analyst
 
  Sweetwater Authority
 
  ___
  U2-Users mailing list
  U2-Users@listserver.u2ug.org
  http://listserver.u2ug.org/mailman/listinfo/u2-users
 
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users

 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


[U2] SETPRT vs. ESC

2011-01-10 Thread Shawn Hayes
I have been playing with SETPTR in Universe on a Windows box.

If I send PCL escape sequence codes to the printer, do these override the 
SETPTR 
settings?

I thought this was kinf of goofy, but I did a 
SETPTR 0,80,100,0,0,1
I sent an escape sequence with a font pitch of 17 and landscape orientation.  I 
was able to print 177 characters across the page?!?!?!



 'We act as though comfort and luxury were the chief requirements of life, when 
all that we need to make us happy is something to be enthusiastic about.' 

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] SETPRT vs. ESC

2011-01-10 Thread Charlie Noah

Hi Shawn,

I'm talking from memory, not having worked on Universe in quite a while, 
but your SETPTR command works a lot like the TERM command, setting page 
width and depth for Retrieve, etc. However, if you send PCL commands in 
a Basic program, they will go straight through to the printer, and the 
printer will do as it's told, irrespective of the SETPTR settings. If 
things have changed since I've been on Universe, I'll be happy to be 
corrected.


Regards,
Charlie Noah

Tiny Bear's Wild Bird Store
Everything For The Backyard Bird Enthusiast, Except For The Birds
sa...@tinybearmarketing.com
http://www.TinyBearMarketing.com
Phone:  816-820-3893
Fax:   816-252-2609


On 01-10-2011 5:57 PM, Shawn Hayes wrote:

I have been playing with SETPTR in Universe on a Windows box.

If I send PCL escape sequence codes to the printer, do these override the SETPTR
settings?

I thought this was kinf of goofy, but I did a
SETPTR 0,80,100,0,0,1
I sent an escape sequence with a font pitch of 17 and landscape orientation.  I
was able to print 177 characters across the page?!?!?!



  'We act as though comfort and luxury were the chief requirements of life, when
all that we need to make us happy is something to be enthusiastic about.'

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


[U2] Sockets problem

2011-01-10 Thread Norman, David (Health)
We are trying to establish a Server Side Socket Connection using 
initServerSocket (UniVerse 10.0.16 HP-UX 11) for a third party system to 
connect. We are finding that using a port less than 1024 results in an error 34 
SCK-EACCESS Attempt to connect datagram socket to broadcast address failed 
because setSocketOption Broadcast is not enabled. Ports from 1024 upwards 
don't have this error. Anyone have an idea what's going on ?
Thanks,

David Norman
Senior Software Engineer - SA Ambulance Service

ICT Services
SA Health
Government of South Australia

Box 3, GPO
Adelaide, South Australia 5001
*+61 8 8274 0384
* fax +61 8 8271 4844
* david.nor...@health.sa.gov.au


This e-mail may contain confidential information, which also may be legally 
privileged. Only the intended recipient(s) may access, use, distribute or copy 
this e-mail. If this e-mail is received in error, please inform the sender by 
return e-mail and delete the original. If there are doubts about the validity 
of this message, please contact the sender by telephone. It is the recipient's 
responsibility to check the e-mail and any attached files for viruses.



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Sockets problem

2011-01-10 Thread Drew William Henderson
It's been a couple years, but i believe ports in the lower range can only be 
linked to root processes.

Drew

-Original Message-
From: Norman, David (Health) david.nor...@health.sa.gov.au
Sent: Monday, January 10, 2011 9:55 PM
To: 'u2-users@listserver.u2ug.org' u2-users@listserver.u2ug.org
Subject: [U2] Sockets problem


We are trying to establish a Server Side Socket Connection using 
initServerSocket (UniVerse 10.0.16 HP-UX 11) for a third party system to 
connect. We are finding that using a port less than 1024 results in an error 34 
SCK-EACCESS Attempt to connect datagram socket to broadcast address failed 
because setSocketOption Broadcast is not enabled. Ports from 1024 upwards 
don't have this error. Anyone have an idea what's going on ?
Thanks,

David Norman
Senior Software Engineer - SA Ambulance Service

ICT Services
SA Health
Government of South Australia

Box 3, GPO
Adelaide, South Australia 5001
*+61 8 8274 0384
* fax +61 8 8271 4844
* david.nor...@health.sa.gov.au


This e-mail may contain confidential information, which also may be legally 
privileged. Only the intended recipient(s) may access, use, distribute or copy 
this e-mail. If this e-mail is received in error, please inform the sender by 
return e-mail and delete the original. If there are doubts about the validity 
of this message, please contact the sender by telephone. It is the recipient's 
responsibility to check the e-mail and any attached files for viruses.



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Sockets problem

2011-01-10 Thread Don Robinson
David,

1024 and below are considered well known ports and are reserved for things 
like telnet, ftp, http, etc.

You need to be careful assigning private ports so you don't tramp on other 
assignments.

netstat will show you your current assignments. 
 Don Robinson





From: Dan McGrath dmc...@imb.com.au
To: U2 Users List u2-users@listserver.u2ug.org
Sent: Mon, January 10, 2011 10:25:27 PM
Subject: Re: [U2] Sockets problem

That is correct.

If you are in the Unix/Linux world and you need to bind to ports below
1024, you need to run/start as root, then (generally you should) drop
the rights of root once you have done it.

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Drew William
Henderson
Sent: Tuesday, 11 January 2011 2:14 PM
To: U2 Users List
Subject: Re: [U2] Sockets problem

It's been a couple years, but i believe ports in the lower range can
only be linked to root processes.

Drew

-Original Message-
From: Norman, David (Health) david.nor...@health.sa.gov.au
Sent: Monday, January 10, 2011 9:55 PM
To: 'u2-users@listserver.u2ug.org' u2-users@listserver.u2ug.org
Subject: [U2] Sockets problem


We are trying to establish a Server Side Socket Connection using
initServerSocket (UniVerse 10.0.16 HP-UX 11) for a third party system to
connect. We are finding that using a port less than 1024 results in an
error 34 SCK-EACCESS Attempt to connect datagram socket to broadcast
address failed because setSocketOption Broadcast is not enabled. Ports
from 1024 upwards don't have this error. Anyone have an idea what's
going on ?
Thanks,

David Norman
Senior Software Engineer - SA Ambulance Service

ICT Services
SA Health
Government of South Australia

Box 3, GPO
Adelaide, South Australia 5001
*+61 8 8274 0384
* fax +61 8 8271 4844
* david.nor...@health.sa.gov.au


This e-mail may contain confidential information, which also may be
legally privileged. Only the intended recipient(s) may access, use,
distribute or copy this e-mail. If this e-mail is received in error,
please inform the sender by return e-mail and delete the original. If
there are doubts about the validity of this message, please contact the
sender by telephone. It is the recipient's responsibility to check the
e-mail and any attached files for viruses.



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__
###

The information transmitted in this message and attachments (if any) is 
intended 
only
for the person or entity to which it is addressed. The message may contain 
confidential
and/or privileged material.  Any review, retransmission, dissemination or other 
use of
or taking of any action in reliance upon this information by persons or 
entities 
other
than the intended recipient is prohibited.  If you received this in error, 
please
contact the sender and delete the material from any computer.

The intended recipient of this e-mail may only use, reproduce, disclose or 
distribute
the information contained in this e-mail and any attached files with the 
permission of IMB.
###

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Sockets problem

2011-01-10 Thread Hona, David
Also check and updated your /etc/services with your desired TCP or UDP ports 
you end up using. Saves grief in the future too :)

-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Don Robinson
Sent: Tuesday, 11 January 2011 2:38 PM
To: U2 Users List
Subject: Re: [U2] Sockets problem

David,

1024 and below are considered well known ports and are reserved for things 
like telnet, ftp, http, etc.

You need to be careful assigning private ports so you don't tramp on other 
assignments.

netstat will show you your current assignments. 
 Don Robinson





___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__
###

The information transmitted in this message and attachments (if any) is 
intended 
only
for the person or entity to which it is addressed. The message may contain 
confidential
and/or privileged material.  Any review, retransmission, dissemination or other 
use of
or taking of any action in reliance upon this information by persons or 
entities 
other
than the intended recipient is prohibited.  If you received this in error, 
please
contact the sender and delete the material from any computer.

The intended recipient of this e-mail may only use, reproduce, disclose or 
distribute
the information contained in this e-mail and any attached files with the 
permission of IMB.
###

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

** IMPORTANT MESSAGE *   
This e-mail message is intended only for the addressee(s) and contains 
information which may be
confidential. 
If you are not the intended recipient please advise the sender by return email, 
do not use or
disclose the contents, and delete the message and any attachments from your 
system. Unless
specifically indicated, this email does not constitute formal advice or 
commitment by the sender
or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its subsidiaries. 
We can be contacted through our web site: commbank.com.au. 
If you no longer wish to receive commercial electronic messages from us, please 
reply to this
e-mail by typing Unsubscribe in the subject line. 
**



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users