<?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: Run Shell script in specific server through sas studio in SAS Software for Learning Community</title>
    <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Run-Shell-script-in-specific-server-through-sas-studio/m-p/806691#M459</link>
    <description>&lt;P&gt;SAS/Studio itself cannot run any operating system commands.&amp;nbsp; It is the front end that you interact with to submit SAS code.&amp;nbsp; Now the SAS code you submit using SAS/Studio can run operating system commands (as long as that has not been prevented by the administrator).&amp;nbsp; Those command will obviously run on the machine where SAS itself is running.&amp;nbsp; That might machine most likely is not the machine where you are running the browser you are using to interact with SAS/Studio.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to run a command on another server you could try using the ssh command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if you are trying use X, SYSTEM or PIPE to run a command link:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;kill 1234&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then to run that command on a server named fred.mycompany.com you would instead run the command&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ssh fred.mycompany.com kill 1234&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 08 Apr 2022 04:10:24 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-04-08T04:10:24Z</dc:date>
    <item>
      <title>Run Shell script in specific server through sas studio</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Run-Shell-script-in-specific-server-through-sas-studio/m-p/806659#M458</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to run a shell script to kill a process in linux server, but when i run the process from SAS studio it is running the script in a different server, how to run that shell script in a server that i want to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please do the needful&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;kola625&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 21:07:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Run-Shell-script-in-specific-server-through-sas-studio/m-p/806659#M458</guid>
      <dc:creator>Loka625</dc:creator>
      <dc:date>2022-04-07T21:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Run Shell script in specific server through sas studio</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Run-Shell-script-in-specific-server-through-sas-studio/m-p/806691#M459</link>
      <description>&lt;P&gt;SAS/Studio itself cannot run any operating system commands.&amp;nbsp; It is the front end that you interact with to submit SAS code.&amp;nbsp; Now the SAS code you submit using SAS/Studio can run operating system commands (as long as that has not been prevented by the administrator).&amp;nbsp; Those command will obviously run on the machine where SAS itself is running.&amp;nbsp; That might machine most likely is not the machine where you are running the browser you are using to interact with SAS/Studio.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to run a command on another server you could try using the ssh command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if you are trying use X, SYSTEM or PIPE to run a command link:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;kill 1234&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then to run that command on a server named fred.mycompany.com you would instead run the command&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ssh fred.mycompany.com kill 1234&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Apr 2022 04:10:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Run-Shell-script-in-specific-server-through-sas-studio/m-p/806691#M459</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-04-08T04:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Run Shell script in specific server through sas studio</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Run-Shell-script-in-specific-server-through-sas-studio/m-p/806784#M460</link>
      <description>&lt;P&gt;Thank you Tom for the response,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the shell script to kill and start the server is working completely fine, I'm having issues with, when I'm trying to run the script from SAS Studio using Batch Job, it is running it on a different server, instead i want it to run on a server that i want to, is there any command that i can include in SAS batch job to host the program in a server that I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kola&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 14:27:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Run-Shell-script-in-specific-server-through-sas-studio/m-p/806784#M460</guid>
      <dc:creator>Loka625</dc:creator>
      <dc:date>2022-04-08T14:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Run Shell script in specific server through sas studio</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Run-Shell-script-in-specific-server-through-sas-studio/m-p/806910#M461</link>
      <description>&lt;P&gt;Please post your shell script code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;has already shown how to run a command on a different server via SSH. If you want to use your script on other servers, copy the script code there before using the SSH method.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Apr 2022 06:59:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Run-Shell-script-in-specific-server-through-sas-studio/m-p/806910#M461</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-04-09T06:59:08Z</dc:date>
    </item>
  </channel>
</rss>

