How to get a file with CFFTP

I am trying to grab a file and move it to the coldfusion server using <CFFTP> The server in which I am trying to grab the file is a sftp server. I am running coldfusion 8. When I run my code, I dont get an error, I just get a blank white screen, yet the file has not been moved. I will post my code below, does anyone know what I am doing wrong?
<!--- Open conncetion with remote sftpserver --->
        <cftry>
            <cfftp action="open"
                connection="ftpServer"
                server="server.com"
                username = "username"
                password = "password"
                fingerprint = "11:11:B5:F2:11:AF:C2:E2:31:11:D3:B4:11:83:11:11"
                timeout="20"
                port="22"
                secure = "yes" />
            <cfcatch>
                <cfset throwFileTransferFailed("Could not open connection. Message: " & cfcatch.Message & ". Detail: " & cfcatch.Detail)>
            </cfcatch>
        </cftry>
<!--- get the file --->
        <cftry>     
               <cfftp
                action="getFile"
                connection="ftpServer"
                server="server.com"
                username="username"
                password="password"
                remotefile="TEST_20100816.csv"
                localfile="C:\WENS_DEV\pdf\"
                failIfExists="no">
            <cfcatch>
                <cfset throwFileTransferFailed("Could not open connection. Message: " & cfcatch.Message & ". Detail: " & cfcatch.Detail)>
            </cfcatch>
        </cftry>

how do I tellif the CF service has sufficient rights?
Now my code looks like this and I am still getting an error. I cant figure it out.
            <cfftp action="open"
                connection="ftpServer"
                server="server.com"
                username = "username"
                password = "password"
                fingerprint = "11:11:11:11:11:11:11:11:11"
                timeout="30"
                port="22"
                secure = "yes" />
               <cfftp
                action="getFile"
                connection="ftpServer"
                remotefile="TEST_20100816.csv"
                localfile="C:\WENS_DEV\pdf\TEST_20100816.csv"
                failIfExists="no">

