How can I login on a remote server ?

I want to copy some files from a remote server automatic by using a java program ,how can i do it?
I just can't login!!
i use the following code but I get nothing only the black green!!!
Any advise may be useful,
thanks in advance!
Socket s = SocketOpener.openSocket(host, port, timeout);
try
          System.out.println(s);
          BufferedReader read = new BufferedReader(new InputStreamReader(s.getInputStream()));
          PrintWriter write = new PrintWriter(s.getOutputStream(),true);
          write.println("username");
          write.println("passwd");      
     //     write.println("ls");
     //     write.println();
          boolean more=true;
          while(more)
               String line= read.readLine();
               if (line==null)more=false;
               else System.out.println(line);
     System.out.println("error");
     catch (IOException e)
     //     System.out.println("error"+e);

Why u r using Socket Class? Instead of this u use RMI.
In RMI u can access server remotely.I don't know that u know anything about RMI or not.If yes then ok,otherwise mail me I will tell u total detail of how to use RMI.
My email address
[email protected]

Similar Messages

  • How can i login to client

    Hi friends,
    iam very new to sap,i installed sap recently,i created a client how can i login to that client(i given user id:sap*,pwd:pass)
    any parameter changes required

    You need to change the parameter on RZ10 select the Default profile add the parameter and change the value and save & activate the profile. Restart the SAP Server and you would be able to login.
    This process is widely available if you will search on google you will find out.
    Regards,
    Subhash

  • How To read/write file on remote server in java

    Hi All,
    How To read/write file on remote server in java? I mean using URL - http://www.xyz.com can I right file to that perticular server.
    Thanks in advance

    If your server support a means of uploading files you can.
    A popular means is [http://en.wikipedia.org/wiki/WebDAV]
    However, by default web server don't allow you upload files, its usually something you need to configure or install.
    I suggest you have a look at your web servers documentation.

  • How can we update data in LDAP server using PL/SQL.

    Hi,
    How can we update data in LDAP server using PL/SQL program.
    Is there any sample code for refrence.
    Thanks,
    Tarun

    Hi Justin,
    Thanks for your help. You got my correct requirements.
    Tim's example returning all the attributes of current user which is admin user. Please correct me if I am wrong.
    I have the following information:
    the admin user and password,server info , port and ldap_base for admin.
    I have uid and password for regular user, I am trying find the ldap_base for regular user, which may be different from adminuser.
    Please help me.
    Thanks,
    Edited by: james. on Jan 12, 2009 5:39 PM

  • Hi,how can i transport objects from one server to other like (Dev To Qty)

    Hi Sir/madam,
       Can u explain how can i transport objects from one server to other like (Development To Quality To Production).
    Regards,
    Vishali.

    Hi Vishali,
    Step 1: Collect all Transports(with Packages) in Transports Tab(RSA1)- CTO
    Step 2: Release the subrequests first and then the main request by pressing Truck button
    Step 3: STMS or Customized transactions
    Object Collection In Transports:
    The respective Transports should have the following objects:
    1. Base Objects -
    a. Info Area
    b. Info object catalogs
    c. Info Objects
    2. Info Providers u2013
    a. Info Cubes
    b. Multi Providers
    c. Info Sets
    d. Data Store Objects
    e. Info Cube Aggregates
    3. Transfer Rules u2013
    a. Application Components
    b. Communication Structure
    c. Data Source replica
    d. Info Packages
    e. Transfer Rules
    f. Transformations
    g. Info Source Transaction data
    h. Transfer Structure
    i. Data sources (Active version)
    j. Routines & BW Formulas used in the Transfer routines
    k. Extract Structures
    l. (Note) If the transfer structures and related objects are being transferred without preceding
    Base Objects transport (e.g. while fixing an error) it is safer to transport the related Info
    Objects as well.
    4. Update Rules u2013
    a. Update rules
    b. Routines and formulas used in Update rules
    c. DTPs
    5. Process Chains u2013
    a. Process Chains
    b. Process Chain Starter
    c. Process Variants
    d. Event u2013 Administration Chains
    6. Report Objects u2013
    a. Reports
    b. Report Objects
    c. Web Templates
    Regards,
    Suman

  • How can I login and retrieve my user file from the trash?

    I was trying to find out where all my HD had gone, which a did using ‘What Size’.
    I found what looked like an old backup file so I put the file in the trash.
    It turns out that the file was my user file. So now I can’t login to as the user.
    How can I login and retrieve my user file from the trash?

    The Digital Editions forum is here, in case this is what you are talking about:
    http://forums.adobe.com/community/adobe_digital_editions
    If you are not, I apologize for the misunderstanding.

  • HT2731 I dont have credit card so, how can i login to itunes?

         I dont have credit card so, how can i login to itunes?

    If you don't have a credit card then there are instructions on this page for creating a new account (the instructions won't work with existing accounts) without giving card details : http://support.apple.com/kb/HT2534
    e.g. if currently logged into an account then log out of it, find a free app in the store and click on its free 'price' and create an account during the 'buying' process.

  • HT5622 How can I Login to my iTunes stores

    How can I login to my iTunes stores

    Why didn't you say that from the start? 
    If you think you broke your arm, do you tell the doctor your car won't start?    No, you tell the doctor you can't drive because your arm won't work, you think it's broken.
    You have to enter a method of payment, even for free apps.  
    This link is to acceptable payment methods:
    http://support.apple.com/kb/HT5552
    If you have a card on file, it may have an expired date.   You must remove it by selecting None, then add a card with a valid date.

  • How can i get a replacement remote for my apple tv

    how can i get a replacement remote for my apple tv?

    Welcome to the Apple Community.
    You can purchase them from the on-line or bricks and mortar Apple Store.

  • A lost my remote control for apple tv. I want to use my phone as a remote but the applications can' pair with the Apple TV device , how can I pair them without remote?

    A lost my remote control for apple tv. I want to use my phone as a remote but the applications can' pair with the Apple TV device , how can I pair them without remote?

    Setup for remote app: http://support.apple.com/kb/ht1947
    Specifically:
    Set up Apple TV (2nd and 3rd generation)
    On Apple TV, select Settings from the main menu.
    Select General > Remotes > Remote App. If Home Sharing isn't set up on your Apple TV, you should turn it on.
    Apple TV (2nd and 3rd generation) uses Home Sharing to stream content from your iTunes library on your computer to your HDTV.  If  you connect your Apple TV to your iTunes library using  Home  Sharing, you can use Remote to browse and play content from any  iTunes library in the Computers   section of your Apple TV. You can also  use Remote to select  between available speakers to enhance  your  audio and video experience.

  • How can I connect to a windows server from a mac book pro

    How can I connect to a windows server from a mac book pre?

    I have a Dell Power Edge T110 ii in the office that has files and software I need to access when away from the office, when I am on the road I use a mac book pro and an iPad.
    I am sorry if I am being a bit vague but this is all new to me, I have tried 3 IT guys but they can not find a way.
    Any help is greatly appeciated.

  • How can I find out the mail server from email address?

    Hi:
    How can I find out the mail server from email address?
    for example: If I know the email address is [email protected],
    how to find the pop3 and smtp mail server?
    THANK YOU

    You can't tell by the email address since you can pretty much put whatever you want in there (especially if the SMTP server is not filtering anything).
    The header may be able to tell you something. There is a Received header value which looks like it has the routing information although I am not sure if this is a complete trace or just the last hop the message took.
    Sean

  • How can I connect to a UNIX server to execute a command?

    How can I connect to a UNIX server and execute a command using PowerShell? My shell script is sitting on one server, while the UNIX box is on another.
    also, I don't like the idea of hardcoding a username/password within the script file in order to do so.
    -Nothing to see. Move along.

    You will need a library to handle SSH connections.
    I'm using SSH.NET, you can find info on it here : http://www.powershelladmin.com/wiki/SSH_from_PowerShell_using_the_SSH.NET_library
    It has a bit of a learning curve but the web site has some fairly good tutorials.

  • Suddenly can't put files to remote server (again)

    Hello,
    In Dreamweaver 5.5 (OS 10.7) I suddenly can't FTP to the remote server. I had this problem a couple months ago (http://forums.adobe.com/message/5145574#5145574) and it was fixed by the following suggestion:
    Close DW.  Reboot your computer. Open DW. If you still cannot FTP to server, go to Site > Advanced > Recreate Site Cache.
    This worked for me the last time, but unfortunately it hasn't solved the current problem.
    At the moment, the updated files go through the normal process of being "put" to the server, but the changes don't appear when I check the live site. I've tried refreshing the page and emptying the cache. The files seem to be uploading to the correct location (they are not being put into a sub folder or anything). I've verified that I can connect to my web server. I haven't changed anything in my site definition and this problem just appeared out of the blue.
    Just like when this happened to me before, there are random files that want to synchronise (even though they haven't been updated), but nothing changes on the remote server. I've also tried to synchronize by 'deleting remote files not on local drive', but that doesn't help.
    Here is a glimpse of my current FTP log, in case that is useful:
    Any suggestions would be hugely appreciated. Thank you!
    A

    Hi drstir,
    Can you check out the solutions in this document, and let us know if you still need help?
    http://helpx.adobe.com/dreamweaver/kb/troubleshoot-ftp-issues-dreamweaver-cs5.html
    Thanks,
    Preran

  • How can i copy ztable from development server to ides server?

    how can i copy ztable from development server to ides server?

    Hello Suresh
    The simplest way is to use a transport request.
    Another possibility is to check for SAPLINK plugins which allow to download table definitions (including data elements and domains) into a flat file. Upload on IDES again via [SAPLINK|https://wiki.sdn.sap.com/wiki/display/ABAP/SAPlink].
    Regards
      Uwe

Maybe you are looking for

  • Labview 2013 executable works only on develoment machine?

    Hi all I created an executable so as to distribute my test software but it only runs on the development machine. I have successfully distributed my executables before with labview 2012 on target machines by simply creating the .exe in project explore

  • Separate VLAN for CAPWAP

    Hello, I'm in the process of deploying a WLC2504 in an eviroment  which requires a private VLAN for access to file servers and other network resources, as well as a guest network for internet access.  As far as performance is concerned, will I get ac

  • Kuler API doesn't work with Windows 8 apps

    Hi, I've been trying to get the Kuler API to work with my app for Windows 8 (I'm using C# and XAML). For example: string feed = await client.GetStringAsync("https://kuler-api.adobe.com/rss/get.cfm?listType=" + type + "&itemsPerPage=" + items + "&time

  • Adaptable Web Content

    Hi, When I copy and paste <iframe> embed code from Youtube, I got the dimensions of it, in pixels, from that code (width, height). I am working in a PDF Folio rendicion at 1024 x 768 px for the iPad, so when I see this Folio in a 2x Retina display, i

  • Discrete Graphics on the t410s, when will it be released in the USA?

    I'm in the market for a new laptop now and I would like to purchase the t410s but I was wondering when the discrete graphics with the nvidia will be available? It is not available in the customiZation page at lenovo.com for the USA. I have heard vari