Results 1 to 5 of 5
  1. #1
    dowell's Avatar
    dowell is offline Member
    Join Date
    May 2008
    Posts
    6
    Rep Power
    0

    Default using java to login to unix

    Hey people..i want to use a windows java application to login to unix. In a particular i want that application to read a particular file in unix.

    How can i do it in unix???

  2. #2
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    i want to use a windows java application to login to unix
    What do you mean? you will deploy your windows java application into unix platform?

    @ the First paragraph of File Class, you can find the pattern equivalent to "\\".
    freedom exists in the world of ideas

  3. #3
    dowell's Avatar
    dowell is offline Member
    Join Date
    May 2008
    Posts
    6
    Rep Power
    0

    Default

    Quote Originally Posted by sukatoa View Post
    What do you mean? you will deploy your windows java application into unix platform?

    @ the First paragraph of File Class, you can find the pattern equivalent to "\\".

    No...the java application is running in windows..but i want it to login to unix just like the way you can create an ftp batch file containing the commands to run.

  4. #4
    danielstoner's Avatar
    danielstoner is offline Senior Member
    Join Date
    Apr 2008
    Location
    Canada
    Posts
    191
    Rep Power
    7

    Default

    Then you have to use your own protocol or a library that implements standard protocols. A good library is Apache Commons Net: Net - Apache Commons Net

    Supported protocols are:

    * FTP
    * NNTP
    * SMTP
    * POP3
    * Telnet
    * TFTP
    * Finger
    * Whois
    * rexec/rcmd/rlogin
    * Time (rdate) and Daytime
    * Echo
    * Discard
    * NTP/SNTP
    Daniel @ [www.littletutorials.com]
    Language is froth on the surface of thought

  5. #5
    dowell's Avatar
    dowell is offline Member
    Join Date
    May 2008
    Posts
    6
    Rep Power
    0

Similar Threads

  1. Accessing unix system using java
    By abhishek.sinha in forum AWT / Swing
    Replies: 3
    Last Post: 06-19-2008, 09:05 AM
  2. how to run java app on windows in a cron like on unix
    By rockie12 in forum Advanced Java
    Replies: 7
    Last Post: 05-23-2008, 02:39 PM
  3. Filter a file in java (unix cut command equivalent)
    By marcosabel in forum New To Java
    Replies: 0
    Last Post: 02-11-2008, 08:26 PM
  4. Running java program with arguments in Unix"
    By gvi in forum Advanced Java
    Replies: 2
    Last Post: 11-08-2007, 08:01 PM
  5. problems with Login
    By Peter in forum Java Servlet
    Replies: 2
    Last Post: 06-12-2007, 02:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •