Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update 2olwes
  • Loading branch information
L-moree authored Jun 3, 2025
commit f475d66461fd163adadd1e98f2980dde504d6173
29 changes: 1 addition & 28 deletions Core/Sources/2olwes
Original file line number Diff line number Diff line change
@@ -1,28 +1 @@
#!/usr/bin/expect

set password "password_baru"
set username "nama_pengguna"

spawn passwd $username
expect {
"New password: " {
send -- "$password\r"
expect {
"Retype new password: " {
send -- "$password\r"
expect eof
}
timeout {
puts "Timeout!"
exit 1
}
}
}
timeout {
puts "Timeout!"
exit 1
}
eof {
puts "Proses selesai!"
}
}
l