Friday, March 29, 2024
Bash Script Batrai Cmos

Mengatasi Server yang Waktu / Date nya salah diarenakan batre cemos habis

Biasanya jika batre cemoh habis , tiap kali server nya reboot / updown pasti date / jam server nya salah dan tidak sesuai dengan saat ini :

Bisa menggunakan perintah berikut :

rdate -s rdate.cpanel.net

Bisa di terapkan juga dengan cron , sehingga tiap kali reboot akan otomatis menyesuaikan.

nano date.sh

chmod a+x date.sh

#!/bin/bash

rdate -s rdate.cpanel.net

dan corntab – e

@reboot /home/yuby/date.sh > /dev/null 2>&1

(Visited 109 times, 1 visits today)
Baca Juga :  Membuat auto move Junk email to Inbox

Similar Posts


Warning: Trying to access array offset on value of type bool in /home/des1gn/hendro-wibiksono.web.id/wp-content/plugins/floating-related-posts/floating-related-posts-pro.php on line 270

Warning: Trying to access array offset on value of type bool in /home/des1gn/hendro-wibiksono.web.id/wp-content/plugins/floating-related-posts/floating-related-posts-pro.php on line 270

Warning: Trying to access array offset on value of type bool in /home/des1gn/hendro-wibiksono.web.id/wp-content/plugins/floating-related-posts/floating-related-posts-pro.php on line 270

Warning: Trying to access array offset on value of type bool in /home/des1gn/hendro-wibiksono.web.id/wp-content/plugins/floating-related-posts/floating-related-posts-pro.php on line 270

Warning: Trying to access array offset on value of type bool in /home/des1gn/hendro-wibiksono.web.id/wp-content/plugins/floating-related-posts/floating-related-posts-pro.php on line 270

Warning: Trying to access array offset on value of type bool in /home/des1gn/hendro-wibiksono.web.id/wp-content/plugins/floating-related-posts/floating-related-posts-pro.php on line 270

Warning: Trying to access array offset on value of type bool in /home/des1gn/hendro-wibiksono.web.id/wp-content/plugins/floating-related-posts/floating-related-posts-pro.php on line 270

Warning: Trying to access array offset on value of type bool in /home/des1gn/hendro-wibiksono.web.id/wp-content/plugins/floating-related-posts/floating-related-posts-pro.php on line 270