Client_host ftp

gretings gurus
i'll try to explain my problem.
SITUATION 1: send a local file to server
'CMD /C START ftp -v -n -s:"c:\temp\in_out_ftp.txt" '
in_out_ftp.txt:
open sv_ip
user user1 pass1
ASCII
lcd c:\temp
cd server dir
put file
bye
now this works fine.
SITUATION 2: get a local file from server
'CMD /C START ftp -v -n -s:"c:\temp\in_out_ftp.txt" '
in_out_ftp.txt:
open sv_ip
user user1 pass1
ASCII
lcd c:\temp
cd server dir
get file
bye
this leaves open the FTP window. without doing the tranfer.
SITUATION 3: get a local file from server without the start command
'CMD /C ftp -v -n -s:"c:\temp\in_out_ftp.txt" '
in_out_ftp.txt:
open sv_ip
user user1 pass1
ASCII
lcd c:\temp
cd server dir
get file
bye
this leaves open the CMD window. without doing the tranfer.
i need to know if this is possible so i dont waste more time.
forms 9i db 9i
webutil correctly installed.
many thanks in advance.

from start->run : cmd /c START "receiving" ftp -v -n -s:"c:\temp\in_out_ftp.txt"
works flawlessly.
the ftp server it is not the aplication sv.
app is running in 1 ip and the ftp is in another. in fact the ftp server ip is variable. we call it a backend server.
i'll try the batch file approach...

Similar Messages

  • Problem using CLIENT_HOST to FTP files from forms 10g

    Hi,
    I'm trying to use forms 10g ODS & webutil on NT to allow a user to select a file on their machine or the network and transfer the file to a DB server. I want to transfer the file to the file system on the server NOT to a BLOB column on a table. I've used webutil (client_get_file_name) to display the dialog box and allow the user to select a file. This works fine. However, when I try to use CLIENT_HOST to FTP the selected
    to the remote server it fails. I'm issuing the following
    command from within forms:
    CLIENT_HOST('CMD /C ftp -n -s:C:\test_ftp.txt');
    Something tries to kick off and a grey area the size of a dos window flashes on to the screen for a couple of seconds but the FTP does not happen. The test_ftp.txt script is a simple ftp script that transfers one file and I know it works as I can run it successfully from DOS or NT command prompt.
    Questions:
    (1) Does anyone know how to pause the DOS window so you
    can see what is actually happening ?
    (2) Has anyone implemented FTP functionality
    successfully using CLIENT_HOST in the same way that's
    I'm trying ?
    Any help would be appreciated.
    Declan.

    Okay...
    Try this. For testing put your command in a .bat-file. In this .bat-file spool the output to a text-file. I'm not sure about the spooling syntax under Windows, check the Windows documentation for that. Like:
    ftp.bat
    start spooling to ftp.out
    cmd /c .... (your ftp commando line)
    stop spooling
    Perhaps the problem is that it doesn't find the ftp commando? Try hardcode the path like c:\windows\ftp ... etc!

  • Urgent!FTP command oracle 10g

    The msdos command (FTP) in oracle 10g don´t work.
    v_ficbat := client_text_io.fopen(v_tmpdir || '\' || 'execftp.bat', 'W');
              client_text_io.put_line(v_ficbat, v_tmpdir);
    client_text_io.put_line(v_ficbat, 'ftp -n -i -s:' || v_tmpdir || '\execftp.scr <ip ftp>');
              client_text_io.fclose(v_ficbat);
         -- execftp.scr
         v_ficscr := client_text_io.fopen(v_tmpdir || '\' || 'execftp.scr', 'W');
    client_text_io.put_line(v_ficscr, 'user');
    client_text_io.put_line(v_ficscr, '<user>');
    client_text_io.put_line(v_ficscr, '<passaword>');
    client_text_io.put_line(v_ficscr, 'cd directory1');
    client_text_io.put_line(v_ficscr, 'cd directory2');
              client_text_io.put_line(v_ficscr, 'get file.txt');
    client_text_io.put_line(v_ficscr, 'quit');
              client_text_io.fclose(v_ficscr);
              client_host(v_tmpdir || '\' || 'execftp.bat');
    What is the problem?
    thanks!!!

    try this.
    file_handle := CLIENT_TEXT_IO.FOPEN(lv_FtpScript_Path, 'W');
         CLIENT_TEXT_IO.PUT_LINE(file_handle, 'OPEN'||' '||lv_hostname|| ' '||ln_port);
         CLIENT_TEXT_IO.PUT_LINE(file_handle, 'USER'||' '||lv_user|| ' '||lv_pwd);
         CLIENT_TEXT_IO.PUT_LINE(file_handle, 'LCD' ||' '||lv_File_Dir);
         CLIENT_TEXT_IO.PUT_LINE(file_handle, 'GET '||' '||target_file||' '||source_file);
         CLIENT_TEXT_IO.PUT_LINE(file_handle, 'CLOSE');
         CLIENT_TEXT_IO.PUT_LINE(file_handle, 'BYE');
         CLIENT_TEXT_IO.FCLOSE(file_handle);
         WEBUTIL_HOST.HOST('FTP -d -n -s:'||lv_FtpScript_Path);
    replace the variables with your actual values. this works fine.
    good luck.

  • How to ftp images from one source to another source in forms

    Hi all,
    In my fmb i have one image item in this user can upload the image to the database.
    now while uploading the image in to the database we want to ftp the image to the client system.
    can one help me how to do this
    thanks,
    Kumar.

    Hi,
    Forms version?
    Client OS?
    Forms Server OS?
    Look up HOST/ CLIENT_HOST (web forms) in Form Builder Help.
    Running FTP server on every client machine does not appear to be a good idea to me. Try to accomplish by copying or downloading to client.
    Cheers,
    Edited by: Prabodh on Sep 13, 2012 2:11 PM

  • Delete file from an FTP folder

    Hi expert,
    I wanna know if it's possible delete with abap command a file from a FTP folder.
    I mean, there is a ftp folder periodically filled with excel files. An ABAP program read this folder and the files content must be moved in a SAP Table. Aftre this, I must delete excel files with an abap command write in the same abap program.
    Thanks a lot
    Michele Garofalo

    1) read directory with fm EPS_GET_DIRECTORY_LISTING
    2) process table dir_list
    and 3) finally delete files with
    abap command:  DELETE DATASET dsn.
    hope that helps
    Andreas

  • Delete file from FTP server

    Hi All, 
    I have a requirement where I need to delete a file from the FTP server. How do I do that?
    Thanks in Advance.
    Regards
    Jaspreet

    Hi,
    refer this link,
    [ABAP solution to implement FTP transactions |http://wiki.sdn.sap.com/wiki/display/Snippets/ABAPsolutiontoimplementFTP+transactions]
    Regards,
    Vijay

  • How to ASR 9k auto backup to external FTP server

    How to take auto  running configuration backup when use commit command in asr9k  .Our asr9k sofware Version 4.0.1[Default] .I usse the commands
    ftp client password encrypted 050D121F345F4B1B4
    ftp client username cisco
    ftp client source-interface GigabitEthernet0/0/0/14
    ftp client anonymous-password cisco
    (Password information changed)
    configuration commit auto-save filename ftp://10.10.10.3/ASR9K/asr_conf
    But auto backup not happening .following errror showing after every COMMIT command.
    ( Error:Couldn't save file /ftp://10.10.10.3/ASR9k/asr_conf.
    Error:'CfgMgr' detected the 'warning' condition 'Operation is temporarily suspended.' )
    Manually I able to take Running-configuration backup through ftp int same lacation (
    ftp://10.10.10.3/ASR9K/asr_conf ) .But automatically not happening .Please help .

    I have not personally seen this issue before but you may find verifying your config helpful.
    SUMMARY STEPS
    1. configure
    2. show running-config
    3. describe hostname hostname
    4. end
    5. show sysdb trace verification shared-plane | include path
    6. show sysdb trace verification location node-id
    7. show cfgmgr trace  
    8. show configuration history commit
    9. show configuration commit changes {last | since | commit-id}
    10. show config failed startup
    11. cfs check --> Verifies the Configuration File System (CFS)
    However I did notice the following:
    Error:Couldn't save file /ftp://10.10.10.3/ASR9k/asr_conf.  Notice the preceeding '/'?
    Thanks

  • How can i do scheduled automatic backups to an ftp server in ios xr?

    Hello guys! As the title says im looking forward to automatically back up my running config on a cisco CRS-1 to an FTP server. I was only able to find this config example:
    Configuration commit auto-save filename ftp://A.B.C.D/myconfig.txt
    This allows me to save my config to an ftp server everytime i use commit on the device. Now i want to know if there's a way to automatically save my configs everyday at 00:00  and also include the date and time in the name of the file so i don't overwrite the existing files in the ftp server.
    I dont want to use any tool i just wanna know if what im asking is possible via CLI commands. I would greatly appreciate your help with this subject.
    Regards,
    David

    Not sure if this script will work on a CRS, but try this:
    archive
    log config
    logging enable
    hidekeys
    path tftp:///$h-
    write-memory
    time-period 10080
    Explaination: 
    There are two ways to save your config to your remote station:
    1.  When someone saves the config; and
    2.  At an alloted time period, expressed in 10080 (weekly for me). 

  • Error when scheduling WEBI report to FTP server

    Hi
    We are getting error "destination directory error. CrystalEnterprise.Ftp: 550 Requested action not taken" while scheduling WEBI report to FTP server.
    Any help would be appreciated
    Regards,
    Anisa

    Hi All,
    I want a run my report once by scheduling, so i provide a time interval for scheduling a report
    start date/ time : 11:38:AM 10/30/2011
    end date/time : 11:43:AM 10/30/2011
    after completion of end time....report is failed and fetching an error
    Error : Object could not be scheduled within the specified time Interval
    Any solution for resolving this error

  • Error while FTP ing BI Publisher Report

    The following Error is occured while FTPing a BI publisher report. The scheduling was running fine for the lase 1 year .But this error is occuring in production schedule of the ftp for the last 2 days.When I do the FTP by 'Run Immediately' manually it works fine.
    oracle.apps.xdo.servlet.scheduler.ProcessingException: [ID:4621] Document file to deliver not found : /u01b/obiee/OracleBI/oc4j_bi/j2ee/home/applications/xmlpserver/xmlpserver/xdo/cache/xmlp7057786.tmp
         at oracle.apps.xdo.servlet.scheduler.XDOJob.deliver(XDOJob.java:1131)
         at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:478)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

    Duplicate post.
    Error is occured while FTPing a BI publisher report
    Error is occured while FTPing a BI publisher report
    "BI Publisher" is the appropriate forum for such questions.
    Thanks,
    Hussein

  • Error while delivering a report using FTP

    Hi,
    I am facing an error when i am trying to schedule a BIP Report to a FTP location on a FTP Server.
    The error i am getting is shown below :
    java.io.IOException: STOR semd data failed.
    at oracle.apps.xdo.delivery.ftp.FTPMainConnection.closeDataConnection(Unknown Source)
    at oracle.apps.xdo.delivery.ftp.FTPClient.closeDataConnection(Unknown Source)
    at oracle.apps.xdo.delivery.ftp.FTPDeliveryRequestHandler.submitRequest(Unknown Source)
    at oracle.apps.xdo.delivery.AbstractDeliveryRequest.submit(Unknown Source)
    at oracle.apps.xdo.service.delivery.impl.DeliveryServiceImpl.deliverToFTP(DeliveryServiceImpl.java:527)
    at oracle.apps.xdo.servlet.scheduler.XDOJob.deliver(XDOJob.java:1481)
    at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:496)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    I am able to ping the FTP host ip and access the FTP. In the BIP Admin--> Delivery ---> FTP
    I have given my FTP Server name , HOST , and the Port
    Can anybody help me in solving this error? Its a high priority requirement from the Client side.

    Can you manually, as in command line, connect to the ftp site? Is it ftp or sftp? Single or double authentication?

  • Error while delibvering a report using FTP

    Hi
    I am trying to publish my report on a shared folder by using FTP server delivery. When the schedule gets run I can see following error displayed in the Publisher:
    java.io.IOException: Invalid status of current connection: 0
         at oracle.apps.xdo.delivery.ftp.FTPMainConnection.checkUTF8Support(Unknown Source)
         at oracle.apps.xdo.delivery.ftp.FTPClient.connect(Unknown Source)
         at oracle.apps.xdo.delivery.ftp.FTPDeliveryRequestHandler.submitRequest(Unknown Source)
         at oracle.apps.xdo.delivery.AbstractDeliveryRequest.submit(Unknown Source)
         at oracle.apps.xdo.service.delivery.impl.DeliveryServiceImpl.deliverToFTP(DeliveryServiceImpl.java:519)
         at oracle.apps.xdo.servlet.scheduler.XDOJob.deliver(XDOJob.java:1417)
         at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:478)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    Status of teh job is comung as Failed - IO error.

    Can you manually, as in command line, connect to the ftp site? Is it ftp or sftp? Single or double authentication?

  • Error while deploying a process with FTP Adapter

    Hi All,
    I am using JDev 10.1.3.3 and SOA 10.1.3.3
    I am using FTP Adapter to get a file from a remote location in a empty Process.
    I have checked delete files option and using logical directory.
    While deploying i am getting the below error.
    A problem occured while connecting to server "XXXX" using port "XXXX": bpel_APACSHPREQ940PassThroughBPELOB_1.0.jar failed to deploy. Exception message is:  ORABPEL-09903
    Could not initialize activation agent.
    An error occured while initializing an activation agent for process "APACSHPREQ940PassThroughBPELOB", revision "1.0".
    Please ensure that the activation agents are configured correctly in the bpel deployment descriptor (bpel.xml).
    oracle.tip.adapter.fw.agent.jca.JCAActivationAgent: java.lang.reflect.InvocationTargetException
    Please help me out....
    Regards
    PavanKumar

    Hi Krishna,
    Not Working
    <definitions
    name="GetPSOJapanPassThroughFile"
    targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/ftp/GetPSOJapanPassThroughFile/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/ftp/GetPSOJapanPassThroughFile/"
    xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
    xmlns:opaque="http://xmlns.oracle.com/pcbpel/adapter/opaque/"
    xmlns:pc="http://xmlns.oracle.com/pcbpel/"
    xmlns:hdr="http://xmlns.oracle.com/pcbpel/adapter/ftp/"
    >
    <import namespace="http://xmlns.oracle.com/pcbpel/adapter/ftp/" location="ftpAdapterInboundHeader.wsdl"/>
    <types>
    <schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/opaque/"
    xmlns="http://www.w3.org/2001/XMLSchema" >
    <element name="opaqueElement" type="base64Binary" />
    </schema>
    </types>
    <message name="Get_msg">
    <part name="opaque" element="opaque:opaqueElement"/>
    </message>
    <portType name="Get_ptt">
    <operation name="Get">
    <input message="tns:Get_msg"/>
    </operation>
    </portType>
    <binding name="Get_binding" type="tns:Get_ptt">
    <pc:inbound_binding />
    <operation name="Get">
    <jca:operation
    FileType="ascii"
    LogicalDirectory="GETPSOPTFILE"
    ActivationSpec="oracle.tip.adapter.ftp.inbound.FTPActivationSpec"
    DeleteFile="true"
    IncludeFiles="PSO.*\.dat"
    PollingFrequency="6"
    MinimumAge="0"
    OpaqueSchema="true" >
    </jca:operation>
    <input>
    <jca:header message="hdr:InboundHeader_msg" part="inboundHeader"/>
    </input>
    </operation>
    </binding>
    <service name="GetPSOJapanPassThroughFile">
    <port name="Get_pt" binding="tns:Get_binding">
    <jca:address location="eis/Ftp/APACFtp" UIincludeWildcard="PSO*.dat" />
    </port>
    </service>
    <plt:partnerLinkType name="Get_plt" >
    <plt:role name="Get_role" >
    <plt:portType name="tns:Get_ptt" />
    </plt:role>
    </plt:partnerLinkType>
    </definitions>
    Working
    <definitions
    name="GetPSOPassthroughFile"
    targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/ftp/GetPSOPassthroughFile/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/ftp/GetPSOPassthroughFile/"
    xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
    xmlns:opaque="http://xmlns.oracle.com/pcbpel/adapter/opaque/"
    xmlns:pc="http://xmlns.oracle.com/pcbpel/"
    xmlns:hdr="http://xmlns.oracle.com/pcbpel/adapter/ftp/"
    >
    <import namespace="http://xmlns.oracle.com/pcbpel/adapter/ftp/" location="ftpAdapterInboundHeader.wsdl"/>
    <types>
    <schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/opaque/"
    xmlns="http://www.w3.org/2001/XMLSchema" >
    <element name="opaqueElement" type="base64Binary" />
    </schema>
    </types>
    <message name="Get_msg">
    <part name="opaque" element="opaque:opaqueElement"/>
    </message>
    <portType name="Get_ptt">
    <operation name="Get">
    <input message="tns:Get_msg"/>
    </operation>
    </portType>
    <binding name="Get_binding" type="tns:Get_ptt">
    <pc:inbound_binding />
    <operation name="Get">
    <jca:operation
    FileType="ascii"
    LogicalDirectory="GetPSOFile"
    ActivationSpec="oracle.tip.adapter.ftp.inbound.FTPActivationSpec"
    DeleteFile="false"
    IncludeFiles="PSO.*\.dat"
    PollingFrequency="6"
    MinimumAge="0"
    FileModificationTime="FileSystem"
    ModificationTimeFormat="4,18,yyyyMMddHHmmSS"
    OpaqueSchema="true" >
    </jca:operation>
    <input>
    <jca:header message="hdr:InboundHeader_msg" part="inboundHeader"/>
    </input>
    </operation>
    </binding>
    <service name="GetPSOPassthroughFile">
    <port name="Get_pt" binding="tns:Get_binding">
    <jca:address location="eis/Ftp/APACFtp" UIincludeWildcard="PSO*.dat" />
    </port>
    </service>
    <plt:partnerLinkType name="Get_plt" >
    <plt:role name="Get_role" >
    <plt:portType name="tns:Get_ptt" />
    </plt:role>
    </plt:partnerLinkType>
    </definitions>

  • Ftp prioritised over http etc

    We are a small office network of 3 macs. We are having problems lately - when we try and ftp we are unable to use email or the internet at all. The ftp seems to hog the entire bandwidth. We have found that switching from transmit to cyberduck has been a temporarily solution as it allows us to choke the upload bandwidth to 200 Kbps and we can get internet etc. This has not, however, been an issue in the past - we have been able to use transmit & email, web etc simultaneously. I have checked on the router preference pages and there is nothing that says a certain protocol is given priority. We recently had someone attach a Netgear 10/100/1000 m switch to our router (Netgear DGN 2000) so are wondering whether this has anything to do with anything. Macs plugged directly into the DGN 2000 however also have this issue. If anyone can offer advice that would be really helpful! Would this be a router, ftp software or OS issue?
    Thanks very much!

    Try connecting through a regular FTP client and see
    if that works. If not, it is most likely your network
    settings. Are you connecting to the correct
    portnumber? Are you blocked by a firewall by any
    chance?Thanks for the reply !
    I'am able to connect to the FTP Server using CuteFTP, which enables us to select Proxy Type, to be either HTTP Proxy or FTP Proxy.
    When i select HTTP Proxy in CuteFTP it seems to work fine, but when i select FTP Proxy ,i get the same Connection timeout exception, which is what i get when using (Jakarta FTPCommons ) FTP Client, which is inturn uses Socket to open a connection.
    I'am unable to know what difference dose Proxy type has when a Connection is made ?
    Regards
    jagz.

  • Can we do a Secure FTP for an XML file from ABAP when firewall is enabled?

    Hi all,
    I have a requirement to send an XML file to an External FTP Server which is out of our corporate network and our firewall is enabled.
    I have to send an XML file with Purchase Order details. I completed that with the help of this blog https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2657. [original link is broken] [original link is broken] [original link is broken]
    Now I need to FTP the XML file that is generated. How should I be doing this? Can some of help me with this?
    I need to do a Secure FTP to the external non SAP server which is out of our corporate network and our firewall is enabled. Can some one tell me if SFTP is possible in ABAP.
    This is not a web service. I am working on dropping an XML file in an external FTP serveru2026 I have searched the forums but still in a confusion if weather Secure FTP is possible in ABAP  or not when our company firewall is enabledu2026
    If some one encountered this situation earlier please help,,,..any help will be highly appreciated.
    Regards,
    Jessica Sam

    Thanks a lot for your valuable suggestions Richu2026
    I agree with you Rich that web services would be a better option. But I need to send this file to an external third party and they dont have web services.
    They are telling us that either we can send them an XML file or a CSV file in the format that they want. We decided to go with XML file format.
    I am done with formatting the Purchase Order details in the format that they want. Now the challenge is that I need to send this FTP file to them and it should be a Secure FTP when our fire wall is enabled,
    When you say
    1) Run an ABAP program to generate the XML file and put it on the local PC
    2) Log into the FTP site via some FTP client, could simply be windows as well.
    3) Manually cut/paste the file from the PC to the FTP site.
    For Step 1 running ABAP Program can I schedule a batch job?
    For Step 2 and Step 3 can I automate it in any other way..if not in ABAP?
    Can I advice my company to follow any alternate method in which they can automate this step 2 and step 3u2026if not in ABAP can it be possible in any other way as the third party does not have web services I now have no other alternative.
    Please Helpu2026
    Regards,
    Jessica Sam

Maybe you are looking for

  • How to call a report in forms?

    Hello I want to call a report in forms, but it always failures and I couldn't find any whitepapers or anything else on OTN. I'm using reports & forms 10g release 2 and a standalone forms & reports service (release2). I've created a simple report and

  • Need word processing/office software for my 2001 PowerBook G4 Titanium

    I am going to do some fundraising letters/brochures/invitations, etc. for a local non-profit group and would like something besides textedit. I want to be able to use pictures, interesting text and prepare it properly for the printer. I have added pl

  • Uploading from File Server

    hi,     i have a BDC program to be done however the file is in File server so wht shud i do inorder to access the file the file server for example the path is given : 127.1.1.10\SharedFolder\20070704.txt and i have authorization set on it and i have

  • What is Business Object!?

    Hi everybody, I'm newby in all of this, i mean SAP, i do some things in PI, but now i need to work with Business Objects, and i really don't have idea. I was looking for information about it but i didn't find something that explain what is business o

  • Supported rcpthosts with JavaMail

    Hello How can I found out which rcpthosts does JavaMail support? I cannot send emails to yahoo thru JavaMail as I normally send them to other domains, but is this because yahoo is not supported by the JavaMail api, or is it because I need to write sp