<?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: shell scripting for sftp command in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/shell-scripting-for-sftp-command/m-p/1273115#M150791</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to execute same command using your OS . &lt;/P&gt;&lt;P&gt;ksh + x ( is for debugging ) shell script and see where its failing .  I also did the same thing in last project  as i have written 5 different shell scripts , for backup , append file , sending file to FTP location and then create email ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this&amp;#146;ll help you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Mar 2006 19:46:19 GMT</pubDate>
    <dc:creator>former_member181966</dc:creator>
    <dc:date>2006-03-28T19:46:19Z</dc:date>
    <item>
      <title>shell scripting for sftp command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shell-scripting-for-sftp-command/m-p/1273114#M150790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guy's &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you may wondering how i can ask these question in this forum,actually it's related to abap,we have create&lt;/P&gt;&lt;P&gt;unix script that will upload file from remote sftp server&lt;/P&gt;&lt;P&gt;and put it  into AL11 transcation (take any location from &lt;/P&gt;&lt;P&gt;your point of view),but instead of using shell script&lt;/P&gt;&lt;P&gt;that is having ftp the want to go for sftp,for your undersatnding following thing's i am working with&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Tcode&amp;lt;/b&amp;gt;:sm69,sm49&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;function module&amp;lt;/b&amp;gt;:SXPG_COMMAND_EXECUTE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;script that need to have sftp instead of ftp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;Connecting to ftp server to get the file on the current server&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SOURCE_FILE_NAME=TSPAR_`date +%Y%m%d`.txt&lt;/P&gt;&lt;P&gt;TARGET_FILE_NAME=TSPAR_`date +%Y%m%d`.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cd /interf/torrance/TCW/FI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftp -nv &amp;lt;&amp;lt; EOF&lt;/P&gt;&lt;P&gt;open 10.252.8.73  &lt;/P&gt;&lt;P&gt;user sanju sanju&lt;/P&gt;&lt;P&gt;cd /home/sanju&lt;/P&gt;&lt;P&gt;get $SOURCE_FILE_NAME&lt;/P&gt;&lt;P&gt;EOF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cp SOURCE_FILE_NAME TARGET_FILE_NAME&lt;/P&gt;&lt;P&gt;rm SOURCE_FILE_NAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;note:&amp;lt;/b&amp;gt;above script is working ,but we want' sftp not ftp&lt;/P&gt;&lt;P&gt;don't try above script as such,because value's are&lt;/P&gt;&lt;P&gt;changed for sake of security&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 14:17:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shell-scripting-for-sftp-command/m-p/1273114#M150790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-28T14:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: shell scripting for sftp command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shell-scripting-for-sftp-command/m-p/1273115#M150791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to execute same command using your OS . &lt;/P&gt;&lt;P&gt;ksh + x ( is for debugging ) shell script and see where its failing .  I also did the same thing in last project  as i have written 5 different shell scripts , for backup , append file , sending file to FTP location and then create email ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this&amp;#146;ll help you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 19:46:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shell-scripting-for-sftp-command/m-p/1273115#M150791</guid>
      <dc:creator>former_member181966</dc:creator>
      <dc:date>2006-03-28T19:46:19Z</dc:date>
    </item>
  </channel>
</rss>

