#!/bin/sh
filename=${1}
outfile=${2}
echo --- > "${outfile}"
echo :type: upload >> "${outfile}"
echo :destination:'\n' - rtsp://qtss.someschool.edu/dir/subdir/"${filename}" >> "${outfile}"
2. Place the script in the Tools directory
3. Create a new workflow shell action to call the script
<key>rtsp-link-yaml</key>
<dict>
<key>arguments</key>
<array>
<string>shell</string>
<string>--prb=$$GLOBAL::Library Bundle Path$$</string>
<string>--</string>
<string>$$Workflow Resource Path$$/Tools/link_print.sh</string>
<string>$$SOURCE::0::Filename$$</string>
<string>rtsp_link.yaml</string>
</array>
<key>command</key>
<string>/usr/bin/pcastaction</string>
<key>dependsOnTasks</key>
<array>
<string>preflight</string>
</array>
</dict>
4. Call the generated .yaml from from the mail notify action
<key>notify-plugin-email-af6a64ff8bf7e69a70af820cea17c182</key>
<dict>
<key>arguments</key>
<array>
<string>mail</string>
<string>--prb=$$GLOBAL::Library Bundle Path$$</string>
<string>--smtp_server=$$SMTP Server$$</string>
<string>--from=pcastadmin@someschool.edu</string>
<string>--pmu=$$GLOBAL::Workflow Resource Path$$/Templates/email.pmu</string>
<string>--no_fail</string>
<string>--to=$$GLOBAL::Administrator Email Address$$</string>
<string>--to=$$GLOBAL::User Email Address$$</string>
<string>--publish_info=rtsp_link.yaml</string>
</array>
<key>command</key>
<string>/usr/bin/pcastaction</string>
<key>dependsOnTasks</key>
<array>
<string>upload-to-cunix</string>
</array>
</dict>
</plist>
2 comments:
Hi, I'm trying to replicate this on my own xserve and I don't see where the email.pmu file comes into play - is there a file that wasn't included in teh tutorial, or am I missing something? I'm not a programmer, so a touch of general explanation would be handy with any tips. Thanks.
Or more simply - if I follow the steps above verbatim, can I expect a similar result? Or is it assumed that the user has depper knowledge of Ruby on rails?
Post a Comment