New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configure.pl and sockets #4
Comments
The configure script currently auto-greps the hostname by running the It is also important to note that aw-queue.pl does validate the hostname of the PresSTORE server against what the hostname is at run time, so if you have bad DNS or a bad lookup, it will likely fail to run. |
I finally began working on this last evening. I'm hoping in the next two weeks or so to have some more advanced round tripping of information back into CatDV |
Nice! I have actually written a bash script to do this. It's a little bit of a hack. But the way it works is that it updates an "Archive History" field that tracks archive/restore events. Every time a clip is archived or restored the field has a line added. The job number and tape barcode are pushed back into CatDV. The only problem is triggering this script. I have tried to get PresStore to run it as a post archive script but it hasn't worked. I think it's because it's located on another machine, the machine that's running Worker Node. Because I have one machine running WN and one running PresStore, Castor has to be split between the two machines. I've tried running the script several different ways and it hasnt' worked. The other problem is that I also want it to track restores. There is no built-in post-restore command in PresStore so I have my restore-queue.sh script actually monitor PresStore for restore jobs, and if it finds one, it waits until the status changes to something other than "running," then the info is added to CatDV. I'll probably end up doing the same thing for archive jobs. |
Hey, send me an email, I have a completely revamped version of Castor in pre-beta that I figured you'd like to give a try. Don't want to make it public yet, but would be happy to send it your way. |
Because of the mods I made to the restore workflow, I needed to install Castor on the same machine as Worker Node, which is not the machine that's running PresStore. Because of this, I had to edit configure.pl so that the nsdchat command ran through the socket. Without doing that, it was trying to reference the archive plan number and index on localhost, instead of the PresStore server. Changing the nsdchat command was the only thing I could do to make it work. Not sure how to suggest changing configure.pl to do this... maybe have it ask the user for the PresStore server address with a default of [localhost]?
I have a few other suggestions for the configuration:
Note: I've symlinked /Applications/CatDV Worker/catdv in /usr/local/bin/
get the clip ID from CatDV
$clipid =
catdv -mediafile "$ARGV[0]" -print1 CREF
;$clipid =~ s/\n//;
get the base filename (similar to $f in CatDV)
$xmlbasename = basename($ARGV[0]);
$xmlfile = "$clipid_$xmlbasename";
This works when testing catdv-xml.pl on the command line, I will test it in production and let you know how it turns out.
The text was updated successfully, but these errors were encountered: