Project

General

Profile

Feature #7073

Allow /dev/null to be an output file

Added by Thomas Junk about 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Low
Category:
I/O
Target version:
Start date:
09/25/2014
Due date:
% Done:

100%

Estimated time:
16.00 h
Spent time:
Scope:
Internal
Experiment:
LBNE
SSI Package:
art
Duration:

Description

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
%MSG

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.

History

#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.

#2 Updated by Christopher Green almost 5 years ago

  • Target version set to 1.12.04

#3 Updated by Christopher Green almost 5 years ago

  • Status changed from Accepted to Resolved
  • Assignee set to Christopher Green
  • % Done changed from 0 to 100
  • Estimated time changed from 4.00 h to 16.00 h

Implemented with tests by 9a8735139819cd58f28e5a9832e090e21da5fc4a.

#4 Updated by Christopher Green almost 5 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF