TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


engine:import:setpostscript

Differences

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

Link to this comparison view

Next revision
Previous revision
engine:import:setpostscript [2018/08/14 23:18] – created dcummingengine:import:setpostscript [2025/01/21 22:07] (current) – external edit 127.0.0.1
Line 1: Line 1:
-setpostscript+====== SetPostScript ======
  
- 
-==== SetPostScript ==== 
 Set a script to be run at the end of source processing. Set a script to be run at the end of source processing.
  
-==== Phase ====+===== Phase ====
 This instruction is used by the TapeTrack Import Engine. This instruction is used by the TapeTrack Import Engine.
  
-==== Syntax ==== +===== Syntax ===== 
-**SetPreScript**//(command);//+ 
 +''SetPostScript(command);'' 
 + 
 + 
 +^ Variable ^ Type ^ Description ^ Min Length ^ Max Length ^ 
 +|command|String| The full path to a script or executable to be run with the system(3) call at the end of Import Engine processing.|1|256| 
 + 
 +===== Example ===== 
 + 
 +Rename a file with a time stamp after the file is processed. 
 + 
 +<code> 
 +SetVar2Date(FILENAME, "*", "vmquery-%%Y-%%m-%%d"); 
 +SetPostScript("rename vmquery.txt $FILENAME"); 
 +</code>
  
-string //command;//\\+===== See Also =====
  
-|command| The full path to a script or executable to be run with the system(3) call at the end of Import Engine processing.|+[[engine:import|Import Engine Functions]] \\ 
 +[[cli:sync_fields|Sync Engine Fields]] \\ 
 +[[cli:tmss10sync|TMSS10Sync]]
  
-==== Example ==== +{{tagimport_engine sync_engine}}
-**SetPostScript: Rename a file with a time stamp after the file is processed.** +
-|SetVar2Date(<nowiki>FILENAME, "*", "vmquery-%%Y-%%m-%%d");</nowiki>+
-|SetPostScript("rename vmquery.txt $FILENAME");|+
engine/import/setpostscript.1534288681.txt.gz · Last modified: 2025/01/21 22:07 (external edit)