<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Executing Jobs from Batch server in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Executing-Jobs-from-Batch-server/m-p/399705#M10529</link>
    <description>&lt;P&gt;How about telling us what scheduler you are using then?&lt;/P&gt;</description>
    <pubDate>Fri, 29 Sep 2017 06:23:02 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2017-09-29T06:23:02Z</dc:date>
    <item>
      <title>Executing Jobs from Batch server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Executing-Jobs-from-Batch-server/m-p/399364#M10519</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A particular job is runing everyday morning at 04:00AM , and th elog is getting created under Batchserver Logs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From management console , Schedule Manager i have deleted the flow of this particular run. Also i have deleted the backend deployed jobs as well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But still i am wandering the log is getting created everyday and exactly i need to know from where this job is getting triggered.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please, anyon ehelp me on this please.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Sundeep&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 23:47:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Executing-Jobs-from-Batch-server/m-p/399364#M10519</guid>
      <dc:creator>sandeep_reddy</dc:creator>
      <dc:date>2017-09-27T23:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Jobs from Batch server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Executing-Jobs-from-Batch-server/m-p/399369#M10520</link>
      <description>&lt;P&gt;If this is an LSF-scheduled job then you can go into the Platform Process Manager Flow Editor tool and right click on the flow and select Remove.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 01:05:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Executing-Jobs-from-Batch-server/m-p/399369#M10520</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-09-28T01:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Jobs from Batch server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Executing-Jobs-from-Batch-server/m-p/399694#M10527</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Thanks for the Help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my environment we dont have LSF and any LSF scheduled Jobs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Sandeep&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 03:54:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Executing-Jobs-from-Batch-server/m-p/399694#M10527</guid>
      <dc:creator>sandeep_reddy</dc:creator>
      <dc:date>2017-09-29T03:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Jobs from Batch server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Executing-Jobs-from-Batch-server/m-p/399699#M10528</link>
      <description>&lt;P&gt;If the jobs are being started with the ../BatchServer/sasbatch.sh script, then you can always echo some values to a file to give you an indication who/what is calling the script i.e. put some echos in&amp;nbsp;sasbatch_usermods.sh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you checked your cron schedules ? Assuming UNIX....&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 04:54:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Executing-Jobs-from-Batch-server/m-p/399699#M10528</guid>
      <dc:creator>nhvdwalt</dc:creator>
      <dc:date>2017-09-29T04:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Jobs from Batch server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Executing-Jobs-from-Batch-server/m-p/399705#M10529</link>
      <description>&lt;P&gt;How about telling us what scheduler you are using then?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 06:23:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Executing-Jobs-from-Batch-server/m-p/399705#M10529</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-09-29T06:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Jobs from Batch server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Executing-Jobs-from-Batch-server/m-p/400628#M10547</link>
      <description>&lt;P&gt;One way off the top of my head would be to use &lt;EM&gt;inotify&lt;/EM&gt; to detect for the creation of the log&amp;nbsp;file, use &lt;EM&gt;fuser&lt;/EM&gt; get the pid of the process that has a handle on it, and then something like &lt;EM&gt;ps&lt;/EM&gt; to get more info on the process and store it for later.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lang-sh prettyprint prettyprinted"&gt;&lt;CODE&gt;&lt;SPAN class="pln"&gt;inotifywait &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;m &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;/my/config/lev/App/BatchServer/Logs&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;e create &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;e moved_to &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;|&lt;/SPAN&gt;
    &lt;SPAN class="kwd"&gt;while&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; read path action file&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;;&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;do&lt;/SPAN&gt;
        &lt;SPAN class="kwd"&gt;if&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;[[&lt;/SPAN&gt; &lt;SPAN class="str"&gt;"$file"&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;=~&lt;/SPAN&gt; myjob*&lt;SPAN class="pun"&gt;.log&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;$ &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;]];&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;then&lt;/SPAN&gt; &lt;SPAN class="com"&gt;# Within quotes specify filename matching criteria&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
            fuser $file&lt;/SPAN&gt; | xargs ps -fp &amp;gt; ~/myanswer.txt  &lt;SPAN class="com"&gt;# get pid, get info, get answer&lt;/SPAN&gt;
        &lt;SPAN class="kwd"&gt;fi&lt;/SPAN&gt;
    &lt;SPAN class="kwd"&gt;done&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;I've not tested it but it should do the trick.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nik&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 15:57:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Executing-Jobs-from-Batch-server/m-p/400628#M10547</guid>
      <dc:creator>boemskats</dc:creator>
      <dc:date>2017-10-03T15:57:07Z</dc:date>
    </item>
  </channel>
</rss>

