TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


technote:std

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
technote:std [2020/03/30 00:22] Scott Cunliffetechnote:std [2025/01/21 22:07] (current) – external edit 127.0.0.1
Line 19: Line 19:
 Piping an input file myVolumes.csv via stdin to TMSS10Sync. Piping an input file myVolumes.csv via stdin to TMSS10Sync.
  
-<sxh>+<code>
 TMSS10Sync -S user:-password@serveraddress < myVolumes.csv TMSS10Sync -S user:-password@serveraddress < myVolumes.csv
-</sxh>+</code>
  
 ===== Stdout ===== ===== Stdout =====
Line 33: Line 33:
 Redirecting stdout from TMSS10Sync to file sync_stdout.txt.  If the file sync_stdout.txt already exists, it will be overwritten. Redirecting stdout from TMSS10Sync to file sync_stdout.txt.  If the file sync_stdout.txt already exists, it will be overwritten.
  
-<sxh>+<code>
 TMSS10Sync -S user:-password@serveraddress < myVolumes.csv > sync_stdout.txt TMSS10Sync -S user:-password@serveraddress < myVolumes.csv > sync_stdout.txt
-</sxh>+</code>
  
 Redirecting stdout from TMSS10Sync to file sync_stdout.txt.  Using the double ''>>'' symbol instead of a single ''>'', the file sync_stdout.txt will be appended to rather than overwritten. Redirecting stdout from TMSS10Sync to file sync_stdout.txt.  Using the double ''>>'' symbol instead of a single ''>'', the file sync_stdout.txt will be appended to rather than overwritten.
  
-<sxh>+<code>
 TMSS10Sync -S user:-password@serveraddress < myVolumes.csv >> sync_stdout.txt TMSS10Sync -S user:-password@serveraddress < myVolumes.csv >> sync_stdout.txt
-</sxh>+</code>
  
 ===== Stderr ===== ===== Stderr =====
Line 51: Line 51:
 Redirecting stderr from TMSS10Sync to file sync_stderr.txt.  If the file sync_stderr.txt already exists, it will be overwritten. Redirecting stderr from TMSS10Sync to file sync_stderr.txt.  If the file sync_stderr.txt already exists, it will be overwritten.
  
-<sxh>+<code>
 TMSS10Sync -S user:-password@serveraddress < myVolumes.csv > sync_stdout.txt 2> sync_stderr.txt TMSS10Sync -S user:-password@serveraddress < myVolumes.csv > sync_stdout.txt 2> sync_stderr.txt
-</sxh>+</code>
  
 Redirecting stdout from TMSS10Sync to file sync_stderr.txt.  Using the double ''>>'' symbol instead of a single ''>'', the file sync_stderr.txt will be appended to rather than overwritten. Redirecting stdout from TMSS10Sync to file sync_stderr.txt.  Using the double ''>>'' symbol instead of a single ''>'', the file sync_stderr.txt will be appended to rather than overwritten.
  
-<sxh>+<code>
 TMSS10Sync -S user:-password@serveraddress < myVolumes.csv >> sync_stdout.txt 2>> sync_stderr.txt TMSS10Sync -S user:-password@serveraddress < myVolumes.csv >> sync_stdout.txt 2>> sync_stderr.txt
-</sxh>+</code> 
 + 
 +===== Concatenating Stdout and Stderr ===== 
 + 
 +Depending on the purpose of the output from stdout and stderr it is possible to combine both streams to the one output file. 
 + 
 +<code> 
 +TMSS10Sync -S user:-password@serveraddress < myVolumes.csv > 2>&1 sync_stdout_stderr.txt 
 +</code> 
technote/std.1585527744.txt.gz · Last modified: 2025/01/21 22:07 (external edit)