<?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: FTP remote exec. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-remote-exec/m-p/2545832#M866497</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;There is no possibility to run via ftp a script on the ftp server. See man page on ftpd to check all implemented ftp commands.&lt;BR /&gt;When during ftp session you use !command, this command is run locally on the ftp client.&lt;BR /&gt;If you ftp to the localhost, the same machine is the ftp client and the ftp server, and this explains your observation relating to the running script when being ftped to the localhost.&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
    <pubDate>Wed, 27 Jun 2001 21:24:57 GMT</pubDate>
    <dc:creator>Wieslaw Krajewski</dc:creator>
    <dc:date>2001-06-27T21:24:57Z</dc:date>
    <item>
      <title>FTP remote exec.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-remote-exec/m-p/2545828#M866493</link>
      <description>Is there any way to ftp to a UNIX box and kick-off a script via that ftp session?&lt;BR /&gt;&lt;BR /&gt;Thanks again in advance,&lt;BR /&gt;Greg</description>
      <pubDate>Wed, 27 Jun 2001 15:56:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-remote-exec/m-p/2545828#M866493</guid>
      <dc:creator>Greg Stark_1</dc:creator>
      <dc:date>2001-06-27T15:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: FTP remote exec.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-remote-exec/m-p/2545829#M866494</link>
      <description>Hi,&lt;BR /&gt;As the meaning of ftp is.., what have you in mind?&lt;BR /&gt;if you were looking for a script to put/get etc.. the answer is you can write a script that uses .netrc to bypass ftp asking you your name  and passwd, and - or in a script you can write: (example of logged seesion with get...)&lt;BR /&gt;# ftp_fda : test new ftp...&lt;BR /&gt;rm ftp.log&lt;BR /&gt;ftp -n &amp;gt; ftp.log &amp;lt;&amp;lt; end&lt;BR /&gt;open hostsname&lt;BR /&gt;user  scsf "passwd"&lt;BR /&gt;get scsf/fda/fda /export/f/fda&lt;BR /&gt;quit&lt;BR /&gt;end&lt;BR /&gt;if [ `wc -l ftp.log|cut -c 1`  -gt 0 ]&lt;BR /&gt;then&lt;BR /&gt;    # Output transfer error&lt;BR /&gt;    echo " Transfer ERROR : FDA"&lt;BR /&gt;    sleep 5&lt;BR /&gt;else&lt;BR /&gt;    echo " FTP Transfer OK for FDA"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Victor</description>
      <pubDate>Wed, 27 Jun 2001 17:02:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-remote-exec/m-p/2545829#M866494</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2001-06-27T17:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: FTP remote exec.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-remote-exec/m-p/2545830#M866495</link>
      <description>This can be done, but it is a security risk.&lt;BR /&gt;&lt;BR /&gt;The to do it is with the ! in ftp.  The ! (exclmation point, bang) lets you execute a shell command.&lt;BR /&gt;&lt;BR /&gt;# ftp localhost&lt;BR /&gt;Connected to localhost.&lt;BR /&gt;220 cruella FTP server (Version 1.7.212.4 Tue Sep 12 04:33:08 GMT 2000) ready.&lt;BR /&gt;Name (localhost:z93573): &lt;BR /&gt;331 Password required for z93573.&lt;BR /&gt;Password:&lt;BR /&gt;230 User z93573 logged in.&lt;BR /&gt;Remote system type is UNIX.&lt;BR /&gt;Using binary mode to transfer files.&lt;BR /&gt;ftp&amp;gt; !/tmp/pww/test2&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Jun 2001 17:05:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-remote-exec/m-p/2545830#M866495</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-06-27T17:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: FTP remote exec.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-remote-exec/m-p/2545831#M866496</link>
      <description>Patrick, your response seems to work great, but only if I ftp to the "localhost".  My intension would be to start an ftp session from on nt server to the unix server and then run a script on the unix server.&lt;BR /&gt;&lt;BR /&gt;For example, this would be ran from the nt server:&lt;BR /&gt;&lt;BR /&gt;C:\&amp;gt;ftp unixbox&lt;BR /&gt;Connected to unixbox.com.&lt;BR /&gt;220 unixbox FTP server (Version 4.1 Sun Nov 19 22:15:05 CST 2000) ready.&lt;BR /&gt;User (unxibox.com:(none)): gstark&lt;BR /&gt;331 Password required for gstark.&lt;BR /&gt;Password:&lt;BR /&gt;230 User gstark logged in.&lt;BR /&gt;ftp&amp;gt; !/tmp/test.sh&lt;BR /&gt;The system cannot find the path specified.&lt;BR /&gt;ftp&amp;gt; done&lt;BR /&gt;?Invalid command&lt;BR /&gt;ftp&amp;gt; bye&lt;BR /&gt;221 Goodbye.&lt;BR /&gt;&lt;BR /&gt;As you can see, it cannont find/execute the file remotely.  &lt;BR /&gt;Thanks &lt;BR /&gt;Greg</description>
      <pubDate>Wed, 27 Jun 2001 17:30:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-remote-exec/m-p/2545831#M866496</guid>
      <dc:creator>Greg Stark_1</dc:creator>
      <dc:date>2001-06-27T17:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: FTP remote exec.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-remote-exec/m-p/2545832#M866497</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;There is no possibility to run via ftp a script on the ftp server. See man page on ftpd to check all implemented ftp commands.&lt;BR /&gt;When during ftp session you use !command, this command is run locally on the ftp client.&lt;BR /&gt;If you ftp to the localhost, the same machine is the ftp client and the ftp server, and this explains your observation relating to the running script when being ftped to the localhost.&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Wed, 27 Jun 2001 21:24:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-remote-exec/m-p/2545832#M866497</guid>
      <dc:creator>Wieslaw Krajewski</dc:creator>
      <dc:date>2001-06-27T21:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: FTP remote exec.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-remote-exec/m-p/2545833#M866498</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;In the standard it's file transfet only so you&lt;BR /&gt;can't. But a command can be accepted : &lt;BR /&gt;SITE. So you connect with your ftp client and &lt;BR /&gt;you can use SITE EXEC prg. It's seems to work&lt;BR /&gt;with HPUX11 box, but it's HPUX or non standard &lt;BR /&gt;commands !!!&lt;BR /&gt;&lt;BR /&gt;For more information see man page of ftpd (it's&lt;BR /&gt;depend of your ftp server only).&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Herv?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Jun 2001 07:50:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-remote-exec/m-p/2545833#M866498</guid>
      <dc:creator>Herve BRANGIER</dc:creator>
      <dc:date>2001-06-28T07:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: FTP remote exec.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-remote-exec/m-p/2545834#M866499</link>
      <description>Hello,&lt;BR /&gt;this depends on the deamon in charge.&lt;BR /&gt;&lt;BR /&gt;ftp&amp;gt; remote help&lt;BR /&gt;&lt;BR /&gt;should give you a list, which commands the remote site accepts. Some provide EXEC just for compatibility reasons, but when you execute it like Herv? pointed out, it says "not implemented". So it depends on the server. Since this is a big security risk, some daemons require special config to activate this feature.&lt;BR /&gt;&lt;BR /&gt;Volker</description>
      <pubDate>Thu, 28 Jun 2001 09:22:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-remote-exec/m-p/2545834#M866499</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2001-06-28T09:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: FTP remote exec.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-remote-exec/m-p/2545835#M866500</link>
      <description>Just found something else:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xa2b3d06ed8c8d4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xa2b3d06ed8c8d4118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Be carefull, the directories should not be writable by anyone, because then sombody might upload something not so good for you !&lt;BR /&gt;&lt;BR /&gt;This will do it&lt;BR /&gt;Volker</description>
      <pubDate>Thu, 28 Jun 2001 11:00:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-remote-exec/m-p/2545835#M866500</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2001-06-28T11:00:44Z</dc:date>
    </item>
  </channel>
</rss>

