<?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: script with FTP in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-with-ftp/m-p/2477134#M776345</link>
    <description>Hi Michel,&lt;BR /&gt;&lt;BR /&gt;Your example (same .profile for rlogin and telnet) is impossible.&lt;BR /&gt;The reason is: &lt;BR /&gt;rlogin starts a shell while ftp doesn't.&lt;BR /&gt;As .profile is a shell executable, it cannot be used with non shell programs.&lt;BR /&gt;&lt;BR /&gt;If you want to execute remote commands on a system, you could use 'remsh' to run any script or program, providing you're allowed to, and 'rcp' to copy files back and forth.&lt;BR /&gt;&lt;BR /&gt;What do you want to do on the remote system?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;</description>
    <pubDate>Thu, 28 Dec 2000 15:51:44 GMT</pubDate>
    <dc:creator>Dan Hetzel</dc:creator>
    <dc:date>2000-12-28T15:51:44Z</dc:date>
    <item>
      <title>script with FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-with-ftp/m-p/2477129#M776340</link>
      <description>how can execute a script with a connection ftp on the server HP ?&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Thu, 28 Dec 2000 14:06:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-with-ftp/m-p/2477129#M776340</guid>
      <dc:creator>FOREST Michel</dc:creator>
      <dc:date>2000-12-28T14:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: script with FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-with-ftp/m-p/2477130#M776341</link>
      <description>Hi Michel,&lt;BR /&gt;&lt;BR /&gt;You may use what's called a 'here document' like this:&lt;BR /&gt;ftp &amp;lt;&amp;lt; EOF&lt;BR /&gt;open HOSTNAME&lt;BR /&gt;LOGIN_NAME&lt;BR /&gt;PASSWORD&lt;BR /&gt;binary&lt;BR /&gt;cd /tmp&lt;BR /&gt;put FILE&lt;BR /&gt;bye&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;Replace HOSTNAME, LOGIN_NAME, PASSWORD and FILE with appropriate data.&lt;BR /&gt;&lt;BR /&gt;A 'here document' is a way to simulate the keyboard entry with text data located between matching labels (EOF in the example above)&lt;BR /&gt;&lt;BR /&gt;man sh-posix will explain this (do a search for &amp;lt;&amp;lt;)&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Dec 2000 14:20:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-with-ftp/m-p/2477130#M776341</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2000-12-28T14:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: script with FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-with-ftp/m-p/2477131#M776342</link>
      <description>It is also worth noting that you can use variables in the above solution.  (ie $DESTINATION, $USERNAME, etc...)&lt;BR /&gt;&lt;BR /&gt;It makes this much more flexible when inserting into a script.&lt;BR /&gt;&lt;BR /&gt;Best of luck.&lt;BR /&gt;&lt;BR /&gt;-tjh</description>
      <pubDate>Thu, 28 Dec 2000 14:38:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-with-ftp/m-p/2477131#M776342</guid>
      <dc:creator>Thomas J. Harrold</dc:creator>
      <dc:date>2000-12-28T14:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: script with FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-with-ftp/m-p/2477132#M776343</link>
      <description>Michel,&lt;BR /&gt;&lt;BR /&gt;FTP is not really secure by this way,&lt;BR /&gt;have a look on this: see attached file&lt;BR /&gt;&lt;BR /&gt;Happy new year&lt;BR /&gt;&lt;BR /&gt;Pierre</description>
      <pubDate>Thu, 28 Dec 2000 14:43:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-with-ftp/m-p/2477132#M776343</guid>
      <dc:creator>Roulet</dc:creator>
      <dc:date>2000-12-28T14:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: script with FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-with-ftp/m-p/2477133#M776344</link>
      <description>thanks Dan, tjh, Pierre, for answers.&lt;BR /&gt;But i don't want use FTP in a script, I want execute a script on a connection FTP (ex: idem .profile for rlogin or telnet)&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;MF</description>
      <pubDate>Thu, 28 Dec 2000 15:32:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-with-ftp/m-p/2477133#M776344</guid>
      <dc:creator>FOREST Michel</dc:creator>
      <dc:date>2000-12-28T15:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: script with FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-with-ftp/m-p/2477134#M776345</link>
      <description>Hi Michel,&lt;BR /&gt;&lt;BR /&gt;Your example (same .profile for rlogin and telnet) is impossible.&lt;BR /&gt;The reason is: &lt;BR /&gt;rlogin starts a shell while ftp doesn't.&lt;BR /&gt;As .profile is a shell executable, it cannot be used with non shell programs.&lt;BR /&gt;&lt;BR /&gt;If you want to execute remote commands on a system, you could use 'remsh' to run any script or program, providing you're allowed to, and 'rcp' to copy files back and forth.&lt;BR /&gt;&lt;BR /&gt;What do you want to do on the remote system?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Dec 2000 15:51:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-with-ftp/m-p/2477134#M776345</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2000-12-28T15:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: script with FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-with-ftp/m-p/2477135#M776346</link>
      <description>Hi Dan,&lt;BR /&gt;ok with you. in fact, I want execute a process on server HP when a user 'toto' this connect in ftp&lt;BR /&gt;&lt;BR /&gt;thanks Dan.&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Dec 2000 16:03:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-with-ftp/m-p/2477135#M776346</guid>
      <dc:creator>FOREST Michel</dc:creator>
      <dc:date>2000-12-28T16:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: script with FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-with-ftp/m-p/2477136#M776347</link>
      <description>Hi Michel&lt;BR /&gt;&lt;BR /&gt;run ftpd -l this -l option should log to syslog the ftp connection and username.&lt;BR /&gt;&lt;BR /&gt;Then have cron setup to grep for the said user/ftp in syslog and run the required script.&lt;BR /&gt;&lt;BR /&gt;Hope it's of some help&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 28 Dec 2000 17:42:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-with-ftp/m-p/2477136#M776347</guid>
      <dc:creator>Steve Massey_1</dc:creator>
      <dc:date>2000-12-28T17:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: script with FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-with-ftp/m-p/2477137#M776348</link>
      <description>Hi Michel,&lt;BR /&gt;&lt;BR /&gt;Andreas Voss gave an example to redirect the logs to a different file. This would prevent syslog.log from becoming too large.&lt;BR /&gt;&lt;BR /&gt;---QUOTE Andreas&lt;BR /&gt;this is not a single switch of ftpd messages but a solution that redirects ANY daemon facility (including ftpd) to a different file: &lt;BR /&gt;Change /etc/syslog.conf FROM: &lt;BR /&gt;mail.debug /var/adm/syslog/mail.log &lt;BR /&gt;*.info;mail.none /var/adm/syslog/syslog.log &lt;BR /&gt;*.alert /dev/console &lt;BR /&gt;*.alert root &lt;BR /&gt;*.emerg * &lt;BR /&gt;TO: &lt;BR /&gt;mail.debug /var/adm/syslog/mail.log &lt;BR /&gt;daemon.info;mail.none /var/adm/syslog/daemon.log &lt;BR /&gt;*.info;mail.none,daemon.none /var/adm/syslog/syslog.log &lt;BR /&gt;*.alert /dev/console &lt;BR /&gt;*.alert root &lt;BR /&gt;*.emerg * &lt;BR /&gt;&lt;BR /&gt;(Note: delimiter MUST BE [TAB]) &lt;BR /&gt;This will write daemon facilities into /var/adm/syslog/daemon.log. &lt;BR /&gt;After changes to /etc/syslog.conf reinitialize syslogd: &lt;BR /&gt;/sbin/init.d/syslogd stop &lt;BR /&gt;/sbin/init.d/syslogd start &lt;BR /&gt;&lt;BR /&gt;---\QUOTE&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Dec 2000 08:31:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-with-ftp/m-p/2477137#M776348</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2000-12-29T08:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: script with FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-with-ftp/m-p/2477138#M776349</link>
      <description>thanks all and Happy New Year !!!&lt;BR /&gt;&lt;BR /&gt;MF.</description>
      <pubDate>Fri, 29 Dec 2000 13:51:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-with-ftp/m-p/2477138#M776349</guid>
      <dc:creator>FOREST Michel</dc:creator>
      <dc:date>2000-12-29T13:51:49Z</dc:date>
    </item>
  </channel>
</rss>

