07/12/23 00:02:58
>>742
で以下のようにしてみたのですが
#!/bin/sh
passwd testid
expect \"*:\"
send "test\n"
expect \"*:\"
send "test\n"
cronのメールで
useradd: user testid exists
New UNIX password: New UNIX password: New UNIX password: passwd: Authentication information cannot be recovered
Changing password for user testid.
aaaa: line 6: expect: command not found
aaaa: line 7: send: command not found
aaaa: line 8: expect: command not found
aaaa: line 9: send: command not found
といわれました。
expectが見つからない・・?何か入れる必要あるんでしょうか?