Reported by <email address hidden>:
The EPICS caput command has a return code that indicates success/failure. A successful command returns 0.
However, I am finding it also returns 0 if the command experienced an exception:
$ caput LOCK1:LOCKGET 124 Old : LOCK1:LOCKGET 124 New : LOCK1:LOCKGET 124 $ echo $? 0
$ caput LOCK1:LOCKGET 123 Old : LOCK1:LOCKGET 124 New : LOCK1:LOCKGET 123 CA.Client.Exception............................................... Warning: "Channel write request failed" Context: "op=1, channel=LOCK1:LOCKGET, type=DBR_STRING, count=1, ctx="LOCK1:LOCKGET"" Source File: ../oldChannelNotify.cpp line 160 Current Time: Fri Dec 22 2017 16:15:44.013886541 ..................................................................
$ echo $?
Reported by <email address hidden>:
The EPICS caput command has a return code that indicates success/failure.
A successful command returns 0.
However, I am finding it also returns 0 if the command experienced an
exception:
$ caput LOCK1:LOCKGET 124
Old : LOCK1:LOCKGET 124
New : LOCK1:LOCKGET 124
$ echo $?
0
$ caput LOCK1:LOCKGET 123 Exception. ....... ....... ....... ....... ....... ....... .... LOCK1:LOCKGET, type=DBR_STRING, count=1, LOCKGET" " tify.cpp line 160 ....... ....... ....... ....... ....... ....... ....... ....... ...
Old : LOCK1:LOCKGET 124
New : LOCK1:LOCKGET 123
CA.Client.
Warning: "Channel write request failed"
Context: "op=1, channel=
ctx="LOCK1:
Source File: ../oldChannelNo
Current Time: Fri Dec 22 2017 16:15:44.013886541
.......
$ echo $?