-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fesh: handle interactive prompts from drudg #38
Comments
Perhaps it would be easier to put some automatic functionality into Say a list of prefilled answers in eg |
I guess I don't see it, but I am happy to learn! My understanding is somewhat naive. It seems like ~/.drudgrc has three issues:
OTOH, putting in a couple command line arguments for fesh might be a fairly surgical way to provide the functionality. There could be say -t for the tpicd interval answer and -c for the continuous cal answer. Whichever options are present, they would be used in the 'here' document input for drudg. The flaw in this approach is that it seems like you would have to have different 'here' documents, one for each combination of options. For four combinations it is just a little ugly, but obviously won't scale. Oh well. |
Right. My general point is rather than pattern matching on drudg's output and trying to map out drudg's state inside fesh, it might be easier to go to the source and put some kind of automation there. The Though |
It seems like this can be handed in three steps without modifying drudg:
The first is relatively easy since since the configuration at a station is usually fixed for geo and multiple modes don't need to be allowed for. The second can probably be handled by fesh2 (using expect) if the answers to drudg probably don't change depending on the mode. However, multiple mode geo schedules are extremely rare. The third is more difficult because the answers to drudg may depend on the band. There may be simplifying cases, most notably, stations where the answers are always the same. That still won't handle multiple modes per schedule, but as already mentioned that may be handled by fesh2. Jim also suggested having difference responses for different classes (maybe by band?) of schedules. For the third, it will also be necessary to allow for changing the rack and recorder for eVLBI. This could probably be handled relatively easily with a command line option to insert rack/recorder selection in the drudg input. |
Step 1 completed with 746f40d |
Depending on the skedf.ctl set-up, drudg may want to prompt interactively, currently for tpicd interval and continuous cal control when making .prc files.
Maybe there is some way to pass those "unexpected" prompts to the user for an answer (expect?).
Maybe fesh could have command line options to set those responses or to allow the .prc dialogue to be interactive or something better ...
The text was updated successfully, but these errors were encountered: