1 Reply Latest reply: Nov 28, 2012 7:38 AM by 642075 RSS

    SnpsFTP not working with Windows domain/username

    642075
      Hi All

      We are using the following script to delete a file in FTP server. Works well with UNIX FTP server but fails with WINDOWS FTP server. Windows FTP username happens to be of format "domain/username". Is backslash causing the issue?


      Jython

      import snpsftp
      ftp = snpsftp.SnpsFTP('#PVV_SFTP_SERVER', ur"#PVV_SFTP_USER", 'PVV_PLAINPWD')
      ftp.delete ('#PVV_SFTP_FOLDER/#PVV_FILE_NAME');
      ftp.close()



      Error Message

      org.apache.bsf.BSFException: exception from Jython:
      Traceback (most recent call last):
      File "<string>", line 2, in <module>
      File "/apps/oracle/product/ODI11116_frsh/oracledi.sdk/lib/Lib/snpsftp.py", line 50, in __init__
      self.connect(host, port)
      File "/apps/oracle/product/ODI11116_frsh/oracledi.sdk/lib/Lib/snpsftp.py", line 58, in connect
      self.ftp.connect(host, port)
      File "/apps/oracle/product/ODI11116_frsh/oracledi.sdk/lib/Lib/ftplib.py", line 129, in connect
      raise socket.error, msg
      socket.error: (146, 'Connection refused')



      Regards
      Prasad Jayakumar