Re: [U2] [Fwd: Re: FW: Running total from UniData dict]

2009-07-24 Thread Kebbon Irwin

I found that you had to take two steps, first an SSELECT to establish your 
order, followed by a LIST (or a sort with the same criteria, but it's 
unnecessary in Unidata, even using break-ons and det.supp's).

I was able to get my daily summary of order values with running totals. LIST 
ORDERS BREAK.ON ORDER.DATE NUM.ORDERS TOTAL ONE TOTAL ORDER.AMT 
RUNNING.TOTAL.AMT DET.SUPP ID.SUPP

Again, many thanks to all who responded.
Cheers,
Kebbon

> Date: Thu, 23 Jul 2009 17:01:28 -0700
> From: wphask...@advantos.net
> To: U2-users@listserver.u2ug.org
> Subject: [U2] [Fwd: Re:  FW:  Running total from UniData dict]
> 
> 
> Unfortunately, in UD the @ITEM.COUNT calculates values for LIST only.  
> Therefore, if you do a SORT the 1st item listed may have an item count 
> of 5675, the second listed might be 352, etc.  Thus, it's very hard to 
> figure out when you're starting the list in order to initialize the 
> named common  variables.
> 
> Bill
> 
> 
> Brian Leach said the following on 7/23/2009 9:38 AM:
> > Hi
> >
> > Similar to Charles' but not exactly the same, this was for uv (clearer than
> > using @n) but should work for UDT as well:  
> >
> > ED DICT BOOK_TITLES RUNNING_TOTAL
> > This is a Type "I" Descriptor last compiled on 23/07/09 at 16:35.
> > 20 lines long.
> >
> > : p
> > 0001: I
> > 0002: SUBR('RT','RUNNING_TOTAL',UNITS)
> > 0003: MD0
> > 0004: Run
> > 0005: 10R
> > 0006: S
> >
> > ED BLP RT
> > 19 lines long.
> >
> > : p
> > 0001:   SUBROUTINE RT(ANS, WHICH, VALUE)
> > 0002:   COMMON /RT/ RT.NAMES,RT.VALUES
> > 0003:
> > 0004:   IF @NI = 1 THEN
> > 0005:  RT.NAMES = ''
> > 0006:  RT.VALUES = ''
> > 0007:   END
> > 0008:   LOCATE WHICH IN RT.NAMES SETTING POS THEN
> > 0009:  TOTAL = RT.VALUES
> > 0010:   END ELSE
> > 0011:  TOTAL = 0
> > 0012:  RT.NAMES<-1> = WHICH
> > 0013:  POS = DCOUNT(RT.NAMES,@FM)
> > 0014:   END
> > 0015:
> > 0016:   TOTAL += VALUE
> > 0017:   RT.VALUES = TOTAL
> > 0018:   ANS = TOTAL
> > 0019:   RETURN
> >
> > LIST BOOK_TITLES RUNNING_TOTAL UNITS 04:37:46pm  23 Jul 2009  PAGE1
> > Key.. Run... Units
> >
> >10 2222
> >11 23 1
> >12 30 7
> >13 35 5
> >14 41 6
> >15 46 5
> >16 47 1
> >17 49 2
> >18 52 3
> >
> > Brian 
> >
> >   
> >> -Original Message-
> >> From: u2-users-boun...@listserver.u2ug.org 
> >> [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of 
> >> Kebbon Irwin
> >> Sent: 23 July 2009 16:22
> >> To: u2-users@listserver.u2ug.org
> >> Subject: [U2] FW: Running total from UniData dict
> >>
> >>
> >> I read this with great interest as I have an identical 
> >> requirement.  However, I use Unidata and this technique does 
> >> not seem to work, in either ECLTYPE.  Does anybody have a UDT 
> >> solution?
> >> Cheers,
> >> Kebbon
> >>
> >> 
> >>> From: bernard.lu...@pentanasolutions.com
> >>> To: u2-users@listserver.u2ug.org
> >>> Date: Tue, 30 Jun 2009 10:13:58 +1000
> >>> Subject: Re: [U2] Running total from UniVerse dict
> >>>
> >>> Hi Kate,
> >>>
> >>> Try this...  This will show the running total for every printed line
> >>>
> >>>   
>  ED DICT FILENAME RUNNING.TOTAL
>  This is a Type "I" Descriptor last compiled on 30/06/09 at 09:07.
>  20 lines long.
> 
>  : P7
>  0001: I
>  0002: @1...@record<8>
>  0003: MD2
>  0004: RUNNING TOT
>  0005: 10R
> 
>  Regards
>   
> 
>  -Original Message-
>  From: u2-users-boun...@listserver.u2ug.org
>  [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Kate 
>  Stanton
>  Sent: Tuesday, 30 June 2009 9:55 AM
>  To: U2 Users List
>  Subject: [U2] Running total from UniVerse dict
> 
>  I am sure we used to be able to do this using I-type, but I cannot 
>  remember how.
> 
>  Now we are using I-types again (not just ocreelatives), I   
>  want to be able to show each item outstanding for an account, 
>  with a running balance.
> 
>  Can anyone help?
> 
>  I have been to the doc, and read about CALC and TOTAL, but they seem 
>  to apply to totalling lines (and I can't make that work either - I am 
>  feeling very inadequate).
> 
>  TIA, Kate
> 
>  Kate Stanton
>  Walstan Systems Ltd
>  4 Kelmarna Ave, Herne Bay, Auckland 1011, New Zealand
>  Ph: +64 9 360 5310  Fax: +64 9 376 0750  Mobile: +64 21 400 486
>  Email: k...@walstan.com
> 
>  
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Running total from UniData

2009-07-24 Thread Bill Haskett
 Thanks, Kebbon.  Why didn't I think about that?!  Welcome to UD, where 
stupid things trip me up every day.  :-)


Bill


Kebbon Irwin said the following on 7/24/2009 4:53 AM:

I found that you had to take two steps, first an SSELECT to establish your 
order, followed by a LIST (or a sort with the same criteria, but it's 
unnecessary in Unidata, even using break-ons and det.supp's).

I was able to get my daily summary of order values with running totals. LIST 
ORDERS BREAK.ON ORDER.DATE NUM.ORDERS TOTAL ONE TOTAL ORDER.AMT 
RUNNING.TOTAL.AMT DET.SUPP ID.SUPP

Again, many thanks to all who responded.
Cheers,
Kebbon

  

Date: Thu, 23 Jul 2009 17:01:28 -0700
From: wphask...@advantos.net
To: U2-users@listserver.u2ug.org
Subject: [U2] [Fwd: Re:  FW:  Running total from UniData dict]


Unfortunately, in UD the @ITEM.COUNT calculates values for LIST only.  
Therefore, if you do a SORT the 1st item listed may have an item count 
of 5675, the second listed might be 352, etc.  Thus, it's very hard to 
figure out when you're starting the list in order to initialize the 
named common  variables.


Bill


Brian Leach said the following on 7/23/2009 9:38 AM:


[snipped]


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


[U2] 386 Conversion

2009-07-24 Thread Results

All,
  This is likely to go nowhere, as the client is cash constrained, but 
I have to ask...


  I have a client still running a 386 Pick implementation. The system 
died. The closest thing I have is a 486, but I don't believe I can 
simply put the harddrive in a 486 and get Pick to boot. (If I'm wrong, 
tell me).
  So, does anyone out there have the ability to take a 386 flavor 
Pick-formated PC harddrive and pull the data into something more modern 
(U2, QM, D3...)? If so, what would it cost?


   - Chuck "386 Reasons to Upgrade" Barouch
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] 386 Conversion

2009-07-24 Thread Henry Unger
I can't imagine why it wouldn't boot on a 486DX. Worth a try.

Best regards,

Henry

Henry P. Unger
Hitech Systems, Inc.
http://www.hitech.com


-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Results
Sent: Friday, July 24, 2009 9:46 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] 386 Conversion

