Allow /dev/null to be an output file
If I run an art job with the output file set to /dev/null, I get this error message:
%MSG-s ArtException: PostOpenFile 25-Sep-2014 14:54:11 CDT BeforeEvents
cet::exception caught in art
---- FileOpenError BEGIN
RootOutput cannot ascertain a unique temporary filename for output based on stem
"/dev/RootOutput": Permission denied.
cet::exception caught in EventProcessor and rethrown
---- FileOpenError END
Presumably this happens because a temporary file is created in the same directory as the output file
and renamed when it is all set. One can either test for a filename of /dev/null and skip all output steps
for that output stream, or put the output file in another safe place where it can be copied. The first solution keeps all the efficiency we currently have without a copy step, and without a second step of identifying suitable output space beyond what the user has already identified for the output file.
#1 Updated by Christopher Green about 5 years ago
- Status changed from New to Accepted
- Estimated time set to 4.00 h
- Experiment LBNE added
- Experiment deleted (
- SSI Package art added
- SSI Package deleted (
Following discussion at the stakeholders meeting, the
-o /dev/null option will be taken to mean the removal of up to one configured output module.
--no-output will deactivate any and all configured output modules.