...how to update system time permanently in solaris through c++.
...how can i login into superuser(su) account through c++ code in solaris.
Jump to Post
1. Same as you would in a C application.
2. Ditto - you can't.
1. Why? Call system("ntpdate ntp_server_address") - this will set the system time to the global clock. Guaranteed accurate. If you want to set it to your own value, use …
All 5 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.