All,
   This is likely to go nowhere, as the client is cash constrained, but 
I have to ask...

   I have a client still running a 386 Pick implementation. The system 
died. The closest thing I have is a 486, but I don't believe I can 
simply put the harddrive in a 486 and get Pick to boot. (If I'm wrong, 
tell me).
   So, does anyone out there have the ability to take a 386 flavor 
Pick-formated PC harddrive and pull the data into something more modern 
(U2, QM, D3...)? If so, what would it cost?

- Chuck "386 Reasons to Upgrade" Barouch
___
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] 386 Conversion

2009-07-24 Thread Glen Batchelor

Chuck,

  I agree with Henry. I don't see why the math-coprocessor would affect the
instruction set since it's backwards compat to i386. I have an original set
of AP/Pro 6.1.15 floppies but I'm missing system disk #1 so that may be
worthless. I have PicLAN though! Disk #1 is probably around here somewhere,
I just haven't needed to find it. If the system is AP/Pro 6.x then it should
boot just fine under 386, 486, and 586 (protected mode). I assume it's an
ISA SCSI-1 disk? I have a 586 footprint PC sitting behind me with PCI+ISA. I
also have an external 4mm DAT SCSI-1 tape drive sitting at home if you need
it. I think I may also have some DDS1 2GB tapes in a drawer somewhere. If
you run into issues with data recovery, shoot Doug Dumitru an e-mail. I
dunno if he'll have time to play or not, but he may have some pointers on
where to go. My memories of AP/Pro were short and filled with GFE horrors so
I've mentally blocked most of it out. :)
 

Glen Batchelor
IT Director
All-Spec Industries
 phone: (910) 332-0424
   fax: (910) 763-5664
E-mail: webmas...@all-spec.com
   Web: http://www.all-spec.com
  Blog: http://blog.all-spec.com


> -Original Message-
> From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
> boun...@listserver.u2ug.org] On Behalf Of Results
> Sent: Friday, July 24, 2009 12:46 PM
> To: u2-users@listserver.u2ug.org
> Subject: [U2] 386 Conversion
> 
> All,
>This is likely to go nowhere, as the client is cash constrained, but
> I have to ask...
> 
>I have a client still running a 386 Pick implementation. The system
> died. The closest thing I have is a 486, but I don't believe I can
> simply put the harddrive in a 486 and get Pick to boot. (If I'm wrong,
> tell me).
>So, does anyone out there have the ability to take a 386 flavor
> Pick-formated PC harddrive and pull the data into something more modern
> (U2, QM, D3...)? If so, what would it cost?
> 
> - Chuck "386 Reasons to Upgrade" Barouch
> ___
> 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] [UD] Logoff on Telnet Disconnect

2009-07-24 Thread Kevin King
Is there any UDT option that causes a Unidata (7.1.16) session to be dropped
when the telnet session is inadvertently disconnected?  Barring that, when a
telnet session is inadvertently disconnected is there a reliable way (AIX 5)
to determine that a session has or does not have a telnet client connected
to it?

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


Re: [U2] [UD] Logoff on Telnet Disconnect

2009-07-24 Thread Dave Laansma
I have a script that I run periodically does this.

Here are the critical elements of said script:

if ! > /dev/${devn} 2>/dev/null 1>/dev/null
then
/usr/udthome/bin/stopudt ${proid}
fi

${devn} is derived earlier in the script from the 'listuser' command.

Basically, if there is a pts in the U2 user list but Unix cannot send a
null redirected message to it, it must be disconnected.

I am very interested if anyone has another idea that is more reliable.

David Laansma
IT Manager
Hubbard Supply Co. 
Direct: 810-342-7143
Office:810-234-8681
Fax: 810-234-6142
www.hubbardsupply.com
"Delivering Products, Services, and Innovative Solutions"


-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Kevin King
Sent: Friday, July 24, 2009 1:19 PM
To: U2 Users List
Subject: [U2] [UD] Logoff on Telnet Disconnect

Is there any UDT option that causes a Unidata (7.1.16) session to be
dropped
when the telnet session is inadvertently disconnected?  Barring that,
when a
telnet session is inadvertently disconnected is there a reliable way
(AIX 5)
to determine that a session has or does not have a telnet client
connected
to it?

-Kevin
http://www.PrecisOnline.com
___
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] [UD] Logoff on Telnet Disconnect

2009-07-24 Thread Dave Laansma
Sorry, the ${prodid} is the process id, also obtained from the same
'listuser' command.

David Laansma
IT Manager
Hubbard Supply Co. 
Direct: 810-342-7143
Office:810-234-8681
Fax: 810-234-6142
www.hubbardsupply.com
"Delivering Products, Services, and Innovative Solutions"


-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Dave Laansma
Sent: Friday, July 24, 2009 1:38 PM
To: U2 Users List
Subject: Re: [U2] [UD] Logoff on Telnet Disconnect

I have a script that I run periodically does this.

Here are the critical elements of said script:

