Again I am in a serious problem .. please help me out.
I have to change a date and time of a server which is linux based . But that server is a remote server . Means I have to make an application which will change the time of the server , but that application will run on separate server. I am developing my code in java so I have to implement it with a java program please help me out. and tell me how to solve this problem. If possible give me the code spec. If it is possible by doing ssh then please tell me how to create ssh using a java program. I am giving the scenario the java program should run on machine A and i have to change the server date time of machine B.
sudo date --set="DD MON YYYY HH:MM:SS"?