#!/bin/bash # nv_jobid.bash - NetVault Job ID Provider # Written by Matt Geller, Meta Media Creative Technologies # (800) 305-2163 | www.metamediatech.com # Use of this script in total or in part is permitted as long as credit to the author is preserved. # global variables # Note: We are logging into the Final Cut Server with RSA-authenticated ssh, # which would need to be setup before secure commands can be executed on this server without requiring a password. fcslogin="ssh root@172.16.1.101" # The NetVault Job ID Path is the path and file on the Final Cut Server in which NetVault will be dumping a line # of text at -job start- which contains the NetVault Job Title and the Job ID that it assigned to the Job. # We can use this to derive the NetVault Job ID for the Job we submit in this script. nvjobidpath="/usr/metamedia/nv_jobid.out" # Log into the Final Cut Server and dump a line of text into the NetVault Job ID Path $fcslogin "echo "$NV_JOBTITLE $NV_JOBID" >> $nvjobidpath" exit 0