Similar Messages

  • How to get "ShareWithMe" files with "check out" status?

    Hello All,
    I was working on try to get "ShareWithMe" documents via SharePoint 2103 Query APIS with CSOM and REST service.
    Practically it works good using the "SharedWithUsersOWSUSER"
    manage property from this way: 
    https://domain-my.sharepoint.com/_api/search/query?querytext='*'&querytemplate='SharedWithUsersOWSUser:"someone"
    But, this search query is not working for files that has been set up to "check out",  I
    mean this scenary :
    e.g
    I upload a new file to my documents. 
                    Check out the file.
                    Share this file with someone.  
    I could verify that  "SharedWithUsersOWSUser" property has a empty value  for check out files that has been shared with someone, and this it will be the reason for what the query displayed above is not working in this case. 
    an extra test that I did it was : change the file shared from "check out" to "check in" and then the query it worked as expected.  
    Is there some way to get also these files(with "check out" status) ? I can see that it works very well on OneDrive for business - "ShareWithMe" page, I mean all files that it were shared with the current user are listed there, without to
    take into account if these files it were set up to check out or not. Please, some suggestion ?

    When the file is checked out and metadata is changed while it is checked out the search crawler will not pick up the change until it is checked in. When you make changes to a file while it is checked out they are considered temporary changes until they
    are checked in.
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • [CS3][JS] How to get the file type of current document

    Hi,
    How to get the file type of current opening document (e.g., tif, jpeg, png) using JavaScript with Photoshop CS3.
    I am using file object the open the files one by one in the folder (the files sometimes don't have the extensions).
    If the current document is in tiff format then I need to convert to 8-bit, if its an Jpg image then needs to ignore the file.
    Regards,
    Karthik

    Do you really need to know the file type? What about just checking the bit depth?
    var doc = activeDocument;
    if (doc.bitsPerChannel != BitsPerChannelType.EIGHT) {//Not 8 bit
    doc.bitsPerChannel = BitsPerChannelType.EIGHT;
    //do your save etc
    }else{
        //Ignore

  • How to get PDF file that has been transformed into docx into my filing system so I can work on it???

    How can I get the PDF file that was transformed into a docx file into my filing system to be able to work on it and translate it as the customer requested?

    THanks for your reply.
    Well what happens is I bought the program. It gives you a button to click,
    you log in and then a box opens up asking you to select the file, I go into
    my filing system (in Windows explorer) select the file, and the program
    converts it into docx, my choice.  I can read it there and when I try to
    copy and paste it into my file where the PDF version is saved, it behaves
    like an "image", and I can't save it.... or it saves likes something you
    save on the internet, so you have to go into internet every time you want
    to see it.    I have also pressed any amount of buttons to see if it will
    give me the option to save it any other way, and have found nothing.  What
    I would need is a file in docx.format that I can edit.  People send me
    things in PDF and sometimes I can just copy it off the PDF file and save it
    in WOrd, then I can translate it for them. But sometimes the PDF file
    doesnt allow me to copy the text.  If it is in image form, I cannot work on
    it.  It means printing it, so I can copy type it into Word... and for that
    I certainly wouldnt need to buy a program.  Its just double the work and
    ends up that the job takes twice as long.!
    Sorry  if I am a bit dumb with informatics.  But I simply could not find
    any way whatever to  copy the PDF file that was transformed into Word, in a
    format that would enable me to edit it.
    Kindest regards,
    Margery
    2013/12/2 Test Screen Name <[email protected]>
        Re: How to get PDF file that has been transformed into docx into my
    filing system so I can work on it???
    created by Test Screen Name<http://forums.adobe.com/people/TestScreenName>in *Adobe
    ExportPDF* - View the full discussion<http://forums.adobe.com/message/5890871#5890871

  • How to get the itunes with those 3 colored buttons on top left corner ????ner ???

    Please help [humble request] ----
    I have 3 problems can u please help me out --
    1) How to get the itunes with the 3 colored buttons (i'm new to apple ,just 8 days so i dont know much stuff) on top left corner ,i've downloaded thrice from apple's site directly i everytime got the same sort of itunes with 'File' ,'Edit' ,'View' ,'Controls' ,'Store' ,'Adanced' ,'Help' on the top ,and also whenever i open the itunes store (in this itunes) only the app store opens ,now music albums ,movies ,tv shows nothing !!
    2) I dont know how to import video files from the computer to itunes
    3)i bought an app [fifa 11] ,n downloaded another 1 [contract killer] {ive deleted them and downloaded them thrice ,and they dont sync to my itouch it shows error (0xE800004C)
    Please please please help me im getting worried and frustrated
    please help me out with this

    but illaass
    i asked 2 of my frnds both of them have windows n not mac ,both of them are sayin dat they have the coloured buttons one , and i asked them dat how to access the itunes music store they said that when they kliked d itunes store option in the left side a screen appears where 6 -7 categories are there which are music store ,app store ,podcasts ,movies ,tv shows etc . bt when i open it it only shows d app store ,and on the bar only 4 options are ther the home icon , app store , podcasts and itunes u ,and when i klik movies ,tv shows on the left side ,there is an option "browse for movies in the itunes store" i klik it and only the app store opens and nothing else .
    and thanks now i know how to import videos
    and sigma 1337 ,
    ive downloaded the apps 4 -5 times now , still d same error mssg it comes like dis :-
    " Some of the apps in your iTunes library were not installed on the ipod "Shomik's ipod" because one or more errors occurred "
    please help me  im gettin frustrated

  • HT4910 Problem, I reseted my iPhone 4S and now I don't know how to get back files.

    Problem, I reseted my iPhone 4S and now I don't know how to get back files. I bought WhatsApp and some other games with money. Can I get them back? I have iCloud account.

    Not sure what it is you are asking, but you can redownload apps from the purchased section of the app store.

  • How to get Media File in Context

    Hello Everyone,
    I have an application on which i need to store and manage millions of media content (can be audio/visual). As i cannot maintain that much content in the WebContext, so i put the content on the different server.
    Now the problem is when someone need to play the media content than that content need to be with in the WebContext other wise the Media Player does not get the URL/Content.
    Now As i have put the data on different server, how i get the files in the Cureent Applications web context????
    I am out of ideas at the moment. Please suggest something. I am using Struts1.3,JSP,JSTL for the presentation layer and Hibernate for the DB Layer.

    You just need a servlet to access the place where the media content is, and stream it back to the client.
    http://balusc.blogspot.com/2009/02/fileservlet-supporting-resume-and.html has an example (and links) for a File/Image servlet that does something similar.
    You may need to adapt it if you are streaming stuff, but it the theory remains the same.
    cheers,
    evnafets

  • How should i share file with other devices such as nokia,blackberry and etc using bluetooth

    I want to share  files between other deivce such as nokia but couldnt, could u help me tell how can i share files with other devices???

    @AKRBTN: Thanks for the reply and info.
    That is a solution, but it really isn't viable.
    It is sad that apple refuses to support this.
    A simple example: Sitting somewhere with no signal and you want to share a file (photo) with your colleague or friend, who happens to be right next to you.
    Or even if there is signal and you don't want to be paying fees or data charges.
    Or you may be in a rehearsal studio and need to share that very important file and have no time to go outside and get signal and try to send the file, which then everyone else has to go outside and catch the signal and pay fees.
    Anyway, I see that this is a dead end with apple, so I guess I will be back to carrying 2 phones around again.
    Peace,
    SB

  • How to get command history with timestamp ?

    how to get command history with timestamp ?

    If you are using bash:
    HISTTIMEFORMAT If this variable is set and not null, its value is used as a format string for strftime(3) to print the time stamp associated with each history entry displayed by the history builtin. If this variable is set, time stamps are written to the history file so they may be preserved across shell sessions.
    [SunOS 5.10/bash] [email protected]:/etc/ftpd
    # HISTTIMEFORMAT="%h/%m - %H:%M:%S ";export HISTTIMEFORMAT;history
        1  Aug/08 - 19:07:52 chmod a+rwx /root
        2  Aug/08 - 19:07:52 ll /
        3  Aug/08 - 19:07:52 tail -f /root/mylog.log
        4  Aug/08 - 19:07:52 vi /usr/dt/bin/Xsession
        5  Aug/08 - 19:07:52 cat /root/mylog.log
        6  Aug/08 - 19:07:52 ls /export/home/p661210/.dt
        7  Aug/08 - 19:07:52 ls -la  /export/home/p661210/.dt
        8  Aug/08 - 19:07:52 cat  /export/home/p661210/.dt/errorlog
        9  Aug/08 - 19:07:52 vi /usr/dt/config/C/sys.dtwmrc
       10  Aug/08 - 19:07:52 ls
       11  Aug/08 - 19:07:52 cat Xresources.jds
       12  Aug/08 - 19:07:52 vi /usr/dt
    [SunOS 5.10/bash] [email protected]:/etc/ftpd
    [SunOS 5.8/bash] root@wgls03:/root
    # HISTTIMEFORMAT="%h/%m - %H:%M:%S ";export HISTTIMEFORMAT;history
        1  Jul/07 - 09:02:21 vi /etc/vfstab
        2  Jul/07 - 09:02:21 mount /store
        3  Jul/07 - 09:02:21 cd /store/bnz
        4  Jul/07 - 09:02:21 ls
        5  Jul/07 - 09:02:21 ./BNZ_installBaseSoftware
        6  Jul/07 - 09:02:21 find /usr -name gunzipCheers,
    Andreas

  • How to get mpeg streamclip with mpeg 2 to work on Leopard and for fcp x?

    How to get mpeg streamclip with mpeg 2 to work on macbook with Leopard and VOB files?  Goal is to import into FCP X.
    mpeg used to download effectively and for free with fcp 7 but apparently not the case with fcp x.

    You need the MPEG-2 playback component. This is described in detail on the Squared5 web site.

  • How could I delete files with name string with "TAL" and older than 05.05.

    How could I delete files with name string with "TAL" and older than 05.05.2009 on unix

    Our ECC Ides system today was not responsible. For first time 17 users were working on the systtem (IWN2008/SQL2005 based). Before the people were maximally 5.
    The server is done by making a homogeneous system copy from an blade machine(now it is an VIrTUAL)
    There was enaught disk space. However I checked Wokload 03sdn transaction) inn system. and found out that at that time of restarting(I had to restart system 3 times to get logged on the system and even then it was almost unresponsive.
    I can found in there top abap."Login_Pw", "SESSION_MANAGER", "?". (BAtch), "ADMSBUF, >DEleyed Function call, RSPOWPOO""RSWWclear", ""VA01", "SAPMHHTP  "Buf  Sync" >DDLOC CLEANUP)""rsbtctE"
    What can I do?
    ¸
    Who could interfer SAP_CCMS_MONI_BATCH_DPSAP_CCMS_MONI_BATCH_DP
    the 2 main users under users profile were ZUGTIN running and SAPSYS( running many system jobs)
    How to approach the problem

  • How to get QTP11 work with FF17. Unable to get Quicktest Proffessional11 plugin

    How to get QTP11 work with FF17. I have already installed Patch_090 and 0122.
    Unable to get Quicktest Proffessional11 plugin even after creating temp directory, into FF “extensions” directory.
    Please help

    If I may ask is there a recommended version of Firefox for the extension? [http://www.qatutorial.com/files/QTP_Install_Guide.pdf] is all I could find on how to install the software, is this the right add on?

  • Why do I get pdf files with an underscore  in the extension ( ._pdf)

    Why do I get pdf files with an underscore  in the extension ( ._pdf)  and how do I  open them when they are email attachemnts, becuase it wont let me rename it or save it as any other version.

    Not sure. What email are you using? Gmail (or web based email) by chance?
    Definitely not a Reader issue if you can see the underscore in your email.
    You can try saving it as is then try renaming it using Windows Explorer to see if that works.

  • How to delete the file with space in name

    Hi
    I want to delete the file "test ex.txt" file.
    i run the following command in command prompt.i can delete the file successfully.
    /bin/rm -f /mnt/"test ex.txt"
    I want to run the command from java.So i am using the following code
    String cmd = "/bin/rm -f /mnt/\"test ex.txt\"";
         Runtime rt = Runtime.getRuntime();
    process = rt.exec(cmd);
    The file was not deleted.
    How to delete the file with space in name?
    Help me

    Use the form of exec that takes an array of command + args.
    arr[0] = "/bin/rm"
    arr[1] = "-f"
    arr[2] = "/home/me/some directory with spaces";Or use ProcessBuilder, which is the preferred replacement for Runtime.exec, and which Runtime.exec calls.

  • How to get spool along with e-mail or FAX

    Hi,
    I have a requirement where i have to produce a spool even i go for e-mail or FAX option when the script is triggered.
    I am using a standard program where it is coded to have either of the option. i.e. either we have to go for a printer or e-mail or FAX.
    Could any one suggest me how to get spool along with e-mail or FAX option.
    Thanks in advance.

    Hi,
    check this:-[http://help.sap.com/saphelp_nw04/helpdata/en/a5/28d3b9d26211d4b646006094192fe3/frameset.htm]
    hope u'll get some idea.
    Regards,
    Sneha.

Maybe you are looking for

  • Error opening PDF using webdynpro

    Hello All, I created a webdynpro application that opens a pdf document using the code described in the following link. Open PDF in New External Window I am getting the following error: "There was an error opening this document. The file is damaged an

  • BizTalk routing using SMTP Adapter

    Hello, I have I an Orchestration , depending on STATUS field in Orch how can I send an email using SMTP Adapter ? For eg : if STATUS = OK, send email saying file is OK if STATUS = Error, send email saying file is Error if STATUS= Pending, send email

  • EPMA - Batch Client

    Hi, Can you batch up the tasks of creating ADS files etc? Thinking a great way to backup Planning EPMA apps would be the ability to batch up some functionality of creating ADS files, calc mgr rules, webforms etc... Is there a way to batch that stuff

  • Extension install failing Adobe Exchange extension

    Mutiple users, our test systems from Mac and Windows are failing when installing extensions from the Adobe Exchange extension. Install Extension from Adobe Exchange Panel in Adobe CC application, Ps, Ai, Id,-           click to download extension    

  • Macbook air (11", mid 2011) turns off randomly

    My macbook air 11" (mid 2011) turns off randomly. Sometimes, in the middle of something a black screen. After a few seconds it starts up again, on using a key. It restarts in the application I worked on before. Strange!