serverhost

fix
This commit is contained in:
Lucas Faber authored and Lucas Vivohost committed 2026-09-14 09:20:47 +02:00
1 parent 24736d0577
commit 84dfdf5210
38 files changed
+3146

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
date="$(date +"%Y-%m-%d %T")"
#echo $date
/usr/bin/expect <<EOD
log_user 1
spawn ssh -p 1160 lucas@raspberry
expect "$ "
send "sudo date --set='$date'\r"
expect "$ "
send "exit\r"
expect "$ "
EOD
exit