Re: [U2] Printing to a windows printer from a linux server on Universe

2012-05-15 Thread John Thompson
If its Windows 7, its probably best to use Samba version 3.5 or higher if
your distro offers it.
At least use version 3 or higher.

Hope you solved your problem.

On Mon, May 14, 2012 at 10:42 AM, T Stokes t.sto...@monolith.com wrote:


 We are using smbclient.

 Additional information - We have determined that when windows live is
 installed on the workstation the smbclient is unable to communicate with th
 eLinux server.


 HOW are you trying to print from Linux to Windows?

 Also, what kind of printer?

 --
 View this message in context:
 http://old.nabble.com/Printing-to-a-windows-printer-from-a-linux-server-on-Universe-tp33763682p33830902.html
 Sent from the U2 - Users mailing list archive at Nabble.com.

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




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


[U2] [UV] Connecting to a WebService with UV using Authentication Certificate

2012-05-15 Thread Jacques G.


Hello,

A need has come up where I work to connect to a web service using Universe 
however the Webservice needs a Authentification Certificate.  Is there any way 
to do this all with Universe or does one need to make use of Java on the UV 
server ?   (Are there any examples available that do something like this ?)

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


Re: [U2] Printing to a windows printer from a Linux server on Universe

2012-05-15 Thread Wols Lists
On 10/05/12 22:02, Tim Stokes wrote:
 I am using a samba share.
 
 
 /usr/bin/smbclient '\\ipaddress\printer name' -U user name %password 
 -c 'translate;print -'/root/Printers/log file name
 
 This is working on several windows printers to linux, and on a Windows 7 
 professional edition. But on a windows 7 home edition the jobs run through 
 the Linux portion but do not appear in the windows spooler.

Windows Home?

I strongly suspect Windows is configured to foul up the connection.

And it will be very difficult to fix :-(

The obvious solution is to upgrade to Windows 7 professional,
unfortunately. There's a lot of stuff that doesn't work on Home Edition,
like XP compatibility for example :-( I suspect this is just another.
MS's way of persuading you to upgrade and put more money in their pocket.

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


Re: [U2] Trim trailing attributes off records

2012-05-15 Thread Wols Lists
On 11/05/12 17:36, Wjhonson wrote:
 
 I thought that too.
 Tried that one.
 What it actually does is store all the trailing attributes in the header 
 and then append them back to the record when it writes it out.
 Universe 10.3
 
What flavour? That ALWAYS worked for me on PI.

Let's say your dict declares up to, say, field 20 and you know there
*shouldn't* be anything beyond it.

Sounds actually, like you are in PI mode so ...
Declare your MAT as 20 long :-)
Add a line before the write which says

IF CONVERT( REC(0), @FM: , ) EQ  THEN REC(0) =  ELSE PRINT
Record :ID: contains extra data!

So basically, you're dumping what you don't want into element 0. The
convert checks that it really is nothing before zeroing it.

I'm guessing it's not working for you because somehow there are actually
spaces in those fields you think are blank (ED gets rid of trailing
spaces ...)

You can pull the same stunt for PICK mode, just remember the extra
entries will end up in the last element of the array.

Cheers,
Wol

 
 
 
 -Original Message-
 From: andy baum andyb...@yahoo.co.uk
 To: U2 Users List u2-users@listserver.u2ug.org
 Sent: Fri, May 11, 2012 6:30 am
 Subject: Re: [U2] Trim trailing attributes off records
 
 
 How about :-
 OPEN 'FILENAME' TO FILEVAR ELSE
STOPM 'Cannot open FILENAME'
 END
 
 IM REC(500)
 
 ELECT FILEVAR
 LOOP
 WHILE READNEXT ID
MATREADU REC FROM FILEVAR,ID THEN
   MATWRITE REC TO FILEVAR,ID
END
 REPEAT
 
 ND
 
 ATWRITE trims trailing blank attributes as it writes the data away
 
 heers,
 Andy
 
 
 From: Wjhonson wjhon...@aol.com
 o: u2-users@listserver.u2ug.org 
 ent: Thursday, 10 May 2012, 23:13
 ubject: [U2]  Trim trailing attributes off records
 
 
 iven that you have a file with thousands of records, each with dozens of 
 railing attributes which are empty.
 How can you pick up the file and drop it back down with all those empties 
 rimmed off?
 __
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Trim trailing attributes off records

2012-05-15 Thread Wjhonson

Information Flavor
No spaces in the fields, nothing in them at all, just a line of attribute marks 
with nothing in between.
Your trick below *does* work by the way, and it's essentially what I did.
I just set Rec(0) to nothing before the MATWRITE and that did it.

But I was also surprised that Andy's trick of just matreading and then 
matwriting didn't work.
You have to set Rec(0) to nothing in between








-Original Message-
From: Wols Lists antli...@youngman.org.uk
To: u2-users u2-users@listserver.u2ug.org
Sent: Tue, May 15, 2012 12:40 pm
Subject: Re: [U2] Trim trailing attributes off records


On 11/05/12 17:36, Wjhonson wrote:
 
 I thought that too.
 Tried that one.
 What it actually does is store all the trailing attributes in the header and 
hen append them back to the record when it writes it out.
 Universe 10.3
 
hat flavour? That ALWAYS worked for me on PI.
Let's say your dict declares up to, say, field 20 and you know there
shouldn't* be anything beyond it.
Sounds actually, like you are in PI mode so ...
eclare your MAT as 20 long :-)
dd a line before the write which says
IF CONVERT( REC(0), @FM: , ) EQ  THEN REC(0) =  ELSE PRINT
Record :ID: contains extra data!
So basically, you're dumping what you don't want into element 0. The
onvert checks that it really is nothing before zeroing it.
I'm guessing it's not working for you because somehow there are actually
paces in those fields you think are blank (ED gets rid of trailing
paces ...)
You can pull the same stunt for PICK mode, just remember the extra
ntries will end up in the last element of the array.
Cheers,
ol
 
 
 
 -Original Message-
 From: andy baum andyb...@yahoo.co.uk
 To: U2 Users List u2-users@listserver.u2ug.org
 Sent: Fri, May 11, 2012 6:30 am
 Subject: Re: [U2] Trim trailing attributes off records
 
 
 How about :-
 OPEN 'FILENAME' TO FILEVAR ELSE
STOPM 'Cannot open FILENAME'
 END
 
 IM REC(500)
 
 ELECT FILEVAR
 LOOP
 WHILE READNEXT ID
MATREADU REC FROM FILEVAR,ID THEN
   MATWRITE REC TO FILEVAR,ID
END
 REPEAT
 
 ND
 
 ATWRITE trims trailing blank attributes as it writes the data away
 
 heers,
 Andy
 
 
 From: Wjhonson wjhon...@aol.com
 o: u2-users@listserver.u2ug.org 
 ent: Thursday, 10 May 2012, 23:13
 ubject: [U2]  Trim trailing attributes off records
 
 
 iven that you have a file with thousands of records, each with dozens of 
 railing attributes which are empty.
 How can you pick up the file and drop it back down with all those empties 
 rimmed off?
 __
__
2-Users mailing list
2-us...@listserver.u2ug.org
ttp://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] [UV] Connecting to a WebService with UV using Authentication Certificate

2012-05-15 Thread John Jenkins
UniVerse has BASIC API extensions that support calling http with secure 
sockets. I suspect this will do the job for you if the web service is exposed. 

Regards JayJay

Sent from my iPad

On 15 May 2012, at 15:14, Jacques G. jacque...@yahoo.com wrote:

 
 
 Hello,
 
 A need has come up where I work to connect to a web service using Universe 
 however the Webservice needs a Authentification Certificate.  Is there any 
 way to do this all with Universe or does one need to make use of Java on the 
 UV server ?   (Are there any examples available that do something like this ?)
 
 Jacques G.
 ___
 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] [UV] Connecting to a WebService with UV using Authentication Certificate

2012-05-15 Thread Gregor Scott
There is a worked example on PickWiki. Search for CallHTTPwithSSL. This should 
give you a start.

The UniVerse Security Features document explains how to use 
createSecurityContext() to create security context variables that are passed in 
to the createSecureRequest() function. It also covers the addCertificate() 
function needed to add a client certificate to the security context, which is 
what you will need.

Regards,

Gregor

-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of John Jenkins
Sent: Wednesday, 16 May 2012 8:58 AM
To: Jacques G.; U2 Users List
Cc: U2 Users List
Subject: Re: [U2] [UV] Connecting to a WebService with UV using Authentication 
Certificate

UniVerse has BASIC API extensions that support calling http with secure 
sockets. I suspect this will do the job for you if the web service is exposed.

Regards JayJay

Sent from my iPad

On 15 May 2012, at 15:14, Jacques G. jacque...@yahoo.com wrote:



 Hello,

 A need has come up where I work to connect to a web service using Universe 
 however the Webservice needs a Authentification Certificate.  Is there any 
 way to do this all with Universe or does one need to make use of Java on the 
 UV server ?   (Are there any examples available that do something like this ?)

 Jacques G.
 ___
 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
--
Message  protected by DealerGuard: e-mail anti-virus, anti-spam and content 
filtering.
http://www.pentanasolutions.com

Click here to report this message as spam:
https://login.mailguard.com.au/report/1EK8ZVaFia/3zTCvLzq9b6pJCrufw3Q3K/0.002


