Getting Asset Name and ID using postgreSQL command line

Hi,
I`m excited by the possibility of getting/putting Annotations from/to FCSvr from command:
/Library/Application\ Support/Final\ Cut\ Server/Final\ Cut\ Server.bundle/Contents/Resources/sbin/fcsvr_run psql px pxdb -c "select * from pxtcmdvalue;"
Using grep and awk (print) it`s possible to extract individual fields. But first I need to identify
Assets Names with Assets ID`s.
Anyone know how to get from command line an asset name from ID and vice versa?
In other words: If I grep for the ID and awk for the 3, 4, and 5 column I can extract TCIN, TCOUT and the Annotations from that Asset ID. But I want to know what Asset is and write to a text file with the asset name and not the asset ID.
The syntax would be more or less like this:
For each ID on the pxtcmdvalue (first column is entityID) get from FCSvr (or from db) the AssetName the columns with TCIN, TCOUT and Value of Annotations. Put (append if more than one entries) this on a tabulated text file named after AssetName.
I`m sorry for not being so "program write" like, but I try! ahaah
Thanks!

Hey guys,
Thank you very much for all this help! Especially fbm! Thanks a lot!
Regarding inserting into annotation I could manage to do that , as I`ve said, I`m stubborn! hehehehe
with this command you can insert an annotation (ONE with each command) into a clip:
/Library/Application\ Support/Final\ Cut\ Server/Final\ Cut\ Server.bundle/Contents/Resources/sbin/fcsvr_run psql px pxdb -c "INSERT INTO pxtcmdvalue VALUES (72, 1527, '00:35:41;09/(30000,1001)', '00:36:28;24/(30000,1001)', 'if works I`ll be very happy!', 1, '2009-03-15 19:31:15.839795-03');"
Of course, remembering to change all things inside single quotes.
The only catch is that you`ll have to know the entityid for the asset in question. Of course, looking into fbm post above it`s possible to "translate" the entityid into the ASSETID, but I don`t know how to parse this inside the parentheses. Maybe letting the "72" (in my case) entityid as "entityid" and outside the parentheses translating with INNER JOIN???
We`re almost there!! I`m glad that this is here, opened to every one that wants to adventure into FCSRV "dark" side!
Just remember, this is NOT supported by APPLE! I`m testing this on a test FCSRV installed on a mini (yes I could "hack" into the "detecting hardware" and disable to manage to install).
Just one more thing: I`ve read somewhere that the pxatommap table has ALL that FCSRV could provide (and of course yours custom md). I`m trying to get ALL this fields to each asset. I`ve tried the command:
/Library/Application\ Support/Final\ Cut\ Server/Final\ Cut\ Server.bundle/Contents/Resources/sbin/fcsvr_run psql px pxdb -c "SELECT * FROM pxatommap INNER JOIN pxmdvalue ON pxatommap.id = pxmdvalue.fieldid"
But it`s very messy and it`s not for one asset.
Thanks again you all that took the time to post to help others like me!
Regards!

Similar Messages

  • How to get Cookie Name and Value Using HttpGetterCallback - CE 7.3

    Hi All,
    We are migrating from Netweaver 7.0 to 7.3. We are facing a issue when migrating the custom login module from 7.0 to 7.3.
    Since WebCallback is deprecated and not to be used in Netweaver 7.3, we are finding difficulties in getting the cookie name and value. Please find below our coding for getting the cookie value using HttpGetterCallback. We are not getting the cookie name and value, Kindly let us know if we are implementing the HttpGetterCallback correctly.
    HttpGetterCallback httpGetCookieCallback = new HttpGetterCallback();
    httpGetCookieCallback.setType(HttpCallback.COOKIE);
    Callback] callbks = new Callback[ { httpGetUrlCallback, httpGetCookieCallback };
    callbackHandler.handle(callbks);
    requestUrl = (String) httpGetUrlCallback.getValue();
    Cookie] cookies = (Cookie [) httpGetCookieCallback.getValue();
    if (cookies != null) {
    for (int i = 0; i < cookies.length; i++) {
    location.debugT("Cookies name " + cookies.getName()
    + " - value "
    + cookies.getValue());
    Thanks and Regards,
    Saravanan

    Try This-
            Cookie cookiesArray[] = request.getCookies();
         Cookie currentCookie = null;
         String currentCookieName = "";
         String cookieValue = "dummycookie";
         int cookieArrayLength = cookiesArray.length;
         for (int i = 0; i < cookieArrayLength; i++) {
              currentCookie = cookiesArray<i>;
              currentCookieName = currentCookie.getName();
              cookieValue = currentCookie.getValue();
    Regards,
    Atul

  • I using new ipad 32gb and i cant get user name and password how i configure it ? please give me solution

    im using new ipad 32gb and i cant get user name and password how i configure it ? please give me solution

    What do you mean 'can't get user name and password' ? What are you trying to do with your iPad and what happens when you do it ?

  • How to find Mobile device OS name and version using Flex?

    is there anyway to get device information like OS name and version using flex 4.5.1 or 4.6 SDK. i am developing a project in Flex which needs to identify the end user mobile platform like Android, iOS.. and its version like Android means 2.1,2.2,etc..
    Anyone can help me on this?

    I don't know that there is a proprietary driver. In fact, I'm sure there isn't because I never installed one. I figured there was some code file somewhere that dealt with keyboards. Yes, I have dealt with the developer, they say to tell Apple there is a problem. I have been putting it off and waiting to update since 10.6.3, so the problem is getting a little old. Do I even know there is a problem? I'm not sure what this means. I do know that when I update my operating system past 10.6.2 my keyboard no longer works, and I have to use a stock Apple keyboard to run a time machine reinstall. Why else would I be going through this?

  • We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader. For which, We created and execute the below command line to call Adobe Reader and print the PDF on a

    We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader. For which, We created and execute the below command line to call Adobe Reader and print the PDF on a printer."C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /T "\\<Application Server>\Report\<TEST.PDF>" "<Printer Name>". Current Situation: The above command line parameter when executed is working as expected in a User's Workspace. When executed in a command line on the Application Server is working as expected. But, the same is not working while executing it from Deployed environment.Software being used: 1. Adobe 11.0 enterprise version. 2. Webshpere Application Server 8.5.5.2. Please let us know if there is a way to enable trace logs in Adobe Reader to further diagnose this issue.

    This is the Acrobat.com forum.  Your question will have a much better chance being addressed in the Acrobat SDK forum.

  • Get Attachment Name and from address of mail in bpel process

    Hi All,
    I am using UMS Adapter to poll email server and  getting the attachment and saving it to local disk.
    In Payload from UMS adapter  i am getting href of the attachment  but I am not able to figure out as to how to get Attachment Name and From Address of a mail in my Bpel process.
    please guide me in getting them .
    Thanks in Advance
    Divyanshu

    1. Double click on your composite receive activity.
    2. Go to Properties tab in your receive activity.
    3. Click "+".
    4. Window that pops up,scroll down and select "jca.ums.from" and store it in some variable say fromAddress (Make sure before adding this property u create fromAddress variable of string data type).
    5. Click OK.
    6. In the same way add property for "jca.ums.msg.content-description" from drop down and assing it to some variable.
    you are good to go.
    Hope this helps.
    Regards,
    Karan
    Oracle Fusion Middleware Blog

  • Find product name and version using JNDI

    Is there any consistent way to find the directory servers product name and version using JNDI. Our software is being used with iPlanet 5.1 and SunOne Directory Server and I need to distinguish between them. Currently I use some code (see below) to look for an object under o=Netscape root branch. But the object I am looking for is apparently (so my sys admin tells me) created as part of the administration server install.
    public static String[] getNetscapeFamilyDirectoryServerDetails(String ldapHost, int ldapPort, String principalDN, String principalPassword) throws NamingException {
    try {
    NamingEnumeration result = performLdapQuery("ldap://" + ldapHost + ":" + ldapPort,"o=NetscapeRoot?nsproductname,nsproductversion?sub?(&(objectclass=nsApplication)(cn~=Directory))",principalDN,principalPassword);
    if (result.hasMore()) {
    SearchResult sr = (SearchResult)result.next();
    Attribute attribute = sr.getAttributes().get("nsproductname");
    String productName = (String)attribute.get();
    attribute = sr.getAttributes().get("nsproductversion");
    String productVersion = (String)attribute.get();
    return new String[]{productName,productVersion};
    catch (Exception e) {
    if (e instanceof NamingException) {
    throw (NamingException)e;
    return null;
    }

    SELECT i.instance_name, i.host_name, f.release_name RELEASE, i.version, k.patch_level FROM
    v$instance i, fnd_product_groups f, fnd_product_installations k WHERE
    UPPER(SUBSTR(i.instance_name, 1, 4)) = UPPER(SUBSTR(f.applications_system_name, 1, 4)) AND
    k.application_id = '200';

  • How can I use srvctl command line for change "Failover type" and "F method"

    Hi all,
    I am using Oracle One Node (11.2.0.3), and I have a service:
    /u01/11.2.0/grid/bin/srvctl config service -d orcl
    Service name: orcldb
    Service is enabled
    Server pool: orcl
    Cardinality: 1
    Disconnect: false
    Service role: PRIMARY
    Management policy: AUTOMATIC
    DTP transaction: false
    AQ HA notifications: false
    Failover type: NONE
    Failover method: NONE
    TAF failover retries: 0
    TAF failover delay: 0
    Connection Load Balancing Goal: LONG
    Runtime Load Balancing Goal: NONE
    TAF policy specification: BASIC
    Edition:
    Preferred instances: orcl_1
    Available instances:
    I would like to change "Failover type" and "Failover method" to:
    Failover type: SELECT
    Failover method: BASIC
    How can I do that? Is there any graphical tool for it? Or, How can I use srvctl command line for change it?
    Thanks in advance.
    Leonardo.

    user10674190 wrote:
    Hi all,
    I am using Oracle One Node (11.2.0.3), and I have a service:
    /u01/11.2.0/grid/bin/srvctl config service -d orcl
    Service name: orcldb
    Service is enabled
    Server pool: orcl
    Cardinality: 1
    Disconnect: false
    Service role: PRIMARY
    Management policy: AUTOMATIC
    DTP transaction: false
    AQ HA notifications: false
    Failover type: NONE
    Failover method: NONE
    TAF failover retries: 0
    TAF failover delay: 0
    Connection Load Balancing Goal: LONG
    Runtime Load Balancing Goal: NONE
    TAF policy specification: BASIC
    Edition:
    Preferred instances: orcl_1
    Available instances:
    I would like to change "Failover type" and "Failover method" to:
    Failover type: SELECT
    Failover method: BASIC
    How can I do that? Is there any graphical tool for it? Or, How can I use srvctl command line for change it?
    Thanks in advance.
    Leonardo.srvctl modify service -d database_name -s orcldb -q TRUE -m BASIC -P BASIC -e SELECT -z 180 -w 5 -j LONG
    Also see
    11gR2(11.2) RAC TAF Configuration for Admin and Policy Managed Databases [ID 1312749.1]

  • How can i install snow leopard on my mac G5 using a command line and booting from an external usb rom, since my disk i have is not a bootable media

    How can i install snow leopard on my mac G5 using a command line and booting from an external usb rom, since my disk i have is not a bootable media

    Hi.
    You simply can't. Snow Leopard is compiled in Intel binary only.
    Good Luck.

  • How do you get a list of your contacts nick names and their phone numbers on line and print them out?

    How do you get a list of your contacts nick names and their phone numbers on line and print them out?  I've been trying to figure out how to get the list to print out but I can't even find a complete list to view on Verizon's web site.  Does anyone know how to do this?

    Log into your online account. In the, 'I want to', box type, Manage Contacts.
    Place your cursor over any contact, a pop screen will appear with the option to print your contacts

  • Problem with getting current date and time using oracle.jbo.domain.Date

    I`d like to get current date and time using oracle.jbo.domain.Date method getCurrentDate(), but it always return current date and 12:00:00. I also need to get the current time.

    I think you should use java.sql.Timestamp domain.
    (And set database type to TIME or DATETIME.)
    Jan

  • My phone was stolen, I have moved it in lost mode,but I can see that whoever has it,is changing phone name and can use it until I activate lost mode again.Can I do it permanently? How can I cancel ICloud back for the stolen phone,it blocks Cloud memory?

    My phone was stolen, I have moved it in lost mode,but I can see that whoever has it,is changing phone name and can use it until I activate lost mode again.Can I do it permanently? How can I cancel ICloud back for the stolen phone, as I cannot delete the stolen phone backup (says that backup is being in use) and this is keeping memory occupied in the Cloud and I cannot back-up the other devices.

    http://support.apple.com/kb/ht2526

  • Running iTunes 11.0.3 64bit Windows 7. The "join Tracks" line has disappeared from the box that opens when you click "options" after inserting a CD. Only 2 lines show up: "Get track names" and "Submit CD Track names". Where did "Join Tracks" go?

    Running iTunes 11.0.3 64bit Windows 7. The "join Tracks" line has disappeared from the box that opens when you click "options" after inserting a CD. Only 2 lines show up: "Get track names" and "Submit CD Track names". Where did "Join Tracks" go?

    i have the same problem no radio stations at all bit shabby hate technolgy now adays

  • Get User Names and Mail Ids present in Exchange Server

    Hello All,
    Can we get all the names and mail ids present in the exchange Server global address book?
    I tried one example but it is giving error.
    Exception in thread "main" javax.naming.CommunicationException: [LDAP: error
                code 2 - Protocol Error]; remaining name 's=satheesh'
    Code is given below:
    Hashtable env = new Hashtable(11);
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL, "ldap://mailserver:389");
    DirContext ctx = new InitialDirContext(env);
    Attributes answer = ctx.getAttributes("s=satheesh");
    Any example code to get user names and mail ids will be helpful.
    Thanks in advance.
    Regards,
    Satheesh A
    [email protected]

    Hi Satheesh,
    I am new to LDAP. I am facing the exact same problem as you mentioned. Did you solve your problem?
    Thanks for any help you can provide.
    Hello All,
    Can we get all the names and mail ids present in the
    exchange Server global address book?
    I tried one example but it is giving error.
    Exception in thread "main"
    read "main" javax.naming.CommunicationException:
    [LDAP: error
    code 2 - Protocol Error]; remaining name
    aining name 's=satheesh'
    Code is given below:
    Hashtable env = new Hashtable(11);
    env.put(Context.INITIAL_CONTEXT_FACTORY,
    "com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL,
    "ldap://mailserver:389");
    DirContext ctx = new InitialDirContext(env);
    Attributes answer = ctx.getAttributes("s=satheesh");
    Any example code to get user names and mail ids will
    be helpful.
    Thanks in advance.
    Regards,
    Satheesh A
    [email protected]

  • Using the command line client...

    I've got a few thousand videos, with metadata, that I have to add to an existing FCS install. Right now, I'm just trying to figure out the proper way to use the command line.
    If I run the following command as root (paasset_predict_motorvideo is the name of my metadata set, as listed in the admin app...)
    bash-3.2# ./fcsvr_client createasset paasset_predict_motorvideo /Users/bfinley/Desktop/test.mov
    I get the following error:
    { CODE = E_NOTSUPP, DESC = Entity /Users/bfinley/Desktop/test.mov doesn't know how to do anything, SRC_FILE = PmdEntity.C, SRC_LINE = 1509, ERROR_TYPE = ET_PERM, ADDRESS = /Users/bfinley/Desktop/test.mov }
    If I pass in the --host, --user, and -pass on the same command, i get:
    { CODE = EMISSINGPARAM, DESC = CURRENTPERMID missing in PmsTask_QueryPerms, looks like unknown node failed to pass it down to child unknown node, NODE = ["PmsTask_QueryPerms" 0x2a51c50, ref=3, wref=2] taskState=0 dbqueue=0x184fb64 needTrans, SRC_FILE = PmsTask_QueryPerms.C, SRC_LINE = 136 }
    I don't need to add any metadata to it, and i get the same error whether I enter any metadata at the end of the query or not.
    I just have a pile of videos, the filenames of which are keys to a table that contains the rest of the metadata, and I want to automate the addition of them to the new FC Server install.
    Am I going about this the wrong way?
    Thanks in advance.

    Brian:
    I've start by placing assets into a device that is configured with Final Cut Server (FCSvr).
    Example, let say you have a folder on your desktop name 1000videos.
    Create a device in FCSvr and map it to /Users/bfinley/1000videos.
    Name this Device with the name of your choice i.e. Library2
    Don't apply any scan schedules to this device etc.
    After you're done with that determine the device id of the new created device by running this command
    ./fcsvr_client search /dev
    you get some output like
    Address DEVICE_NAME DEVICE_TYPE
    /dev/7 Archive_Device filesystem
    /dev/13 Library filesystem
    /dev/10 Media filesystem
    Note down the device id of your newly created device i.e. /dev/13
    Next assuming that you have a file with a filename of test.mov
    use the following command
    sudo fcsvr_client createasset paasset_predict_motorvideo /dev13/test.mov
    you should receive a response to this output containing the newly create asset id.
    Hope this helps.
    Nicholas Stokes
    XPlatform Consulting
    [email protected]

Maybe you are looking for

  • Another problem with updating in ms access

    Hello there, Me too has a problem with the update statement and ms access (using 2003). I've read many other problems, but a way to the solution that worked for I didn't found :S The strange thing with my problem is that i'm able to update integer fi

  • Lion server - is it right for me?

    We are currently using a Mac Mini in our small office for file serviing. It is running 10.6 (NOT server). I have some software running on it that allows me to set up "mount points" for different user groups. I run the mini headless, and am able to "s

  • Migrate one account from multi-user laptop to new hard drive

    Hello - I aologize if this has been asked/answered elsewhere, but I couldn't find it. I have a MacBook unibody whose hard drive is reaching capacity; plus I am giving it to my daughter to take to college. I am "upgrading" the machine with an internal

  • 1 hr vs. 2 hr to a disc

    When creating a project to be burned on a Verbatim DVD, I know the limit is up to 2 hours. Now, conversely, if I only have 45 mins to one hour, can the DVD burned in one-hour mode, perhaps improving the quality of the picture? Or are recording speeds

  • Each (automatic) update loses all my passwords (and existing "help" is a nightmare)

    I have read MANY other people experiencing this problem, and I have seen no good answers. (Some answers require several days of parsing, and I don't have that much time.) Every time Firefox updates itself automatically, it loses most of my passwords!