Re: Sheell Script for SFTP

From: Venkat (khvenkat_at_cisco.com)
Date: 09/05/05

  • Next message: Venkat: "Re: Sheell Script for SFTP"
    Date: Mon, 5 Sep 2005 17:37:44 +0530
    
    

    > whoops.. forgot you need to use the -n flag to disable auto-login if
    > you want to use a here document.
    >
    > ftp -n $HOST<<EOF

    Hi Ian,

    This is what i tried but when i execute ./prg1.sh it hangs

    #!/bin/sh
    HOST='10.77.31.202'
    USER='root'
    PASSWD='venkat'

    ftp -n ${HOST} << EOF
      user {$USER} ${PASSWD}
      cd /root
      get test
      exit 0
    EOF

    Regards,
    Venkat


  • Next message: Venkat: "Re: Sheell Script for SFTP"

    Relevant Pages

    • Re: Impersonation code
      ... Best regards, ... > and that application will not execute on the other machines for the same ... >> Simply check out the user contexts of both applications and compare the ... >>> The impersonation of the user is successfully done. ...
      (microsoft.public.dotnet.faqs)
    • Re: Ideas around an enhanced list view in WSS?
      ... This demo updates the scr attribute of an activex control on the page. ... > Thanks Ian. ... > how to add say an option to a column in a DVWP that would relate to the ... >> Regards, ...
      (microsoft.public.sharepoint.windowsservices)
    • Re: Pointing another virtual server to an existing sharepoint site
      ... moves you get broken links ... "Mike Walsh" wrote in message ... > Ian, be a nice guy and say in brackets in cases like this that this is an ... >> Regards, ...
      (microsoft.public.sharepoint.windowsservices)
    • Re: How to make and executable mdb file
      ... Note that MDE is distinct from runtime even though they can have same ... MDB file running on runtime can't be altered but can be by running a ... and deny all permissions except to execute the object to the public. ...
      (microsoft.public.access.reports)
    • Re:
      ... I am reading a only. ... But what if I want read write and execute that file. ... Regards, ... >> Jatinder Singh ...
      (comp.lang.python)