#!/bin/bash # nv_jobstatus.bash - NetVault Job Status Dump # 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 Status Path is the path and file on the Final Cut Server in which NetVault will be dumping a line # of text at -job completion- which contains the NetVault Job Title, Job ID and Job Status for a completed Job. # We can use this to determine when the Job is complete and if it was successful. nvjobstatuspath="/usr/metamedia/nv_jobstatus.out" # Log into the Final Cut Server and dump a line of text into the NetVault Job Status Path $fcslogin "echo "$NV_JOBTITLE $NV_JOBID $NV_STATUS" >> $nvjobstatuspath" exit 0