Unable to Update Linux Date
I am trying to update the Linux System Date from my Java Program using the following command:
cmd = "date --set='+1 days'"
This doesnt work using the Runtime.getRuntime(cmd), but if I put the same command in a shell script and tell the runtime to execute that script it works fine.
Could someone tell me what the possible solution to the problem could be, coz I dont want to put the command into a seperate script.? and yea the reboot command works just fine if I do Runtime.getRuntime("reboot")

