Re: ftp task

From: Kevin Thomas (Kevin_at_FakeEmailAddresses.com)
Date: 08/24/04


Date: Tue, 24 Aug 2004 13:23:19 -0700

If you go to the command prompt and type:
"ftp -?"
you will see the definitions for the various parameters to FTP. For
example, the -s:filename, "specifies a text file containing FTP commands;
the commands will automatically run after FTP starts."

I don't really know why your script file wouldn't work if the same commands
contained within work fine when you execute them manually.

Kevin

"don" <don@discussions.microsoft.com> wrote in message
news:70D3B2BC-B5E0-4297-B401-4768CF8A29A8@microsoft.com...
> Kevin,
>
> I dont get it. i run the ftp from the command line and it works, when i
> put those same entries in the parameter file it fails. Is there some
> documentation that shows the parameter file make up, for example what does
> the -s mean. I set debugging on but to be honest the error codes that are
> returned are meaningless. (i.e. 'Step Error code: 80040496 Step Error Help
> File:sqldts80.hlp Step Error Help Context ID:4900). Thanks for your
> assistance..
>
> "Kevin Thomas" wrote:
>
>> Hi Don,
>>
>> Within the script file you'll need to issue the commands to navigate to
>> the
>> directory you want to be in. Of course, this assumes the host will allow
>> you to do this. In any case, it would look something like this:
>>
>> open genesis (genesis name is stored in the host file)
>> username
>> password
>> cd SomeFolderName
>> put c:\filetosend
>> close
>> quit
>>
>>
>> Remember, this is a script file so go ahead and add any commands to it
>> that
>> you would normally do by hand to accomplish the same task.
>>
>> Kevin
>>
>>
>> "don" <don@discussions.microsoft.com> wrote in message
>> news:03D479F8-2F01-47DB-9E59-76A9EAC6B9FD@microsoft.com...
>> > Kevin,
>> > I'm relatively new to sqlserver and dts. I noticed in the sample file
>> > there was no place to specify the directory the file was being xferred
>> > to.
>> > I'm trying to send a file on a regular scheduled basis using the
>> > following
>> > parameters:
>> > (1) remote site = genesis (or ip address xx.x.x.xx)
>> > (2) file = c:\filetosend
>> > (3) user name (to logon to remote site)
>> > (4) p/w (to sign on to remote site)
>> > I stored this info in a .txt file as you suggested and it looks like
>> > this
>> >
>> > open genesis (genesis name is stored in the host file)
>> > username
>> > password
>> > put c:\filetosend
>> > close
>> > quit
>> >
>> > (where do i put the directory name of where the file is going)
>> >
>> >
>> >
>> >
>> > "Kevin Thomas" wrote:
>> >
>> >> To send via ftp, use the "Execute Process Task"
>> >> In the "Win32 process" field, type "ftp"
>> >> In the "Parameters" field, type "-s MyFTPScript.txt"
>> >>
>> >> Where the file "MyFTPScript.txt" contains the commands you want to
>> >> issue
>> >> to
>> >> the ftp process. I might look something like:
>> >> open ftp.somesite.com
>> >> MyUserName
>> >> MyPassword
>> >> put TheFileIWantToTransfer.txt
>> >> close
>> >> quit
>> >>
>> >>
>> >> Enjoy,
>> >>
>> >> Kevin
>> >>
>> >> "dthaler@lccc.edu" <anonymous@discussions.microsoft.com> wrote in
>> >> message
>> >> news:ba1c01c48939$7f4b50c0$a401280a@phx.gbl...
>> >> > can i setup an ftp task to send data to an internet site?
>> >> > when i invoke the ftp task the only option for the 'to
>> >> > destination' is a directory?
>> >>
>> >>
>> >>
>>
>>
>>



Relevant Pages

  • Re: Mime type?
    ... options for not sending these commands. ... >>I was into the Fetch FTP web site and this is what I found - it looks ... >> My server does not recognize them. ...
    (microsoft.public.inetserver.iis)
  • Re: Missing bin directory
    ... and I'm wondering how I can get back some basic commands such as ... I have ftp access. ... or from another identical system. ... Let's take a look on my box what packages are in bin: ...
    (comp.os.linux.misc)
  • Re: Anyone know how to complete this script?
    ... Then you can set an envionmental variable such as "DAT" and call it in a script ... Then you can create a text file (FTP-CMD.TXT) of commands that can then be used by using FTP ...
    (microsoft.public.win2000.general)
  • Re: Missing bin directory
    ... I have ftp access. ... Is it possible recreate the bin directory without mkdir or a cd? ... the commands don't need to be in /bin in order to run - this is just ...
    (comp.os.linux.misc)
  • Re: Script that checks for existence of file on remote server.
    ... that the file was FTP'd over onto the REMOTE system, ... If you are administrator of both systems and can do remote shell ... commands, you can simply set up so that you can issue "rsh" commands. ... If you must use FTP to do this, you can always capture your FTP ...
    (comp.unix.aix)