Mac OS X
Q: fcsvr_client getmd works in Terminal, not from Response
I've written a script that grabs the contents of a metadata lookup named PAENUM_CUSTCLIENTS and does some stuff with it. I get the contents just fine if I run the script from the command line, but I get absolutely nothing when running with a Subscription in FCS.
The full command I'm executing:
/Library/Application\ Support/Final\ Cut\ Server/Final\ Cut\ Server.bundle/Contents/MacOS/fcsvrclivrclient getmd /enum/PAENUM_CUSTCLIENTS
Run from the command line, my "clients" variable is 746 bytes long.
Run from within FCS, my "clients" variable is 0 bytes long.
I've tried piping the output of the command into a file instead of reading directly, but the file is empty. I'm thinking it's a shell problem, but I'm not sure. I am using Perl.
Later in the script, I use "fcsvrclivrclient setmd", which works fine. Anything that outputs seems to not be readable, i.e., list_groups is also empty.
Any help is much appreciated!
Neil
The full command I'm executing:
/Library/Application\ Support/Final\ Cut\ Server/Final\ Cut\ Server.bundle/Contents/MacOS/fcsvrclivrclient getmd /enum/PAENUM_CUSTCLIENTS
Run from the command line, my "clients" variable is 746 bytes long.
Run from within FCS, my "clients" variable is 0 bytes long.
I've tried piping the output of the command into a file instead of reading directly, but the file is empty. I'm thinking it's a shell problem, but I'm not sure. I am using Perl.
Later in the script, I use "fcsvrclivrclient setmd", which works fine. Anything that outputs seems to not be readable, i.e., list_groups is also empty.
Any help is much appreciated!
Neil
Posted on Jan 14, 2011 4:12 PM