e92b874fda
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/checkpolicy#611818c50ab52cb1d01890df4a3296b290b7fd82
22 lines
392 B
Plaintext
Executable File
22 lines
392 B
Plaintext
Executable File
#!/usr/bin/expect -f
|
|
# ./sedispol.exp option policyfile outputfile
|
|
set option [lrange $argv 0 0]
|
|
set policyfile [lrange $argv 1 1]
|
|
set outputfile [lrange $argv 2 2]
|
|
set timeout 60
|
|
spawn sedispol $policyfile
|
|
expect "Command*:" {
|
|
send -- "f\r"
|
|
}
|
|
expect "Filename*:" {
|
|
send -- "$outputfile\r"
|
|
}
|
|
expect "Command*:" {
|
|
send -- "$option\r"
|
|
}
|
|
expect "Command*:" {
|
|
send -- "q\r"
|
|
}
|
|
expect eof
|
|
|