Comment 0 for bug 1741844

Revision history for this message
Ralph Lange (ralph-lange) wrote :

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 $?