1 Aug 2008 18:42
STRPCO and STRPCCMD on Linux client
Hello everyone,
I've been unable to get the STRPCO/STRPCCMD command to work with tn5250.
in my .tn5250rc file I have HILLB1 defined like this:
HILLB1{
host = xx.xx.xx.xx
env.DEVNAME=HILLB1
+local_print_key
+uninhibited
+allow_strpccmd
}
I normally use xt5250 so I issue the following command: xt5250 HILLB1
which starts a session with the AS/400. I log in and then issue the
command STRPCO. Then, to make sure that it worked I issue the STRPCO
command again and I get a message that says: "iSeries Access Organizer
is already active for device HILLB1." So I know that STRPCO is working.
I then issue the command STRPCCMD and hit F4 to prompt. I enter
"/usr/bin/kate" (without the quotes), leave the Pause parameter set to
*YES (the default) and hit enter. I then get a message that says,
"Required PC program (PCO.EXE) is not active. No communications with PC
can occur. Press ENTER to resume."
So I thought to myself, "Self, maybe it only works with tn5250 and not
xt5250." So I followed the same steps as above but I started with:
tn5250 HILLB1
(Continue reading)
I now have a need for something a little different and I'm asking for
any hints on the best way to accomplish it. (Not being a bash scripting
guru, myself)
I want to take the output of scs2ascii and search that output for a
user's name. Each output is a document containing 1 of 5 possible user
names. I then want to write that output as a file using the user name
as the filename and maybe adding the current date and time. I may want
to further process or format that output but I can probably manage that
with enscript as I've been doing.
My thoughts are to setup variables with the 5 user names and then use
grep to test for each user, check the return status code for a match and
then write the filename. That is overly simplified, of course. I'm
currently reading a shell programming book and hoping to put a script
together but would appreciate any guidance from the more experienced
programmers on this list.
Thanks for any help.
Regards,
Mitch
RSS Feed