<?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 script variable file list in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-variable-file-list/m-p/4843803#M771633</link>
    <description>Dear Rich,&lt;BR /&gt;Firstly you should use ftp with -i option, so it will not ask you to copy a file if you use mget, mput options which are described by Bill. If you want to use mput you may put the files to be transferred to a directory and use that directory in your script like mput $DIR/*.&lt;BR /&gt;Another option is to create ftp sctipt by another script and run this newly created script.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Erkan Durmus</description>
    <pubDate>Fri, 27 Oct 2000 05:51:45 GMT</pubDate>
    <dc:creator>Erkan Durmus</dc:creator>
    <dc:date>2000-10-27T05:51:45Z</dc:date>
    <item>
      <title>ftp script variable file list</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-variable-file-list/m-p/4843801#M771631</link>
      <description>How can I define a dynamic list of file to be ftp'd within a script?  I tried the following:&lt;BR /&gt;&lt;BR /&gt;FLIST=`ls 60*`&lt;BR /&gt;ftp &lt;SRVRNAME&gt; &amp;lt;&amp;lt;-@EOF&lt;BR /&gt;    prompt off&lt;BR /&gt;    mput $FLIST&lt;BR /&gt;    bye&lt;BR /&gt;  @EOF&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;  Rich&lt;/SRVRNAME&gt;</description>
      <pubDate>Thu, 26 Oct 2000 21:56:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-variable-file-list/m-p/4843801#M771631</guid>
      <dc:creator>Paul Gerke</dc:creator>
      <dc:date>2000-10-26T21:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: ftp script variable file list</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-variable-file-list/m-p/4843802#M771632</link>
      <description>Almost but not quite.  The ls * is a local Unix command.  Remember that ftp can go to any machine, mainframes to Macs to PCs to whatever and the remote machine won't understand Unix shelll scripting.&lt;BR /&gt;&lt;BR /&gt;However, mput does understand file name meta-characters (called globbing).  From the ftp man page:&lt;BR /&gt;&lt;BR /&gt;When file name globbing is enabled, ftp expands csh(1) metacharacters in file an&lt;BR /&gt;d directory names.  These characters are *, ?, [, ], ~, {, and }.  &lt;BR /&gt;&lt;BR /&gt;The server host expands remote file and directory names.  Globbing metacharacters are always expanded for the ls and dir commands.  If globbing is enabled, metacharacters are also expanded for the multiple-file commands mdelete, mdir, mget, mls, and mput.&lt;BR /&gt;&lt;BR /&gt;So just put mget * in your script.  Since the script will expand shell script masking characters, be sure to escape the * with a backslash.&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Oct 2000 02:29:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-variable-file-list/m-p/4843802#M771632</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2000-10-27T02:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: ftp script variable file list</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-variable-file-list/m-p/4843803#M771633</link>
      <description>Dear Rich,&lt;BR /&gt;Firstly you should use ftp with -i option, so it will not ask you to copy a file if you use mget, mput options which are described by Bill. If you want to use mput you may put the files to be transferred to a directory and use that directory in your script like mput $DIR/*.&lt;BR /&gt;Another option is to create ftp sctipt by another script and run this newly created script.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Erkan Durmus</description>
      <pubDate>Fri, 27 Oct 2000 05:51:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-variable-file-list/m-p/4843803#M771633</guid>
      <dc:creator>Erkan Durmus</dc:creator>
      <dc:date>2000-10-27T05:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: ftp script variable file list</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-variable-file-list/m-p/4843804#M771634</link>
      <description>Dear Rich,&lt;BR /&gt;Firstly you should use ftp with -i option, so it will not ask you to copy a file if you use mget, mput options which are described by Bill. If you want to use mput you may put the files to be transferred to a directory and use that directory in your script like mput $DIR/*.&lt;BR /&gt;Another option is to create ftp sctipt by another script and run this newly created script.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Erkan Durmus</description>
      <pubDate>Fri, 27 Oct 2000 05:53:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-variable-file-list/m-p/4843804#M771634</guid>
      <dc:creator>Erkan Durmus</dc:creator>
      <dc:date>2000-10-27T05:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: ftp script variable file list</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-variable-file-list/m-p/4843805#M771635</link>
      <description>Dear Rich,&lt;BR /&gt;Firstly you should use ftp with -i option, so it will not ask you to copy a file if you use mget, mput options which are described by Bill. If you want to use mput you may put the files to be transferred to a directory and use that directory in your script like mput $DIR/*.&lt;BR /&gt;Another option is to create ftp sctipt by another script and run this newly created script.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Erkan Durmus</description>
      <pubDate>Fri, 27 Oct 2000 10:07:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-variable-file-list/m-p/4843805#M771635</guid>
      <dc:creator>Erkan Durmus</dc:creator>
      <dc:date>2000-10-27T10:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: ftp script variable file list</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-variable-file-list/m-p/4843806#M771636</link>
      <description>Sorry I took so long to get back to this.  The help from both of you was much appreciated.</description>
      <pubDate>Thu, 09 Nov 2006 23:52:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-variable-file-list/m-p/4843806#M771636</guid>
      <dc:creator>Paul Gerke</dc:creator>
      <dc:date>2006-11-09T23:52:49Z</dc:date>
    </item>
  </channel>
</rss>

