<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>gridengine.info : Tag oneliner, everything about oneliner</title>
    <link>http://gridengine.info/tag/oneliner.rss</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>tracking Grid Engine news, bugs, howtos and best practices</description>
    <item>
      <title>qstat kung fu</title>
      <description>&lt;p&gt;A user &lt;a href="http://gridengine.sunsource.net/servlets/BrowseList?list=users&amp;by=thread&amp;from=27707"&gt;posted to the list&lt;/a&gt; looking for an efficient way of probing the designated output directory of active (pending or running) jobs. 
&lt;/p&gt;
&lt;p&gt;
Once again, Reuti comes up with a &lt;a href="http://gridengine.sunsource.net/servlets/ReadMsg?list=users&amp;msgNo=23329"&gt;nice suggestion&lt;/a&gt;, this time employing a shell one-liner that pipes the output of a wildcard "qstat -j '*'" query through awk:
&lt;pre&gt;
$ qstat -j "*" | awk ' /^job_number:/ { job_number=$2 } /^sge_o_workdir:/  \
{ print job_number, $2 } '
&lt;/pre&gt;
&lt;/p&gt;
&lt;p&gt;And like the original poster mentioned, I also had no idea that wildcards could be used with the "-j" option to qstat. Thanks Reuti!
&lt;/p&gt;


</description>
      <pubDate>Mon, 04 Feb 2008 17:45:36 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:a9e673af-3988-4694-9cd1-a752a03c7e53</guid>
      <author>dag@sonsorol.org (chris)</author>
      <comments>http://gridengine.info/2008/02/04/qstat-kung-fu#comments</comments>
      <category>Administration</category>
      <category>MailList Bits</category>
      <category>qstat</category>
      <category>one liner</category>
      <link>http://gridengine.info/2008/02/04/qstat-kung-fu</link>
    </item>
  </channel>
</rss>
