{"id":616,"date":"2012-05-01T03:28:37","date_gmt":"2012-05-01T03:28:37","guid":{"rendered":"http:\/\/kraftek.com\/blog\/?p=616"},"modified":"2012-05-01T03:28:37","modified_gmt":"2012-05-01T03:28:37","slug":"adobe-central-output-server-5-5-jetforms-remote-usage","status":"publish","type":"post","link":"\/blog\/index.php\/adobe-central-output-server-5-5-jetforms-remote-usage\/","title":{"rendered":"Adobe Central Output Server 5.5 (jetforms) remote usage"},"content":{"rendered":"<p>We had to install jetforms in an AIX machine, for development purposes, but didn\u2019t have a license\u2026<br \/>\nFiguring out it receives jobs and outputs pdfs in directories, well, we can just copy the jobs to a remote server<br \/>\nand retrieve the pdfs too.<br \/>\nThe forms should also be placed somewhere to be replicated.<br \/>\nSo we installed jetforms in a remote solaris machine, and wrote some daemon scripts in the AIX, to do the<br \/>\njob, form and result transfer.<br \/>\nThe core of it all is \/scripts\/jf.ksh, a set of 3 daemons written in one script:<br \/>\n# cat \/scripts\/jf.ksh<br \/>\n#!\/bin\/ksh<br \/>\necho \u201c`date` starting\u2026\u201d<br \/>\n(while true;do<br \/>\n(for file in \/usr\/local\/adobe\/central\/server\/data\/*.dat;do<br \/>\necho \u201c`date`: COPYING: $file TO REMOTE\u201d<br \/>\n273\/433<br \/>\nrcp $file wasdesa2:\/usr\/local\/adobe\/central\/server\/data<br \/>\nrm $file<br \/>\ndone) &gt;\/dev\/null 2&gt;&amp;1<br \/>\nsleep 4;<br \/>\ndone ) &amp;<br \/>\n(while true;do<br \/>\n(for file in `find \/usr\/local\/adobe\/central\/server\/etc\/exprint\/forms -type f -mtime -1`;do<br \/>\necho \u201c`date`: COPYING: $file TO REMOTE\u201d<br \/>\nrcp $file wasdesa2:\/usr\/local\/adobe\/central\/server\/etc\/exprint\/forms<br \/>\ndone) &gt;\/dev\/null 2&gt;&amp;1<br \/>\nsleep 15;<br \/>\ndone ) &amp;<br \/>\n(while true;do<br \/>\nfor file in `rsh wasdesa2 \u201cfind \/usr\/local\/adobe\/central\/server\/data -type f -mtime -100| grep -i pdf\u201d`;do<br \/>\nif [ ! -f $file ];then<br \/>\necho \u201c`date`: COPYING: $file FROM REMOTE\u201d<br \/>\nrcp wasdesa2:$file \/usr\/local\/adobe\/central\/server\/data<br \/>\nfi<br \/>\ndone<br \/>\nsleep 4;<br \/>\ndone ) &amp;<br \/>\nThe enclosed parentheses do the forking magic. We are using \/.rhosts loose security for this, maybe we\u2019ll use<br \/>\nkeys on ssh later.<br \/>\nTo keep the party going on and on, we wrote a \u201cstart\u201d script<br \/>\n# cat \/scripts\/jetstart.ksh<br \/>\n#!\/bin\/ksh<br \/>\nP=`ps -ef | grep jf.ksh|grep -iv grep|wc -l`<br \/>\nif [ $P -eq 0 ];then<br \/>\necho \u201cjf is not running, starting..\u201d<br \/>\n\/scripts\/jf.ksh &gt; \/scripts\/jf.log &amp;<br \/>\necho \u201cstarted\u201d<br \/>\nfi<br \/>\nWe also wrote a \u201cstop\u201d script:<br \/>\n# cat \/scripts\/jetstart.ksh<br \/>\n#!\/bin\/ksh<br \/>\nP=`ps -ef | grep jf.ksh|grep -iv grep|wc -l`<br \/>\nif [ $P -eq 0 ];then<br \/>\necho \u201cjf is not running, starting..\u201d<br \/>\n\/scripts\/jf.ksh &gt; \/scripts\/jf.log &amp;<br \/>\necho \u201cstarted\u201d<br \/>\nfi<br \/>\nAnd added a cron entry to keep it goin\u2019<br \/>\n0,5,10,15,20,25,30,35,40,45,50,55<br \/>\n\/scripts\/jetstart.ksh &gt; \/dev\/null 2&gt;&amp;1<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We had to install jetforms in an AIX machine, for development purposes, but didn\u2019t have a license\u2026 Figuring out it receives jobs and outputs pdfs in directories, well, we can just copy the jobs to a remote server and retrieve the pdfs too. The forms should also be placed somewhere to be replicated. So we [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-616","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/616","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=616"}],"version-history":[{"count":0,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/616\/revisions"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=616"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=616"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}