Method: RightScale::Platform::Shell#format_redirect_both
- Defined in:
- lib/right_agent/platform.rb
#format_redirect_both(cmd, target = nil) ⇒ String
Appends STDERR redirection to the given shell command.
542 543 544 545 |
# File 'lib/right_agent/platform.rb', line 542 def format_redirect_both(cmd, target = nil) target ||= null_output_name return cmd + " 1>#{target} 2>&1" end |