シェルスクリプト相談室
at TECH
744:740
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が見つからない・・?何か入れる必要あるんでしょうか?
次ページ続きを表示1を表示最新レス表示スレッドの検索類似スレ一覧話題のニュースおまかせリスト▼オプションを表示暇つぶし2ch
5222日前に更新/248 KB
担当:undef