Record and re-use keystrokes


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Record and re-use keystrokes
# 1  
Old 11-13-2012
IBM Record and re-use keystrokes

We have a FORTRAN program that creates a report for our client. The client makes a number of selections as to what will appear on the report. However, the client has to repeat this everytime the report is run. I am trying to find a way to record what they've selected (their keystrokes) in UNIX and save it so that they can use a shortcut to re-run an identical report without having to re-select everything. I'm rather new to UNIX, so any input would be appreciated.
# 2  
Old 11-13-2012
The simplest approach is to feed those parameters into the FORTRAN code using a shell script. The shell script can write those parms to a file and reuse them.

So in effect the user can rerun any report that has run in the past.

If you give us a sample of the parameters required, we can start a simple template script for you to tinker with. And no you don't need a keylogger for this.
# 3  
Old 11-13-2012
Thank you for the quick response. Sorry it took so long to reply. The problem is that the parameters as determined by the client, are coming into the script from a GUI called winFAST. So we will have to parse out what we need and leave the GUI code out of the script. Then we can pass them back? The user input determines what is put on the report, and the FORTRAN code is using the input values to determine the direction of the the report detail, format and what database file information to retrieve from different database files. Do you know ISAM?
# 4  
Old 11-13-2012
Ok. whoa.

What UNIX /linux are you using?

Winfast, if it is a GUI, still has to talk to something. A shell script is an executable object, just like compiled FORTRAN. It can talk to the shell script, the shell script takes over for the GUI. We basically have an interposing object. The shell script.

The parameter sets for reports have almost always been up to the customer/clients. I don't see a problem. Does somebody in your shop know enough about UNIX to log on to the command line? Or into some desktop GUI like Gnome? If this is not the case you are as you seem to think: doomed in this endeavor.

And I don't see why ISAM is an issue, except for the cost of commercial ISAM packages.
# 5  
Old 11-14-2012
Unix is on IBM AIX version 5100-04. WinFAST (there is a website: gowinfast.com) is sort of a Unix covering. In-house, we only use the AIX editor, not the GUI. While the client is entering via the GUI, they are really sending info, loading the FORTRAN variables with their selected values, and their movements in WinFAST (i.e. which menus they access and which choices they make) are recorded in a file. That is the file that has all that extraneous GUI code. So I'm thinking that we should be able to parse that information from the file and feed it back to a ksh script and save the script so that the client can access it again? I think this is what you meant, if I'm understanding you correctly...
# 6  
Old 11-14-2012
Can you show us, backed by some samples/scenarios, what the program needs (and gets)? Does it get command line parameters, does it read values, from where (terminal, file, ...)?
# 7  
Old 11-14-2012
For example, the client selects this custom report via a radio button on the GUI. This calls the FORTRAN program that creates the report. The client then selects which fields they want on the report. They make the selection via a grid, which is created from the same FORTRAN program. The choices made (i.e. emp name, address, etc.) are fed back to the FORTRAN program - it is basically the same as asking a question on the terminal and reading in the response. Based on various choices the client makes, the FORTRAN program determines the layout of the report and includes those items that the client has chosen. WinFAST is basically a pass-thru to Unix.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Extract timestamp from first record in xml file and it checks if not it will replace first record

I have test.xml <emp><id>101</id><name>AAA</name><date>06/06/14 1811</date></emp> <Join><id>101</id><city>london</city><date>06/06/14 2011</date></join> <Join><id>101</id><city>new york</city><date>06/06/14 1811</date></join> <Join><id>101</id><city>sydney</city><date>06/06/14... (2 Replies)
Discussion started by: vsraju
2 Replies

2. Shell Programming and Scripting

How to compare current record,with next and previous record in awk without using array?

Hi! all can any one tell me how to compare current record of column with next and previous record in awk without using array my case is like this input.txt 0 32 1 26 2 27 3 34 4 26 5 25 6 24 9 23 0 32 1 28 2 15 3 26 4 24 (7 Replies)
Discussion started by: Dona Clara
7 Replies

3. UNIX for Advanced & Expert Users

Sending keystrokes to another process

The third-party ERP system used by our company has no idle-out facility and we sometimes have issues because users simply walk away from their computers and leave sessions logged in for hours or even go home without logging out. (We are in a factory environment so it is hard to raise the care... (7 Replies)
Discussion started by: Wayne Ivory
7 Replies

4. Programming

How do you detect keystrokes in canonical mode?

I'm writing a command shell, and I want to be able to detect when the user presses an arrow key (otherwise it just prints [[A, [[B, etc.). I know it's relatively easy (although somewhat more time-consuming) to detect keystrokes in noncanonical mode, but I've noticed that the bash shell detects... (4 Replies)
Discussion started by: Ultrix
4 Replies

5. Shell Programming and Scripting

Reject the record if the record in the next line does not satisfy the pattern

Hi, I have a input file with the following entries: 1one 2two 3three 1four 2five 3six 1seven 1eight 1nine 2ten The output should be 1one 2two 3three 1four 2five 3six (2 Replies)
Discussion started by: supchand
2 Replies

6. OS X (Apple)

Any mac software for recording keystrokes

I'm trying to find a good keylogger that doesn't come with any viruses. It happens to me several times that my browser crashes when I am in article writing or some other thing, very annoying. Thus, I need a keylogger to keep all my keystroke recorded. I 'v tried some, like the Aobo Mac Keylogger,... (1 Reply)
Discussion started by: Bluerosen
1 Replies

7. Shell Programming and Scripting

Queueing keystrokes

Hello, I have a ksh which can be run interactively with read etc waiting for input and so forth. Do you have an idea how can I invoke the ksh and supply a sequence of keystrokes that will feed the executable flow so that it will automatically run as if someone actually walked through one prompt... (7 Replies)
Discussion started by: gio001
7 Replies

8. UNIX for Dummies Questions & Answers

Looking for an X11 Utility - Send Keystrokes to Multiple Clients

A long time ago, I frequently used a small X11 utility that allows you to manage multiple systems at the same time. It worked by opening a small window that had a button you used to "Add" X Clients to it. These would be xterms on different systems for example. You would then type inside that... (5 Replies)
Discussion started by: Alon.Albert
5 Replies

9. Shell Programming and Scripting

tool to emulate keystrokes out to a ps/2 device?

hey all, i am trying to connect my mac to my sony DVD changer so that i can control one aspect of it with any kind of shell script or program. the DVD player allows you to plug in a PS/2 keyboard to navigate it's on screen menu. what i want to do is use my mac to navigate my own menus, then... (0 Replies)
Discussion started by: drzoomn
0 Replies

10. UNIX for Dummies Questions & Answers

recording keystrokes in vi

What is the syntax for recording command in vi. If I want to repeat a command over and over. My file is 12/01/05,,adsmte,9,0,0 12/02/05,,adsmte,12,0,0 12/03/05,,adsmte,10,0,0 12/04/05,,adsmte,11,0,0 12/05/05,,adsmte,10,0,0 12/06/05,,adsmte,10,0,0 12/01/05,,tsmpc1,57,1,2... (5 Replies)
Discussion started by: reggiej
5 Replies
Login or Register to Ask a Question