Skip to content

Commit

Permalink
Added option to view an ioc's pvlist in ioctool
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaushik Malapati authored and Kaushik Malapati committed Mar 18, 2024
1 parent f92d08a commit b61743e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion scripts/ioctool
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ data : returns the path of the appropriate iocData directory if it exists
autosave : opens the most recent autosave file in less
archive : opens the most recent archive file in less
log : opens the most recent log file in less
telnet : starts a telnet session with the ioc
telnet : starts a telnet session with the ioc
pvs : opens the IOC.pvlist file in less
EOF
}
Expand Down Expand Up @@ -304,4 +305,14 @@ elif [ "$CMD" == "telnet" ]; then
PORT=$(echo "$INFO" | sed -n "s/^.*port: \(\S*\),.*$/\1/p")
echo "$HOST":"$PORT"
telnet "$HOST" "$PORT"

#################################################################

elif [ "$CMD" == "pvs" ]; then
pvlistfile=/reg/d/iocData/"${NAME}"/iocInfo/IOC.pvlist
if [ -f "$pvlistfile" ]; then
less "$pvlistfile"
else
echo "$pvlistfile could not be found." >&2
fi
fi

0 comments on commit b61743e

Please sign in to comment.