if ! > /dev/${devn} 2>/dev/null 1>/dev/null
then
/usr/udthome/bin/stopudt ${proid}
fi

${devn} is derived earlier in the script from the 'listuser' command.

Basically, if there is a pts in the U2 user list but Unix cannot send a
null redirected message to it, it must be disconnected.

I am very interested if anyone has another idea that is more reliable.

David Laansma
IT Manager
Hubbard Supply Co. 
Direct: 810-342-7143
Office:810-234-8681
Fax: 810-234-6142
www.hubbardsupply.com
"Delivering Products, Services, and Innovative Solutions"


-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Kevin King
Sent: Friday, July 24, 2009 1:19 PM
To: U2 Users List
Subject: [U2] [UD] Logoff on Telnet Disconnect

Is there any UDT option that causes a Unidata (7.1.16) session to be
dropped
when the telnet session is inadvertently disconnected?  Barring that,
when a
telnet session is inadvertently disconnected is there a reliable way
(AIX 5)
to determine that a session has or does not have a telnet client
connected
to it?

-Kevin
http://www.PrecisOnline.com
___
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] 386 Conversion

2009-07-24 Thread Results

Glen & Henry,
  I'll give the 486 a try. Thank you both. With any luck, I'll plug the 
drive into the 'new' 486 and they'll be back in business. I'll keep you 
posted.


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


Re: [U2] [UD] Logoff on Telnet Disconnect

2009-07-24 Thread Bob Rasmussen
On Fri, 24 Jul 2009, Kevin King wrote:

> Is there any UDT option that causes a Unidata (7.1.16) session to be dropped
> when the telnet session is inadvertently disconnected?  Barring that, when a
> telnet session is inadvertently disconnected is there a reliable way (AIX 5)
> to determine that a session has or does not have a telnet client connected
> to it?

I'll answer this from the perspective of an author of a telnet program. 
And by the way, the situation with an SSH connection is essentially the 
same. 

In general there are two situations:

1. Abrupt Disconnect

If a) the network goes down, b) the user turns off a PC, or c) a user uses 
Task Manager to terminate a program, no network activity is received by 
the telnet daemon on the server. It will continue thinking all is good 
until it tries to send something, or a very long timeout occurs. Sometimes 
this is a good thing, because certain kinds of momentary drops in the 
network can be auto-repaired, with no loss of session.

Because no termination has been received, the host process continues to 
run, waiting for input. You may need to terminate these processes, as they 
are essentially phantoms.

2.Orderly Disconnect

If the user shuts down the client session in an orderly way, the client 
sends a closure to the host. The telnetd running on the host receives 
this, and converts it to a hangup signal, a SIGHUP. It sends this SIGHUP 
to the first-level process running on the associated pseudo-TTY (a PTY).

(Terminology and behavior come from the days of modems.) 

That is where it gets interesting. Usually the pty is running one or more 
shell processes, each with a script, and one or more programs. Consider 
this chain of processes:

telnetd -> p1 -> p2 -> p3 -> p4

where p is either a shell process or a program (the capabilities are 
the same in what follows, although the syntax is different).

The telnetd detects a disconnect, and sends a SIGHUP to process p1. By 
DEFAULT, the signal (SIGHUP) is propogated all the way to p4. Process p4 
has a chance to detect that signal, close its files, maybe write log 
entries, and terminate cleanly. That termination might cause a termination 
in p3, or p3 might separately detect the signal and terminate. This 
behavior may be automatic in a particular language environment, or the 
application programmer may have a way to get involved in it.

What often happens, though, is that p2, say, "traps" the signal. In a 
shell script, the syntax is actually "trap ", where "n" is the number 
corresponding to SIGHUP (on Linux, "kill -l" tells me that SIGHUP is 1). 
If p2 traps the signal and terminates, process p3 and p4 are still running
and are essentially orphaned.

It is also possible for a process to trap and IGNORE a signal. Note also 
that some signals are mandatory, and force termination.

Note that the Unix/Linux "kill" command is actually misnamed. It is in 
fact a way to send various signals to any process (if you have 
permission). Again, "kill -l" lists these signals. So kill can be used to 
test the setup. In a scenario like above, I can use "kill -1 " to 
send a SIGHUP to each process in the chain, and find out what happens. 

I would do two pieces of research. First, I would find out what support 
for signals the runtime language (Pick BASIC, etc.) has, and whether I as 
a programmer could tie in to that, and save my files, etc., when a SIGHUP 
occurs.

Second, I would send a SIGHUP to p1 above, and see what happens. If all 
processes in the chain aren't terminated, I'd look at what intermediate 
processes are doing with signals. Usually, I'll find that a shell script 
is trapping signal 1, and it shouldn't be.

Hope that helps.

Regards,
Bob Rasmussen,   President,   Rasmussen Software, Inc.

personal e-mail: r...@anzio.com
 company e-mail: r...@anzio.com
  voice: (US) 503-624-0360 (9:00-6:00 Pacific Time)
fax: (US) 503-624-0760
web: http://www.anzio.com
 street address: Rasmussen Software, Inc.
 10240 SW Nimbus, Suite L9
 Portland, OR  97223  USA
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] [UD] Logoff on Telnet Disconnect

2009-07-24 Thread Jeff Powell
I just tried this on a session that the computer was suspended on and it 
thought the session was alive. I also did this to a non-existent tty 
(/dev/pts/7a) it also thought it was alive.


if ! > /dev/pts/7a; then echo "dead"; else echo "alive"; fi
alive

Does the " >/dev/pts/??" set the $? return value?

Thanks.

Jeff


Dave Laansma wrote:

I have a script that I run periodically does this.

Here are the critical elements of said script:

if ! > /dev/${devn} 2>/dev/null 1>/dev/null
then
/usr/udthome/bin/stopudt ${proid}
fi

${devn} is derived earlier in the script from the 'listuser' command.

Basically, if there is a pts in the U2 user list but Unix cannot send a
null redirected message to it, it must be disconnected.

I am very interested if anyone has another idea that is more reliable.

David Laansma
IT Manager
Hubbard Supply Co. 
Direct: 810-342-7143

Office:810-234-8681
Fax: 810-234-6142
www.hubbardsupply.com
"Delivering Products, Services, and Innovative Solutions"


-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Kevin King
Sent: Friday, July 24, 2009 1:19 PM
To: U2 Users List
Subject: [U2] [UD] Logoff on Telnet Disconnect

Is there any UDT option that causes a Unidata (7.1.16) session to be
dropped
when the telnet session is inadvertently disconnected?  Barring that,
when a
telnet session is inadvertently disconnected is there a reliable way
(AIX 5)
to determine that a session has or does not have a telnet client
connected
to it?

-Kevin
http://www.PrecisOnline.com
___
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] 386 Conversion

2009-07-24 Thread Dave Taylor

Chuck,

You didn't mention backup: eg 3.5" floppy?

That removes any issues with re-installing the hard drive in a different 
hardware environment.


And, I didn't see any mention of Pick flavor - eg: R83, AP or AP/Pro.

If its R83, it will probably restore onto mvBase very nicely, and then on to 
UV or QM very easily.


Then you can handle the conversion to the Pick flavor of UV or QM as you 
wish.


I have an mvBase machine and may be able to put may hands on an AP machine.

Until the path to success is clearer, though, it's tough to estimate a cost.

And, if the client is cash-strapped, I think they need to come up with a 
maximum budget so we don't spin our wheels for nothing.


hth,

Dave

Dave Taylor
Sysmark Information Systems, Inc.
Authorized IBM Business Partner
49 Aspen Way
Rolling Hills Estates, CA 90274
(O) 800-SYSMARK (800-797-6275)
(F) 310-377-3550
(C) 310-561-5200
www.sysmarkinfo.com
- Original Message - 
From: "Results" 

To: 
Sent: Friday, July 24, 2009 9:46 AM
Subject: [U2] 386 Conversion



All,
  This is likely to go nowhere, as the client is cash constrained, but I 
have to ask...


  I have a client still running a 386 Pick implementation. The system 
died. The closest thing I have is a 486, but I don't believe I can simply 
put the harddrive in a 486 and get Pick to boot. (If I'm wrong, tell me).
  So, does anyone out there have the ability to take a 386 flavor 
Pick-formated PC harddrive and pull the data into something more modern 
(U2, QM, D3...)? If so, what would it cost?


   - Chuck "386 Reasons to Upgrade" Barouch
___
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] [UD] Logoff on Telnet Disconnect

2009-07-24 Thread Dave Laansma
Good question.  I am not sure.  I would assume it does.

Try it on what you know to be a non-existent pts.

