• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java socket  RSS feed

 
Marina JOSEPH
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my all the data stored in the server. and i wanted to see my all files,and using ls command
how i pass linux commands from client application to server.
plz analyse my problem & give a correct sugession
 
Adrian Yan
Ranch Hand
Posts: 688
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Marina: please don't double-post, it just cause more problem when people try to answer your post.
Ok, so you want to write server/client system. Simple enough, I'm assuming you know the basics of writing server/client pair. The basic idea is this, Your server needs to perform System.Runtime.exec("ls") command. You need to capture the output from the command and send it back to client.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!