A NOTE has been added to this issue. 
====================================================================== 
https://austingroupbugs.net/view.php?id=1368 
====================================================================== 
Reported By:                steffen
Assigned To:                
====================================================================== 
Project:                    1003.1(2016/18)/Issue7+TC2
Issue ID:                   1368
Category:                   Shell and Utilities
Type:                       Enhancement Request
Severity:                   Editorial
Priority:                   normal
Status:                     New
Name:                       Steffen Nurpmeso 
Organization:                
User Reference:              
Section:                    Vol. 3: Shell and Utilities, at, batch 
Page Number:                2479, 2523 
Line Number:                79636 ff., 81458 ff. 
Interp Status:              --- 
Final Accepted Text:         
====================================================================== 
Date Submitted:             2020-07-08 23:10 UTC
Last Modified:              2020-12-14 16:43 UTC
====================================================================== 
Summary:                    Unworldly use of redirection and mailx(1) in at(1)
and batch(1) examples.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0001367 mailx: add -E option to discard (not se...
====================================================================== 

---------------------------------------------------------------------- 
 (0005168) rhansen (manager) - 2020-12-14 16:43
 https://austingroupbugs.net/view.php?id=1368#c5168 
---------------------------------------------------------------------- 
On page 2479 lines 79638-79640 (XCU at EXAMPLES) change:<blockquote><pre>at
now + 1 hour <<!
diff file1 file2 2>&1 >outfile | mailx mygroup
!</pre></blockquote>to:<blockquote><pre>at now + 1 hour <<EOF
diff file1 file2 2>&1 >outfile | mailx -s "outfile update" mygroup
EOF</pre>Note that this always sends mail when there has been an attempt to
update <b>outfile</b> and the body of the message will be empty unless an
error occurred.

3. The following shows how to capture both standard error and standard
output:<pre>at now + 1 hour <<EOF
{
    exec 3>&1
    run-batch-processing 2>&1 >&3 | mailx -E -s "errors during batch
processing" mygroup
} | mailx -s "batch processing output" mygroup
EOF</pre></blockquote>and renumber the later examples.

On page 2523 lines 81460-81462 (XCU batch EXAMPLES)
change:<blockquote><pre>batch <<!
diff file1 file2 2>&1 >outfile | mailx mygroup
!</pre></blockquote>to:<blockquote><pre>batch <<EOF
diff file1 file2 2>&1 >outfile | mailx -s "outfile update" mygroup
EOF</pre>Note that this always sends mail when there has been an attempt to
update <b>outfile</b> and the body of the message will be empty unless an
error occurred.

3. The following shows how to capture both standard error and standard
output:<pre>batch <<EOF
{
    exec 3>&1
    run-batch-processing 2>&1 >&3 | mailx -E -s "errors during batch
processing" mygroup
} | mailx -s "batch processing output" mygroup
EOF</pre></blockquote> 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2020-07-08 23:10 steffen        New Issue                                    
2020-07-08 23:10 steffen        Name                      => Steffen Nurpmeso
2020-07-08 23:10 steffen        Section                   => Vol. 3: Shell and
Utilities, at, batch
2020-07-08 23:10 steffen        Page Number               => 2479, 2523      
2020-07-08 23:10 steffen        Line Number               => 79636 ff., 81458
ff.
2020-07-09 08:02 geoffclare     Relationship added       related to 0001367  
2020-12-14 16:43 rhansen        Note Added: 0005168                          
======================================================================


  • [1003.1(2016... Austin Group Bug Tracker via austin-group-l at The Open Group
    • Re: [10... Robert Elz via austin-group-l at The Open Group
      • Re:... Richard Hansen via austin-group-l at The Open Group
      • Re:... Robert Elz via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group

Reply via email to