Remote shell command execution implemented using Java and Socket Connection