<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: XgridDRMAA ObjC interface</title>
	<atom:link href="http://code.edbaskerville.com/2006/06/05/xgriddrmaa-objc-interface/feed/" rel="self" type="application/rss+xml" />
	<link>http://code.edbaskerville.com/2006/06/05/xgriddrmaa-objc-interface/</link>
	<description>software development by ed baskerville</description>
	<pubDate>Tue, 06 Jan 2009 06:05:23 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: charles</title>
		<link>http://code.edbaskerville.com/2006/06/05/xgriddrmaa-objc-interface/#comment-25</link>
		<dc:creator>charles</dc:creator>
		<pubDate>Sun, 11 Jun 2006 04:46:03 +0000</pubDate>
		<guid isPermaLink="false">http://code.edbaskerville.com/2006/06/05/xgriddrmaa-objc-interface/#comment-25</guid>
		<description>It is a good idea to wrap the executable. I was thinking of doing that too for automatic caching of files and executables. Also, wrapping helps to catch more error and have more useful error messages.

Yes, definitely lots of good things!</description>
		<content:encoded><![CDATA[<p>It is a good idea to wrap the executable. I was thinking of doing that too for automatic caching of files and executables. Also, wrapping helps to catch more error and have more useful error messages.</p>
<p>Yes, definitely lots of good things!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed</title>
		<link>http://code.edbaskerville.com/2006/06/05/xgriddrmaa-objc-interface/#comment-24</link>
		<dc:creator>Ed</dc:creator>
		<pubDate>Tue, 06 Jun 2006 19:43:46 +0000</pubDate>
		<guid isPermaLink="false">http://code.edbaskerville.com/2006/06/05/xgriddrmaa-objc-interface/#comment-24</guid>
		<description>Security's not an answer here, because you can of course change the working directory from the executable. Or rather, in the case of non-SSO setups running as nobody, you can't! I suspect the answer is that they didn't think it would be necessary, since the executable can do it anyway. Unfortunately, that means the full DRMAA API can't be supported fully by mapping things directly from DRMAA to Xgrid.

I could, however, decide to ship off a small executable or shell script with each DRMAA job that wrapped the "real" job, first changing directories (and failing if the privileges aren't there).

That little executable could also collect better resource usage information, something that Xgrid doesn't do natively...my, this is sounding like a good idea!</description>
		<content:encoded><![CDATA[<p>Security&#8217;s not an answer here, because you can of course change the working directory from the executable. Or rather, in the case of non-SSO setups running as nobody, you can&#8217;t! I suspect the answer is that they didn&#8217;t think it would be necessary, since the executable can do it anyway. Unfortunately, that means the full DRMAA API can&#8217;t be supported fully by mapping things directly from DRMAA to Xgrid.</p>
<p>I could, however, decide to ship off a small executable or shell script with each DRMAA job that wrapped the &#8220;real&#8221; job, first changing directories (and failing if the privileges aren&#8217;t there).</p>
<p>That little executable could also collect better resource usage information, something that Xgrid doesn&#8217;t do natively&#8230;my, this is sounding like a good idea!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: charles</title>
		<link>http://code.edbaskerville.com/2006/06/05/xgriddrmaa-objc-interface/#comment-23</link>
		<dc:creator>charles</dc:creator>
		<pubDate>Tue, 06 Jun 2006 04:06:52 +0000</pubDate>
		<guid isPermaLink="false">http://code.edbaskerville.com/2006/06/05/xgriddrmaa-objc-interface/#comment-23</guid>
		<description>You are right. I never really used the 'environment' key, but this does not work:

{
    jobSpecification = {
        applicationIdentifier = "com.apple.xgrid.cli"; 
        inputFiles = {}; 
        name = "/bin/sh"; 
        submissionIdentifier = abc; 
        taskSpecifications = {
            0 = {
                environment = { TEST = "testing"; PWD = "/bin"; };
                command = "/bin/sh";
                arguments = ("-c", "/bin/echo PWD=$PWD; /bin/echo TEST=$TEST; ls");
            };
        }; 
    }; 
}

Some security issue?? (this is always a good excuse!)</description>
		<content:encoded><![CDATA[<p>You are right. I never really used the &#8216;environment&#8217; key, but this does not work:</p>
<p>{<br />
    jobSpecification = {<br />
        applicationIdentifier = &#8220;com.apple.xgrid.cli&#8221;;<br />
        inputFiles = {};<br />
        name = &#8220;/bin/sh&#8221;;<br />
        submissionIdentifier = abc;<br />
        taskSpecifications = {<br />
            0 = {<br />
                environment = { TEST = &#8220;testing&#8221;; PWD = &#8220;/bin&#8221;; };<br />
                command = &#8220;/bin/sh&#8221;;<br />
                arguments = (&#8221;-c&#8221;, &#8220;/bin/echo PWD=$PWD; /bin/echo TEST=$TEST; ls&#8221;);<br />
            };<br />
        };<br />
    };<br />
}</p>
<p>Some security issue?? (this is always a good excuse!)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