David Laansma
IT Manager
Hubbard Supply Co. 
Direct: 810-342-7143
Office:810-234-8681
Fax: 810-234-6142
www.hubbardsupply.com
"Delivering Products, Services, and Innovative Solutions"

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Jeff Powell
Sent: Friday, July 24, 2009 3:23 PM
To: U2 Users List
Subject: Re: [U2] [UD] Logoff on Telnet Disconnect

I just tried this on a session that the computer was suspended on and it

thought the session was alive. I also did this to a non-existent tty 
(/dev/pts/7a) it also thought it was alive.

if ! > /dev/pts/7a; then echo "dead"; else echo "alive"; fi
alive

Does the " >/dev/pts/??" set the $? return value?

Thanks.

Jeff


Dave Laansma wrote:
> I have a script that I run periodically does this.
>
> Here are the critical elements of said script:
>
> if ! > /dev/${devn} 2>/dev/null 1>/dev/null
> then
> /usr/udthome/bin/stopudt ${proid}
> fi
>
> ${devn} is derived earlier in the script from the 'listuser' command.
>
> Basically, if there is a pts in the U2 user list but Unix cannot send
a
> null redirected message to it, it must be disconnected.
>
> I am very interested if anyone has another idea that is more reliable.
>
> David Laansma
> IT Manager
> Hubbard Supply Co. 
> Direct: 810-342-7143
> Office:810-234-8681
> Fax: 810-234-6142
> www.hubbardsupply.com
> "Delivering Products, Services, and Innovative Solutions"
>
>
> -Original Message-
> From: u2-users-boun...@listserver.u2ug.org
> [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Kevin King
> Sent: Friday, July 24, 2009 1:19 PM
> To: U2 Users List
> Subject: [U2] [UD] Logoff on Telnet Disconnect
>
> Is there any UDT option that causes a Unidata (7.1.16) session to be
> dropped
> when the telnet session is inadvertently disconnected?  Barring that,
> when a
> telnet session is inadvertently disconnected is there a reliable way
> (AIX 5)
> to determine that a session has or does not have a telnet client
> connected
> to it?
>
> -Kevin
> http://www.PrecisOnline.com
> ___
> 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] Error 4 22 from PHP exec of uv on AIX

2009-07-24 Thread Ross Morrissey
This is a bit of a stumper (for me, anyway).

I'm having issues trying to exec uv from PHP on AIX.

Things work just fine in Windows (Apache or IIS) or Linux (Apache) so I know
my PHP syntax is fine.

On the AIX (5.2 uv 10.2.7) box:

Using PHP, I can exec 'echo 1 + 2 | bc' and get 3
I can run this at the shell as user nobody: 'cd /u2/uv/HS.SALES;
/u2/uv/bin/uv "display 42"'
I can get a CGI script to return 'cd /u2/uv/HS.SALES; /u2/uv/bin/uv "display
42"' correctly

With PHP, I can't exec ' /u2/uv/bin/uv "display 42"' (after a chdir).

UV throws this error (into the Apache logs):

An error has occurred during uniVerse initialization
Please contact the system administrator Error code: 4 22

The codes translate into:

4. System V semaphores are probably not configured in the kernel.

22. (EINVAL) Invalid argument. Here are some examples of invalid
arguments: dismounting a nonmounted device, mentioning an unknown
signal in signal, reading or writing a file for which seek has generated a
negative pointer. EINVAL is also set by math functions.

Has anyone else bumped into this?  IBM support suggested it might be an
issue with SIGTTOU but this seems unlikely to me - especially for a one-line
command.  PHP is a bit outside their bailiwick.

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


[U2] AUTO: Mark Shannon/Australia/IBM is out of the office. (returning 04/08/2009)

2009-07-24 Thread Mark Shannon

I am out of the office until 04/08/2009.




Note: This is an automated response to your message  "U2-Users Digest, Vol
3, Issue 21" sent on 25/7/09 5:00:03.

This is the only notification you will receive while this person is away.

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


Re: [U2] Error 4 22 from PHP exec of uv on AIX

2009-07-24 Thread Henry Unger
Permissions, perhaps?

Running it using syscalls might provide some clues.

Best regards,

Henry

Henry P. Unger
Hitech Systems, Inc.
http://www.hitech.com

-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Ross Morrissey
Sent: Friday, July 24, 2009 2:12 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] Error 4 22 from PHP exec of uv on AIX

This is a bit of a stumper (for me, anyway).

I'm having issues trying to exec uv from PHP on AIX.

Things work just fine in Windows (Apache or IIS) or Linux (Apache) so I know
my PHP syntax is fine.

On the AIX (5.2 uv 10.2.7) box:

Using PHP, I can exec 'echo 1 + 2 | bc' and get 3
I can run this at the shell as user nobody: 'cd /u2/uv/HS.SALES;
/u2/uv/bin/uv "display 42"'
I can get a CGI script to return 'cd /u2/uv/HS.SALES; /u2/uv/bin/uv "display
42"' correctly

With PHP, I can't exec ' /u2/uv/bin/uv "display 42"' (after a chdir).

UV throws this error (into the Apache logs):

An error has occurred during uniVerse initialization
Please contact the system administrator Error code: 4 22

The codes translate into:

4. System V semaphores are probably not configured in the kernel.

22. (EINVAL) Invalid argument. Here are some examples of invalid
arguments: dismounting a nonmounted device, mentioning an unknown
signal in signal, reading or writing a file for which seek has generated a
negative pointer. EINVAL is also set by math functions.

Has anyone else bumped into this?  IBM support suggested it might be an
issue with SIGTTOU but this seems unlikely to me - especially for a one-line
command.  PHP is a bit outside their bailiwick.

Thanks, Ross.
___
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] 386 Conversion

2009-07-24 Thread Allen E. Elwood
(1)
Can't you just do a clean install of the same OS on a newer machine, slave
the hard drive and point some pointers over to it?  Mongo only know of
Unidata architecture ;)

(2)
What part of the old machine died?  You can find some fairly old stuff on
eBay.

For example a working 386 25mhz cpu:
http://cgi.ebay.com/AMD-A80386DXL-25-Am386-DX-DXL-25-Vintage-386-25-Mhz-Pro_
W0QQitemZ200256087532QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item2ea03165
ec&_trksid=p3286.c0.m14&_trkparms=65%3A12|66%3A4|39%3A1|72%3A2128|293%3A1|29
4%3A200

I just bought some 40 year old NOS Astron bluepoint .1mf capacitors a couple
of days ago to make some 5e3 amps with.  I've seen these caps go for $50
each *IF* you can find them and I got 10 for $160. eBay Rocks!!!

**Note:  I am in no way, shape or form associated with eBay.  This is not
intended as a sales device, or an endorsement and this is not an [AD] 


hth, Allen

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org]on Behalf Of Dave Taylor
Sent: Friday, July 24, 2009 12:24 PM
To: U2 Users List
Subject: Re: [U2] 386 Conversion


Chuck,

You didn't mention backup: eg 3.5" floppy?

That removes any issues with re-installing the hard drive in a different
hardware environment.

And, I didn't see any mention of Pick flavor - eg: R83, AP or AP/Pro.

If its R83, it will probably restore onto mvBase very nicely, and then on to
UV or QM very easily.

Then you can handle the conversion to the Pick flavor of UV or QM as you
wish.

I have an mvBase machine and may be able to put may hands on an AP machine.

Until the path to success is clearer, though, it's tough to estimate a cost.

And, if the client is cash-strapped, I think they need to come up with a
maximum budget so we don't spin our wheels for nothing.

hth,

Dave

Dave Taylor
Sysmark Information Systems, Inc.
Authorized IBM Business Partner
49 Aspen Way
Rolling Hills Estates, CA 90274
(O) 800-SYSMARK (800-797-6275)
(F) 310-377-3550
(C) 310-561-5200
www.sysmarkinfo.com
- Original Message -
From: "Results" 
To: 
Sent: Friday, July 24, 2009 9:46 AM
Subject: [U2] 386 Conversion


> All,
>   This is likely to go nowhere, as the client is cash constrained, but I
> have to ask...
>
>   I have a client still running a 386 Pick implementation. The system
> died. The closest thing I have is a 486, but I don't believe I can simply
> put the harddrive in a 486 and get Pick to boot. (If I'm wrong, tell me).
>   So, does anyone out there have the ability to take a 386 flavor
> Pick-formated PC harddrive and pull the data into something more modern
> (U2, QM, D3...)? If so, what would it cost?
>
>- Chuck "386 Reasons to Upgrade" Barouch
> ___
> 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