This email and any attachments to it are confidential.
You must not use, disclose or act on the email if you are not the intended
recipient.  Liability limited by a scheme approved under Professional
Standards Legislation.
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Trim trailing attributes off records

2012-05-15 Thread Wols Lists
On 15/05/12 20:50, Wjhonson wrote:
 
 Information Flavor
 No spaces in the fields, nothing in them at all, just a line of attribute 
 marks with nothing in between.
 Your trick below *does* work by the way, and it's essentially what I did.
 I just set Rec(0) to nothing before the MATWRITE and that did it.
 
 But I was also surprised that Andy's trick of just matreading and then 
 matwriting didn't work.
 You have to set Rec(0) to nothing in between

I've just realised WHY that probably is ... Rec(0) is full of FMs ...

If you dimension your array to hold every element of the record
*without* overflow, it'll work fine. I bet the MATWRITE tests if (0) is
empty, and if it's got overflow in it ...

Cheers,
Wol
 
 
 
 
 
 
 
 
 -Original Message-
 From: Wols Lists antli...@youngman.org.uk
 To: u2-users u2-users@listserver.u2ug.org
 Sent: Tue, May 15, 2012 12:40 pm
 Subject: Re: [U2] Trim trailing attributes off records
 
 
 On 11/05/12 17:36, Wjhonson wrote:
  
  I thought that too.
  Tried that one.
  What it actually does is store all the trailing attributes in the header 
 and 
 hen append them back to the record when it writes it out.
  Universe 10.3
  
 hat flavour? That ALWAYS worked for me on PI.
 Let's say your dict declares up to, say, field 20 and you know there
 shouldn't* be anything beyond it.
 Sounds actually, like you are in PI mode so ...
 eclare your MAT as 20 long :-)
 dd a line before the write which says
 IF CONVERT( REC(0), @FM: , ) EQ  THEN REC(0) =  ELSE PRINT
 Record :ID: contains extra data!
 So basically, you're dumping what you don't want into element 0. The
 onvert checks that it really is nothing before zeroing it.
 I'm guessing it's not working for you because somehow there are actually
 paces in those fields you think are blank (ED gets rid of trailing
 paces ...)
 You can pull the same stunt for PICK mode, just remember the extra
 ntries will end up in the last element of the array.
 Cheers,
 ol

  
  
  -Original Message-
  From: andy baum andyb...@yahoo.co.uk
  To: U2 Users List u2-users@listserver.u2ug.org
  Sent: Fri, May 11, 2012 6:30 am
  Subject: Re: [U2] Trim trailing attributes off records
  
  
  How about :-
  OPEN 'FILENAME' TO FILEVAR ELSE
 STOPM 'Cannot open FILENAME'
  END
  
  IM REC(500)
  
  ELECT FILEVAR
  LOOP
  WHILE READNEXT ID
 MATREADU REC FROM FILEVAR,ID THEN
MATWRITE REC TO FILEVAR,ID
 END
  REPEAT
  
  ND
  
  ATWRITE trims trailing blank attributes as it writes the data away
  
  heers,
  Andy
  
  
  From: Wjhonson wjhon...@aol.com
  o: u2-users@listserver.u2ug.org 
  ent: Thursday, 10 May 2012, 23:13
  ubject: [U2]  Trim trailing attributes off records
  
  
  iven that you have a file with thousands of records, each with dozens of 
  railing attributes which are empty.
  How can you pick up the file and drop it back down with all those empties 
  rimmed off?
  __
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Trim trailing attributes off records

2012-05-15 Thread Wjhonson

 There's nothing I can do as far as I know about how the AOL email creator, and 
... whatever.. interact.

As far as quoting, it's an automatic function, I'm not *doing* anything to make 
it happen, it happens all on it's own.

 

 

-Original Message-
From: Tony Gravagno 3xk547...@sneakemail.com
To: u2-users u2-users@listserver.u2ug.org
Sent: Tue, May 15, 2012 8:39 pm
Subject: Re: [U2] Trim trailing attributes off records


I know functional code was posted last week so I'm amazed that this
thread is still alive. I'll just add that in D3 we can do this:

matread dimrec from fv,key else null
dynrec =  dimrec
write dynrec on fv,key

Perhaps non-intuitively, the assignment of a dimensioned array to a
non-dimensioned variable not only creates a dynamic array, but
automatically truncates trailing attributes. It's the equivalent to
matbuild, which I believe by default also truncates. I thought the
same behaviour was standard in U2, haven't checked sorry.

T

(PS : Hey Wil, doesn't it irritate you that your quoted text is
usually missing the first character of every line? You're the only
person on the planet that seems to have this problem. Someone
commented on it here a while back. How about doing something about
that? If you quote code it gets corrupted, so what's the point?)

___
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