Re: [U2] Can I automate Wintegrate BridgeCopy?
Thanks for your reply. We're on unix, and I'd considered doing an sftp copy. However, most of the files I wanted to refresh are indexed on both live and test. --bev At 4/12/2012 04:49 PM, Richard A. Wilson wrote: I'm not sure what operating system you are using but it might be simpler to just use the OS copy function if the two servers are connected. Rich Beverly Wilson wrote: Hi Folks, I've got several files I need to transfer between our live and test servers. Ideally, I would write a Unibasic program to take the list of filenames and feed them into the RunBridgeCopy command. However, I've been unable to determine how to do it, if it is even possible. I found WIN.INVOKE documented in the Wintegrate host commands manual, but that doesn't appear to allow for feeding in the variables I've assigned that hold RunBridgeCopy's options (SourceFile, TargetFile, etc.). I tried doing this with ViaDuct (One-step Copy) but that bluescreens my PC. Any suggestions on where I can read documentation on this, or can anyone tell me that it can't be done? Regards, --bev Beverly Wilson Daedalus Books Music Columbia, MD 21046 410.309.2700 voice 410.309.2701 fax www.daedalusbooks.com ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users -- Richard A Wilson Lakeside Systems Smithfield, RI, USA Voice 401-231-3959 Fax 206-202-2064 ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users Bev Wilson 410.309.2700 voice 410.309.2701 fax ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Can I automate Wintegrate BridgeCopy?
Thanks, Jake. We're running Unidata on unix, and I'd considered an sftp transfer, but since the majority of the files are indexed, I didn't think that would work out for me. Appreciate your response. --bev At 4/13/2012 10:45 AM, you wrote: You can call uv.exe (on windows) from a cmd prompt and use it to run a command. Just create a simple batch file and add it to your OS scheduler -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Beverly Wilson Sent: Thursday, April 12, 2012 3:47 PM To: U2 Users List Subject: [U2] Can I automate Wintegrate BridgeCopy? Hi Folks, I've got several files I need to transfer between our live and test servers. Ideally, I would write a Unibasic program to take the list of filenames and feed them into the RunBridgeCopy command. However, I've been unable to determine how to do it, if it is even possible. I found WIN.INVOKE documented in the Wintegrate host commands manual, but that doesn't appear to allow for feeding in the variables I've assigned that hold RunBridgeCopy's options (SourceFile, TargetFile, etc.). I tried doing this with ViaDuct (One-step Copy) but that bluescreens my PC. Any suggestions on where I can read documentation on this, or can anyone tell me that it can't be done? Regards, --bev Beverly Wilson Daedalus Books Music Columbia, MD 21046 410.309.2700 voice 410.309.2701 fax www.daedalusbooks.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 Bev Wilson 410.309.2700 voice 410.309.2701 fax ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
[U2] Can I automate Wintegrate BridgeCopy?
Hi Folks, I've got several files I need to transfer between our live and test servers. Ideally, I would write a Unibasic program to take the list of filenames and feed them into the RunBridgeCopy command. However, I've been unable to determine how to do it, if it is even possible. I found WIN.INVOKE documented in the Wintegrate host commands manual, but that doesn't appear to allow for feeding in the variables I've assigned that hold RunBridgeCopy's options (SourceFile, TargetFile, etc.). I tried doing this with ViaDuct (One-step Copy) but that bluescreens my PC. Any suggestions on where I can read documentation on this, or can anyone tell me that it can't be done? Regards, --bev Beverly Wilson Daedalus Books Music Columbia, MD 21046 410.309.2700 voice 410.309.2701 fax www.daedalusbooks.com ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
[U2] wintegrate printers question
Hi all! I ran into a situation with Wintegrate (version 5.1) today. I added a Generic/Text printer to my system (WinXP) so I could capture the output of some slave printing. The problem was that Wintegrate only seems to see the printers that had been defined on the PC when I installed Wintegrate and none of the printers that have been created since then. (I've got the same problem with Viaduct, so perhaps the problem is my PC.) It did recognize the Generic printer once I made that my default printer. However, I'd really not have to make that switch every time I want to test something. Has anyone else seen this behavior? Thanks, --bev Beverly Wilson Daedalus Books Music Columbia, MD 21046 410.309.2700 voice 410.309.2701 fax www.daedalusbooks.com ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] UD: Phantoms
Bill, We actually run this program to do what Marc suggests. Just formats the output a little nicer than the plain ps output. PROGRAM LIST.PHANTOMS STMT = '!sh -c ps -ef |grep PHANTOM |grep -v grep' EXECUTE STMT CAPTURING CAP NUM.LINES = DCOUNT(CAP,@AM) CRT CRT uid pid ? ? started cpu time run path name *** FOR X = 1 TO NUM.LINES CAPX = TRIM(CAPX,' ','B') CRT CAPX NEXT X HTH --bev At 4/2/2010 01:01 PM, Marc Rutherford wrote: Bill, I have my Phantom processes update a status record (in the DICT of the file related to the Process) with the date/time as the start of each loop. Each program has a characteristic sleep time. The status record also serves as a run flag which can be set to '0' to stop the phantom. I built a Inquiry screen that collects all the status records and displays them. Any process with an 'out of range' date /time stamp is suspect (has stopped). I had at one time a Phantom that watched these status records and re-launched the phantoms if the date/time was out of range, but I discontinued that as it was all too busy. I cannot think of the last time I actually had a phantom fail. We are on HP-UX so I can grep PHANTOM and see the name of the program, but would not tell me the account it is running in: !sh ps -ef | grep PHANTOM marcr 19329 1 0 01:41:02 ? 6:26 /usr/ud/bin/udt PHANTOMHUSH SYS.Z15 Marc Rutherford Senior Programmer/Analyst Advanced Bionics LLC 661) 362 1754 -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Bill Haskett Sent: Friday, April 02, 2010 8:25 AM To: U2 Mail List Subject: [U2] UD: Phantoms In UniData, does anyone know of a sure way to determine if a BASIC program is running as a phantom? We have a background service program in our application that has to be running as a phantom whenever UniData starts. The ability to start something when the dbms starts doesn't exist in UniData, so I have to schedule the task when Windows starts. However, if the program stops (or UD was stopped and restarted) I have no sure way to know if it's running. Does UD have any way to know this? Thanks, Bill Haskett ___ 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 Bev Wilson 410.309.2700 voice 410.309.2701 fax ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] How do you determine terminal emulator?
Thanks for your input, Tony. I almost always find your responses to the list to be thought-provoking. I think for this project (converting greenbar reports to screen or exports) I'm going to go with the hard way approach. The easy way is interesting, but much more complex to set up than the hard way. I'm not even certain that Viaduct supports login scripting. It probably does, but I've not looked at it for much beyond data import/export scripting. If I understand how the easy way would work, the user would ask for a new connection/login from the emulator. In response, the emulator runs a script, prompting for userid, password, then passing it to the server. Once the user is logged in, the emulator's script would be able to call it's own specific programX which would store emulator type for that session. U2 would record the emulator type and then execute a logto into the regular MAIN account, which would then execute it's own LOGIN script. The emulator type would have to be stored under a unique id specific to that user/port id and/or process id to allow for multiple logins. Do people using login scripts with their emulators add auditing for changes of the scripts on each PC to their internal security scans? It would seem to be an ideal place for an unscrupulous someone to insert a password capture routine. No, a better, more secure approach would be to put the login script on the network, and have the emulator run the centralized (and audited) script. How you lockdown the emulator settings to only use the centralized script is another exercise. Regards, --bev Bev Wilson 410.309.2700 voice 410.309.2701 fax ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] How do you determine terminal emulator?
Thanks Stuart, that worked great! Exactly what I was looking for. At 3/9/2010 05:02 PM, Boydell, Stuart wrote: Get and print information about ViaDuct 001 PCCMD=CHAR(27):CHAR(8) 002 PRINT PCCMD:'WHAT' 003 INPUT REPLY 004 PRINT 'This is ':FIELD(REPLY,' ',1): 005 PRINT ' version ':FIELD(REPLY,' ',2): 006 PRINT ' serial number ':FIELD(REPLY,' ',3): 007 PRINT ' running under DOS version ':FIELD(REPLY,' ',4) 008 PRINT ' running under Windows version ':FIELD(REPLY,' ',5) -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Beverly Wilson Sent: Wednesday, 10 March 2010 07:40 To: U2 Users List Subject: [U2] How do you determine terminal emulator? Hi folks, I'm wondering if anyone on the list can tell me what I can do to determine whether a user is using the Viaduct terminal emulator via UniBasic? We have some code that can tell if the emulator is Accuterm or Wintegrate, but I haven't been able to come up with a command string that would cause Viaduct to return a value. I've looked through the docs, but haven't found anything. (I may be suffering situational blindness.) To give you an idea, these lines when run in through Wintegrate puts an X into the variable C: PRINT CHAR(27):CHAR(1):ENTER :DQUOTE(X):CHAR(13): INPUT C WAITING 1 ELSE C = Thanks for your time, --bev Bev Wilson 410.309.2700 voice 410.309.2701 fax ___ 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 Bev Wilson 410.309.2700 voice 410.309.2701 fax ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] How do you determine terminal emulator?
Thanks for your input Bill. Not quite the approach that I was thinking of, but it is certainly food for thought. Of course, I'd also have to make the term types wIntVP and ViaVP. :-) At 3/9/2010 05:29 PM, Bill Haskett wrote: ...based on the emulator (e.g. wIntWy60, AtWy60, VDWy60, etc). Of course viaWy60 may be a more appropriate prefix for a ViaDuct terminal. :-) Bill Bill Haskett said the following on 3/9/2010 2:23 PM: Bev: What I've always done, in all versions of PICK, is define separate term-types based on the emulator (e.g. wIntWy60, AtWy60, VDWy60, etc). Then define the term-type upon user login then you can query the terminal type via the standard SYSTEM(7) function (I use this function in one of our standard includes that assigns a standard variable used throughout our app). HTH, Bill Beverly Wilson said the following on 3/9/2010 12:39 PM: Hi folks, I'm wondering if anyone on the list can tell me what I can do to determine whether a user is using the Viaduct terminal emulator via UniBasic? We have some code that can tell if the emulator is Accuterm or Wintegrate, but I haven't been able to come up with a command string that would cause Viaduct to return a value. I've looked through the docs, but haven't found anything. (I may be suffering situational blindness.) To give you an idea, these lines when run in through Wintegrate puts an X into the variable C: PRINT CHAR(27):CHAR(1):ENTER :DQUOTE(X):CHAR(13): INPUT C WAITING 1 ELSE C = Thanks for your time, --bev Bev Wilson 410.309.2700 voice 410.309.2701 fax ___ 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 Bev Wilson 410.309.2700 voice 410.309.2701 fax ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
[U2] How do you determine terminal emulator?
Hi folks, I'm wondering if anyone on the list can tell me what I can do to determine whether a user is using the Viaduct terminal emulator via UniBasic? We have some code that can tell if the emulator is Accuterm or Wintegrate, but I haven't been able to come up with a command string that would cause Viaduct to return a value. I've looked through the docs, but haven't found anything. (I may be suffering situational blindness.) To give you an idea, these lines when run in through Wintegrate puts an X into the variable C: PRINT CHAR(27):CHAR(1):ENTER :DQUOTE(X):CHAR(13): INPUT C WAITING 1 ELSE C = Thanks for your time, --bev Bev Wilson 410.309.2700 voice 410.309.2701 fax ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users