<?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 Using FTP from a detached process. in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103592#M25577</link>
    <description>Hi Guys,&lt;BR /&gt;       I know that one of you is going to jump on this and make me feel even dumber than normal, however, here goes.&lt;BR /&gt;&lt;BR /&gt;I have short FTP script which is fairly self explanatory, i.e.&lt;BR /&gt;&lt;BR /&gt;$ ftp ftp.&lt;REMOTE_HOST&gt;.com &lt;USRNAME&gt; &lt;PASSWORD&gt;&lt;BR /&gt;cd out&lt;BR /&gt;dir&lt;BR /&gt;mget *.*&lt;BR /&gt;dir&lt;BR /&gt;bye&lt;BR /&gt;$!&lt;BR /&gt;$ Exit&lt;BR /&gt;&lt;BR /&gt;This script runs fine interactively, and it runs fine in Batch, however when I try to run it from a detached process I get, &lt;BR /&gt;&lt;BR /&gt;$       @FTP_Script&lt;BR /&gt;$ ftp ftp.rrd.com &lt;USERNAME&gt; &lt;PASSWORD&gt;&lt;BR /&gt;%DCL-W-NUMBER, invalid numeric value - supply an integer&lt;BR /&gt; \&lt;USERNAME&gt;\&lt;BR /&gt;cd out&lt;BR /&gt;%DCL-W-IVVERB, unrecognized command verb - check validity and spelling&lt;BR /&gt; \CD\&lt;BR /&gt;&lt;BR /&gt;(obviously I am providing the correct Username and Password above.)&lt;BR /&gt;&lt;BR /&gt;Can anyone through any light on this (without humiliating me too much)&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;Dave.&lt;/USERNAME&gt;&lt;/PASSWORD&gt;&lt;/USERNAME&gt;&lt;/PASSWORD&gt;&lt;/USRNAME&gt;&lt;/REMOTE_HOST&gt;</description>
    <pubDate>Tue, 15 Apr 2008 13:57:52 GMT</pubDate>
    <dc:creator>The Brit</dc:creator>
    <dc:date>2008-04-15T13:57:52Z</dc:date>
    <item>
      <title>Using FTP from a detached process.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103592#M25577</link>
      <description>Hi Guys,&lt;BR /&gt;       I know that one of you is going to jump on this and make me feel even dumber than normal, however, here goes.&lt;BR /&gt;&lt;BR /&gt;I have short FTP script which is fairly self explanatory, i.e.&lt;BR /&gt;&lt;BR /&gt;$ ftp ftp.&lt;REMOTE_HOST&gt;.com &lt;USRNAME&gt; &lt;PASSWORD&gt;&lt;BR /&gt;cd out&lt;BR /&gt;dir&lt;BR /&gt;mget *.*&lt;BR /&gt;dir&lt;BR /&gt;bye&lt;BR /&gt;$!&lt;BR /&gt;$ Exit&lt;BR /&gt;&lt;BR /&gt;This script runs fine interactively, and it runs fine in Batch, however when I try to run it from a detached process I get, &lt;BR /&gt;&lt;BR /&gt;$       @FTP_Script&lt;BR /&gt;$ ftp ftp.rrd.com &lt;USERNAME&gt; &lt;PASSWORD&gt;&lt;BR /&gt;%DCL-W-NUMBER, invalid numeric value - supply an integer&lt;BR /&gt; \&lt;USERNAME&gt;\&lt;BR /&gt;cd out&lt;BR /&gt;%DCL-W-IVVERB, unrecognized command verb - check validity and spelling&lt;BR /&gt; \CD\&lt;BR /&gt;&lt;BR /&gt;(obviously I am providing the correct Username and Password above.)&lt;BR /&gt;&lt;BR /&gt;Can anyone through any light on this (without humiliating me too much)&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;Dave.&lt;/USERNAME&gt;&lt;/PASSWORD&gt;&lt;/USERNAME&gt;&lt;/PASSWORD&gt;&lt;/USRNAME&gt;&lt;/REMOTE_HOST&gt;</description>
      <pubDate>Tue, 15 Apr 2008 13:57:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103592#M25577</guid>
      <dc:creator>The Brit</dc:creator>
      <dc:date>2008-04-15T13:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using FTP from a detached process.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103593#M25578</link>
      <description>As it runs fine in batch, what is the plus of running as a detached process ?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Apr 2008 14:27:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103593#M25578</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2008-04-15T14:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using FTP from a detached process.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103594#M25579</link>
      <description>How are you creating this detached process? Unless you execute LOGINOUT you won't have the DCL CLI, PPFs, etc... so you won't have the FTP verb. You need to execute some variation of the following (add additional command qualifiers as desired/needed).&lt;BR /&gt;&lt;BR /&gt;$ RUN/DETACH/INPUT=FTP_SCRIPT.COM SY$SYSTEM:LOGINOUT</description>
      <pubDate>Tue, 15 Apr 2008 15:25:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103594#M25579</guid>
      <dc:creator>Jim_McKinney</dc:creator>
      <dc:date>2008-04-15T15:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using FTP from a detached process.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103595#M25580</link>
      <description>The creation command is&lt;BR /&gt;&lt;BR /&gt;$ run sys$system:loginout.exe &lt;BR /&gt;    /input=parent.com/out=parent.log&lt;BR /&gt;&lt;BR /&gt;The ftp_script runs from within "parent.com"&lt;BR /&gt;&lt;BR /&gt;All DCL commands upto the FTP script execution work correctly, and after the script fails, the remaining DCL commands work correctly.&lt;BR /&gt;&lt;BR /&gt;the problem just seems to be that the detached process will not let me specify the username and password on the command line.  &lt;BR /&gt;&lt;BR /&gt;by the by, I am running this on an ES45, OVMS 7.3-2, TcpWare 5.7.   (Although I got the same error on a node running TCPIP Services V5.4).&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Tue, 15 Apr 2008 16:05:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103595#M25580</guid>
      <dc:creator>The Brit</dc:creator>
      <dc:date>2008-04-15T16:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using FTP from a detached process.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103596#M25581</link>
      <description>Guess that I should have realized that the CLI was mapped - you did show the DCL error message in the initial post...&lt;BR /&gt;&lt;BR /&gt;Is FTP invoked using a verb from the command tables or as a foreign command? Is there a logical name defined for the FTP image or a symbol for the verb that is present during batch or interactive use but not defined for detached jobs (either by SYS$SYLOGIN or the LGICMD)?</description>
      <pubDate>Tue, 15 Apr 2008 16:11:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103596#M25581</guid>
      <dc:creator>Jim_McKinney</dc:creator>
      <dc:date>2008-04-15T16:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using FTP from a detached process.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103597#M25582</link>
      <description>No symbols, No Logicals, Not Foreign!&lt;BR /&gt;&lt;BR /&gt;D</description>
      <pubDate>Tue, 15 Apr 2008 16:24:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103597#M25582</guid>
      <dc:creator>The Brit</dc:creator>
      <dc:date>2008-04-15T16:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using FTP from a detached process.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103598#M25583</link>
      <description>Maybe try the DCL style of /USERNAME=username /PASSWORD=password in your command prodecure.</description>
      <pubDate>Tue, 15 Apr 2008 18:27:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103598#M25583</guid>
      <dc:creator>Walter Miller_1</dc:creator>
      <dc:date>2008-04-15T18:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using FTP from a detached process.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103599#M25584</link>
      <description>&lt;!--!*#--&gt;&amp;gt; Can anyone through any light on this&lt;BR /&gt;&amp;gt; (without humiliating me too much)&lt;BR /&gt;&lt;BR /&gt;Could be hard, one way or the other.&lt;BR /&gt;&lt;BR /&gt;Around here, with that syntax, I _always_ get&lt;BR /&gt;an error:&lt;BR /&gt;&lt;BR /&gt;alp $ tcpip show version&lt;BR /&gt;&lt;BR /&gt;  HP TCP/IP Services for OpenVMS Alpha Version V5.4 - ECO 6&lt;BR /&gt;  on a COMPAQ Professional Workstation XP1000 running OpenVMS V7.3-2&lt;BR /&gt;&lt;BR /&gt;alp $ ftp alp sms not_my_password&lt;BR /&gt;%DCL-W-NUMBER, invalid numeric value - supply an integer&lt;BR /&gt; \SMS\&lt;BR /&gt;&lt;BR /&gt;Most likely because, as the HELP says:&lt;BR /&gt;&lt;BR /&gt;     UNIX Format&lt;BR /&gt;&lt;BR /&gt;       ftp  [ host [ port ] ]&lt;BR /&gt;&lt;BR /&gt;and most user names don't qualify as valid&lt;BR /&gt;port numbers.&lt;BR /&gt;&lt;BR /&gt;Personally, if I wished to do a quick&lt;BR /&gt;wildcard FTP fetch, I'd probably use wget:&lt;BR /&gt;&lt;BR /&gt;    wget "ftp://user:pass@host/path/*.*"&lt;BR /&gt;&lt;BR /&gt;although if you need ASCII mode, it could get&lt;BR /&gt;messy.</description>
      <pubDate>Tue, 15 Apr 2008 19:55:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103599#M25584</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-04-15T19:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using FTP from a detached process.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103600#M25585</link>
      <description>Dave,&lt;BR /&gt;  For the VMS style FTP command use qualifiers /USERNAME=username /PASSWORD=password&lt;BR /&gt;&lt;BR /&gt;The FTP command is trying to interpret your username parameter as a port number (see HELP FTP)&lt;BR /&gt;&lt;BR /&gt;I'd also strongly recommend you delimit your commands with $DECK and $EOD&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ ftp ftp.&lt;REMOTE_HOST&gt;.com /USERNAME=&lt;USRNAME&gt; /PASSWORD=&lt;PASSWORD&gt;&lt;BR /&gt;$ DECK&lt;BR /&gt;cd out&lt;BR /&gt;dir&lt;BR /&gt;mget *.*&lt;BR /&gt;dir&lt;BR /&gt;bye&lt;BR /&gt;$ EOD&lt;BR /&gt;$!&lt;BR /&gt;$ EXIT&lt;BR /&gt;&lt;BR /&gt;$DECK protects you from nasty side effects if your command doesn't consume all the input (as in your case - imagine if your first FTP command had been DELETE rather than CD!)&lt;BR /&gt;&lt;BR /&gt;Also check out COPY/FTP. It would look something like:&lt;BR /&gt;&lt;BR /&gt;$ COPY/FTP ftp.&lt;REMOTE_HOST&gt;.com"username password"::"/out/*.*" []&lt;BR /&gt;&lt;BR /&gt;&lt;/REMOTE_HOST&gt;&lt;/PASSWORD&gt;&lt;/USRNAME&gt;&lt;/REMOTE_HOST&gt;</description>
      <pubDate>Tue, 15 Apr 2008 22:27:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103600#M25585</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2008-04-15T22:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using FTP from a detached process.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103601#M25586</link>
      <description>To Walter,&lt;BR /&gt;     TCPWARE doesn't recognise the "/username=... /password=..." syntax.&lt;BR /&gt;&lt;BR /&gt;To Steven,&lt;BR /&gt;    As a reminder, I am running TCPWARE 5.7, not TCPIP Services (sad to say!).   &lt;BR /&gt;&lt;BR /&gt;I think a point is being missed here, and that is that the FTP syntax I am using works fine either INTERACTIVELY or in BATCH, it only fails (and gives the above error) when it is running from a detached process.     &lt;BR /&gt;&lt;BR /&gt;This is what has me tearing my hair out. (and at my age there aint much left to begin with).&lt;BR /&gt;&lt;BR /&gt;To John,&lt;BR /&gt;       Thanks for the reminder about the Deck command, I will incorporate it, (really don't use it as much as I probably should).&lt;BR /&gt;&lt;BR /&gt;Dave.</description>
      <pubDate>Wed, 16 Apr 2008 14:03:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103601#M25586</guid>
      <dc:creator>The Brit</dc:creator>
      <dc:date>2008-04-16T14:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using FTP from a detached process.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103602#M25587</link>
      <description>&amp;gt; As a reminder, I am running TCPWARE 5.7,&lt;BR /&gt;&amp;gt; not TCPIP Services (sad to say!).&lt;BR /&gt;&lt;BR /&gt;As a reminder, someone said:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; (Although I got the same error on a node&lt;BR /&gt;&amp;gt; running TCPIP Services V5.4).&lt;BR /&gt;&lt;BR /&gt;As a TCPIP user, it's hard to imagine why&lt;BR /&gt;you'd be sad to say that you're not using it.&lt;BR /&gt;&lt;BR /&gt;It sure does sound as if there's some&lt;BR /&gt;difference in the symbols or command tables&lt;BR /&gt;in the different environments.  Perhaps you&lt;BR /&gt;could throw in a VERB command as well as a&lt;BR /&gt;SHOW SYMBOL F*.  It sure looks as if you're&lt;BR /&gt;getting the TCPIP syntax checking instead of&lt;BR /&gt;whetever TCPware does.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I think a point is being missed here, [...]&lt;BR /&gt;&lt;BR /&gt;No, I think that I got that point.&lt;BR /&gt;&lt;BR /&gt;Is there some TCPware-specific magic in a&lt;BR /&gt;[SY]LOGIN.COM which gets used in one case but&lt;BR /&gt;not the other?</description>
      <pubDate>Wed, 16 Apr 2008 14:20:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103602#M25587</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-04-16T14:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using FTP from a detached process.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103603#M25588</link>
      <description>The following works in TCPware V5.3-2 running as a detached process.&lt;BR /&gt;&lt;BR /&gt;$ ftp &lt;BR /&gt;open &lt;REMOTE_HOST&gt; &lt;USRNAME&gt; &lt;PASSWORD&gt;&lt;BR /&gt;cd out&lt;BR /&gt;dir&lt;BR /&gt;mget *.*&lt;BR /&gt;dir&lt;BR /&gt;bye&lt;BR /&gt;$ exit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Walter&lt;/PASSWORD&gt;&lt;/USRNAME&gt;&lt;/REMOTE_HOST&gt;</description>
      <pubDate>Wed, 16 Apr 2008 15:25:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103603#M25588</guid>
      <dc:creator>Walter Miller_1</dc:creator>
      <dc:date>2008-04-16T15:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using FTP from a detached process.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103604#M25589</link>
      <description>I also forgot to mention that the TCPIP Services node give the error message under ALL modes, INTERACTIVE, BATCH, or DETACHed.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; As a TCPIP user, it's hard to imagine why&lt;BR /&gt;&amp;gt;you'd be sad to say that you're not using &amp;gt;it.&lt;BR /&gt;&lt;BR /&gt;I'm not sure what you mean by this.   I personally mean that I would rather use TCPIP Services.   TCPWare "HELP" leaves something to be desired.&lt;BR /&gt;&lt;BR /&gt;As for the possible differences between TCPWare and other stacks, it runs a completely different FTP image than TCPIP Services.&lt;BR /&gt;&lt;BR /&gt;Dave.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Apr 2008 15:45:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103604#M25589</guid>
      <dc:creator>The Brit</dc:creator>
      <dc:date>2008-04-16T15:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using FTP from a detached process.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103605#M25590</link>
      <description>Dave&lt;BR /&gt;Are you check to run detached process using /AUTHORIZE qualifier. By default run command use /NOAUTHORIZE and detached process runs under the control of command interpreter.&lt;BR /&gt;With /AUTHO and LOGINOUT.EXE searches the UAF to validate the process.&lt;BR /&gt;&lt;BR /&gt;Saludos.&lt;BR /&gt;Daniel.</description>
      <pubDate>Thu, 17 Apr 2008 07:40:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103605#M25590</guid>
      <dc:creator>Daniel Fernandez Illan</dc:creator>
      <dc:date>2008-04-17T07:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using FTP from a detached process.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103606#M25591</link>
      <description>Dave,&lt;BR /&gt;&lt;BR /&gt;in TCPware, the FTP client always is called by a symbol:&lt;BR /&gt;&lt;BR /&gt;$ sho symbol ftp&lt;BR /&gt;  FTP == "$TCPWARE:FTP"&lt;BR /&gt;$ netcu show version&lt;BR /&gt;TCPware(R) V5.6-2 Copyright (c) 2002 Process Software&lt;BR /&gt;&lt;BR /&gt;OpenVMS version V7.3-2   booted on  4-APR-2008 10:47:18.00,&lt;BR /&gt;        running on a AlphaServer 4000 5/300 2MB.&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;usually defined by calling TCPWARE:TCPWARE_COMMANDS.COM from (SY)LOGIN.COM.&lt;BR /&gt;&lt;BR /&gt;This definition is missing, of course, when running detached. Then the TCP/IP Services verb FTP from DCLtables is used, giving the "%DCL-W-NUMBER" error because of different syntax.&lt;BR /&gt;&lt;BR /&gt;That'd be my explanation.&lt;BR /&gt;&lt;BR /&gt;cu,&lt;BR /&gt;  Martin</description>
      <pubDate>Thu, 17 Apr 2008 08:07:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103606#M25591</guid>
      <dc:creator>Martin Vorlaender</dc:creator>
      <dc:date>2008-04-17T08:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using FTP from a detached process.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103607#M25592</link>
      <description>As predicted, the solution is too embarassing to discus in detail, and the solution was included in Jim McKinney's first response.&lt;BR /&gt;&lt;BR /&gt;    I leave it to anyone interest to determine the solution (by comparing Jim's post, and my response -  The answer is right there)&lt;BR /&gt;&lt;BR /&gt;     Having said that, thank you all for the discussion, always a learning experience no matter what.&lt;BR /&gt;&lt;BR /&gt;Dave.&lt;BR /&gt;&lt;BR /&gt;(Hint:   "/detach")</description>
      <pubDate>Thu, 17 Apr 2008 12:40:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-ftp-from-a-detached-process/m-p/5103607#M25592</guid>
      <dc:creator>The Brit</dc:creator>
      <dc:date>2008-04-17T12:40:10Z</dc:date>
    </item>
  </channel>
</rss>

