<?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: Execute commands through a ftp session in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738634#M585451</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Hi I havent done this thro ftp and I think that it is not possible.&lt;BR /&gt;&lt;BR /&gt;You can do rsh and remsh instead. Go thro &lt;BR /&gt;man remsh and rsh.&lt;BR /&gt;&lt;BR /&gt;# rsh -n -l username hostname &lt;BR /&gt;tail file &amp;gt; filename&lt;BR /&gt;&lt;BR /&gt;# remsh hostname tail file &amp;gt; filename&lt;BR /&gt;&lt;BR /&gt;# remsh -n -l username hostname &lt;BR /&gt;tail file &amp;gt; filename&lt;BR /&gt;&lt;BR /&gt;Piyush&lt;BR /&gt;</description>
    <pubDate>Wed, 05 Jun 2002 19:19:34 GMT</pubDate>
    <dc:creator>PIYUSH D. PATEL</dc:creator>
    <dc:date>2002-06-05T19:19:34Z</dc:date>
    <item>
      <title>Execute commands through a ftp session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738633#M585450</link>
      <description>Hi Guys!&lt;BR /&gt;Is there anyway to run commands on remote server through a ftp session.&lt;BR /&gt;The commands that I wanto to run is tail and head redirectind the outputo to another file.&lt;BR /&gt;tail file &amp;gt; output_file&lt;BR /&gt;head file &amp;gt; output_file&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 05 Jun 2002 19:05:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738633#M585450</guid>
      <dc:creator>LucianoCarvalho</dc:creator>
      <dc:date>2002-06-05T19:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Execute commands through a ftp session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738634#M585451</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Hi I havent done this thro ftp and I think that it is not possible.&lt;BR /&gt;&lt;BR /&gt;You can do rsh and remsh instead. Go thro &lt;BR /&gt;man remsh and rsh.&lt;BR /&gt;&lt;BR /&gt;# rsh -n -l username hostname &lt;BR /&gt;tail file &amp;gt; filename&lt;BR /&gt;&lt;BR /&gt;# remsh hostname tail file &amp;gt; filename&lt;BR /&gt;&lt;BR /&gt;# remsh -n -l username hostname &lt;BR /&gt;tail file &amp;gt; filename&lt;BR /&gt;&lt;BR /&gt;Piyush&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Jun 2002 19:19:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738634#M585451</guid>
      <dc:creator>PIYUSH D. PATEL</dc:creator>
      <dc:date>2002-06-05T19:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Execute commands through a ftp session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738635#M585452</link>
      <description>Hi Luciana&lt;BR /&gt;&lt;BR /&gt;Not possible by ftp command I have a idea &lt;BR /&gt;&lt;BR /&gt;ftp &amp;gt; !command&lt;BR /&gt;&lt;BR /&gt;command can be &lt;BR /&gt;&lt;BR /&gt;remsh  server name   tail file &amp;gt; output_file &lt;BR /&gt;remsh  server name   head file &amp;gt; output_file &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Jun 2002 19:33:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738635#M585452</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-06-05T19:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Execute commands through a ftp session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738636#M585453</link>
      <description>Hi Luciano,&lt;BR /&gt;&lt;BR /&gt; No, this is not possible, and this is by design. It would be a severe security risk if ftp users could break out of the ftp shell remotely &amp;amp; execute commands on the remote system.&lt;BR /&gt;&lt;BR /&gt;What I would suggest to you is to use "!" to shell out to the local system &amp;amp; run a remsh command to do what you wish on the remote system. Then just exit afterwards &amp;amp; you're still in your ftp session. This way you're not compromising any security features &amp;amp; you're not terminating your ftp session.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Wed, 05 Jun 2002 20:13:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738636#M585453</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-06-05T20:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Execute commands through a ftp session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738637#M585454</link>
      <description>I'd suggest you "teleport" your files locally&lt;BR /&gt;and do whatever you wish, if the files are not to big.  Otherwise it its remsh,rcp, uucp, depending of the need</description>
      <pubDate>Wed, 05 Jun 2002 20:47:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738637#M585454</guid>
      <dc:creator>Fritz-Gerald: Zephir</dc:creator>
      <dc:date>2002-06-05T20:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Execute commands through a ftp session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738638#M585455</link>
      <description>Always depending of the control you have on both servers, you could define a user that,&lt;BR /&gt;when logged, would perform the tail/head operations and ftp the results back!&lt;BR /&gt;&lt;BR /&gt;So in the etc/passwd, instead of a shell path, it'd be the path to script doing the trick&lt;BR /&gt;&lt;BR /&gt;ftp.sh&lt;BR /&gt;tail file &amp;gt;output&lt;BR /&gt;head file &amp;gt;output&lt;BR /&gt;ftp -n -i &lt;FTP.CMD&gt;ftp.log&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;ftp.cmd would contain&lt;BR /&gt;ftp server user passwd&lt;BR /&gt;cd favorite_dir&lt;BR /&gt;put output there&lt;BR /&gt;bye&lt;/FTP.CMD&gt;</description>
      <pubDate>Wed, 05 Jun 2002 20:52:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738638#M585455</guid>
      <dc:creator>Fritz-Gerald: Zephir</dc:creator>
      <dc:date>2002-06-05T20:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Execute commands through a ftp session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738639#M585456</link>
      <description>If the SITE EXEC command is enabled, then yes a client can execute commands on the host. Most ftp daemons now have this off by default, I believe.&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Jun 2002 23:00:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738639#M585456</guid>
      <dc:creator>W. Michael King</dc:creator>
      <dc:date>2002-06-05T23:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Execute commands through a ftp session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738640#M585457</link>
      <description>Robert,&lt;BR /&gt;What is the sintax to run  a commando directing the outputo to another file?. I executed the command "SITE EXEC TAIL &amp;gt; OUTPUT_FILE", but it didnt work.&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Jun 2002 10:54:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738640#M585457</guid>
      <dc:creator>LucianoCarvalho</dc:creator>
      <dc:date>2002-06-06T10:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Execute commands through a ftp session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738641#M585458</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;On the remote server put a small script to check the existance of a file "go.flag" so that when this file exits it does the tail routines sending the output to a file and then remove the go.flag file and go back to looking for  "go.flag".&lt;BR /&gt;&lt;BR /&gt;From the local server ftp to remote, put go.flag (the remote script will now run) and then "get" the results of the tail file.&lt;BR /&gt;&lt;BR /&gt;Simple - no security holes opened.&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Thu, 06 Jun 2002 11:05:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738641#M585458</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-06-06T11:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Execute commands through a ftp session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738642#M585459</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;tail -n 200 filename  &amp;gt; outfile #&lt;BR /&gt;tail -n 200 filename  &amp;gt;&amp;gt; outfile # Append to file&lt;BR /&gt;&lt;BR /&gt;Will tail the last 200 lines abd redirect the output to outfile.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Thu, 06 Jun 2002 11:14:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738642#M585459</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-06-06T11:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Execute commands through a ftp session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738643#M585460</link>
      <description>Hi Guys,&lt;BR /&gt;&lt;BR /&gt;I found the solution I was lookin for.&lt;BR /&gt;The sintaxe to execute SITE EXEC command on ftp prompt is just "SITE EXEC &lt;COMMMAND&gt;".&lt;BR /&gt;The trick is that the command that has to be executed though ftp SITE EXEC command, must be in /etc/ftpd/ftp-exec directory.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot for your help.&lt;/COMMMAND&gt;</description>
      <pubDate>Thu, 06 Jun 2002 12:42:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738643#M585460</guid>
      <dc:creator>LucianoCarvalho</dc:creator>
      <dc:date>2002-06-06T12:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Execute commands through a ftp session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738644#M585461</link>
      <description>Luciano -&lt;BR /&gt;I know you have your solution but &lt;BR /&gt;here is another to consider -&lt;BR /&gt;&lt;BR /&gt;We perform a multitude of these -&lt;BR /&gt;&lt;BR /&gt;From ftp call an executable script.&lt;BR /&gt;&lt;BR /&gt;ftp xxxx&lt;BR /&gt;login_name&lt;BR /&gt;pass_word (or use a .netrc file)&lt;BR /&gt;EXEC /path_to_executable/executable_script&lt;BR /&gt;quit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Work for all executables we wish to start though site exec should work as well.&lt;BR /&gt;&lt;BR /&gt;dl &lt;BR /&gt;</description>
      <pubDate>Wed, 12 Jun 2002 18:58:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-commands-through-a-ftp-session/m-p/2738644#M585461</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2002-06-12T18:58:43Z</dc:date>
    </item>
  </channel>
</rss>

