-
Notifications
You must be signed in to change notification settings - Fork 30
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
Changes to ioctool #95
Conversation
One more suggestion for any time you're doing a bash script: make sure you run the result through shellcheck, it can often help catch issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool additions 👍
I need to review the handling of multiple iocs and how functions are used further but here's a few things to go off of for now.
…nction, and made some style changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is clean and useful and it probably should have been merged a while ago.
I have 3 more things to point out that could be follow-ups instead of keeping this open, or they could be addressed now at your discretion.
################################################################# | ||
|
||
elif [ "$CMD" == "autosave" ]; then | ||
autosavefile=/reg/d/iocData/"${NAME}"/autosave/${NAME}.sav |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This branch does not work for the pytmc-generated twincat IOC autosave files because the file names are different:
$ ls /cds/data/iocData/ioc-lfe-motion/autosave/
info_positions.req info_positions.sav_210325-173832 info_positions.sav_230119-152437 info_settings.sav_201118-210022 info_settings.sav_210823-132817
info_positions.sav info_positions.sav_210325-175539 info_positions.sav_230121-060135 info_settings.sav_210106-165713 info_settings.sav_210918-133200
info_positions.sav0 info_positions.sav_210326-165516 info_positions.sav_230121-123032 info_settings.sav_210115-133120 info_settings.sav_211005-100349
info_positions.sav1 info_positions.sav_210402-105142 info_positions.sav_230204-164422 info_settings.sav_210119-153527 info_settings.sav_211012-101144
info_positions.sav2 info_positions.sav_210423-095513 info_positions.sav_230220-064720 info_settings.sav_210211-110618 info_settings.sav_211021-102332
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will make this an issue.
Ok I think this is good to go, I'm going click the "merge" button |
Description
Changes to ioctool script involved making searching through config files better, adding the option to open other useful iocInfo files, allowing camera name input to find information, addition of a "cat" option and fixed issues that dealt with multiple iocs.
Motivation and Context
Fixes #79 .
How Has This Been Tested?
Tests involved sourcing the script from my epics-dev directory using various camera, pv and ioc names.
Where Has This Been Documented?
Both scripts have updated usage functions