We have AIX4.1 (yeah I know - we're upgrading to 5 soon) and have been running almost entirely on ASynch direct connects. We're now converting to TCP/IP thin client terminals and PC's. One of processes was a Turn Around Time screen job that would constantly update various information from 6 different jobs and display this information on one of 3 different tty's based on the job. I'm sort of stuck on how to convert this process to TCP/IP. everything runs, but I don't know how to get the output to each of the specfic terminals in full screen mode.
The data isn't saved so it's not a file that I can 'tail' or 'cat'.
Coming in through TCP/IP, I can't control which pts will be assigned. I really want to keep this down to a single process that loops through these jobs becuase of some underlying licensing issues and space constraints. I think I could create 3 users and just have them loop through their 2 jobs each based on a startup script, but I'd like to explore some other options.
I'm new to the forums and hope I selected the best group. I could have gone to a more specific thread but was afraid that I'd end up with the wrong audience.
I moved it to "Advanced UNIX users" because your question is certainly more advanced. Also doesn't seem specific to AIX.
So you want to update several TTYs with information from 6 different jobs? How do you get this information from the jobs? And why does it have to be in "full screen mode". The thin clients are running X Windows or something, correct? Or are the thin clients simply running a large monolithic TTY what is delivered over TCP/IP ?
Our system supports a hospital lab. We're running an Open-M version of MUMPS. These 6 jobs are queries that produce data from the system that's used to populate Turn Around Time screens and /or late specimens and such for the techs in various departments. One unix PID actually runs the various jobs- JOB 1 >tty1 hold for 5 seconds, job 2>tty2 hold for 5 seconds job 3>tty 3, hold, job 4>back to tty1 and hold.... This continues in an ongoing loop. I'd like to maintian this setup but want to replace tty1 with a monitor at X.X.X.1 and tty2 with a monitor at X.X.X.2.
I mentioned full screen just to differentiate between writing single lines.
As for our Thin Clients, we're actually running them through a windows terminal server and connecting to the UNIX box via a custom TELNET session.
$ oslevel
4.2.1.0
$ who -uA|grep vbe
vbe pts/8 Feb 5 19:32 . 61790 (ant)
$
you can find my terminal session:
* *
*******************************************************************************
Last unsuccessful login: Fri Aug 29 10:00:41 2008 on /dev/pts/21 from ant
Last login: Thu Feb 5 19:32:05 2009 on /dev/pts/8 from ant
$ who -uA|grep vbe
vbe pts/8 Feb 5 19:32 0:01 61790 (ant)
vbe pts/21 Feb 5 19:35 . 51778 (ant)
$ ll /etc/motd
-rwxrwxrwx 1 bin bin 960 Feb 10 2004 /etc/motd
$ cat /etc/motd>pts/8
No such file or directory
ksh: pts/8: cannot create
$ ll /dev/pts/8
crw--w--w- 1 vbe staff 34, 8 Feb 5 19:33 /dev/pts/8
$ id
uid=90(vbe) gid=1(staff)
$ cat /etc/motd>/dev/pts/8
$
on my other session (/dev/pts/8):
spooladm pts/17 Aug 29 07:20 . 35924 (:0.0)
spooladm pts/18 Aug 29 07:20 old 36182 (:0.0)
spooladm pts/19 Aug 29 07:20 . 36440 (:0.0)
spooladm pts/20 Jan 5 13:48 old 54466 (:0.0)
$ oslevel
4.2.1.0
$ who -uA|grep vbe
vbe pts/8 Feb 5 19:32 . 61790 (ant)
$ *******************************************************************************
* *
* *
* Welcome to AIX Version 4.2 STATION OPAGE 51 !!!! *
* *
* VOUS ETES SUR E S C A L A "T" IP ADDR = xxx.xx.xx.51 BONNE JOURNEE *
* *
* Please see the README file in /usr/lpp/bos for information pertinent to *
* this release of the AIX Operating System. *
* *
* *
*******************************************************************************
You should check out screen. This may be a solution to your problems. It's a virtual terminal emulator which among other features:
Allows multiple users to view (read-only or read-write) the same TTY
Split a screen into multiple sections, each with its own TTY
Centrally or user-custom configuration scripts
automatic launching of programs
Detach/reattach screen on a different IP address/terminal
The Wikipedia article seems quite complete. Check it out. If you need help configuring, post a new thread under the Scripts or the Applications forums.