examples
security add-generic-password -scoxxx.net -a${myId} -w${PWD}"
security add-generic-password -U -scoxxx.net -a${myId} -w${PWD}"
# -s specify service
# -a specify account
# -w specify password
# -U update if already exists

security find-generic-password -s awscn.ldap.user ~/Library/Keychains/login.keychain-db"
security find-generic-password -sawscn.ldap.user -g"
security find-generic-password -sawscn.ldap.user -aokok -w"

# -s service match
# -a account match
# -w display password only
# -g display password

The 'security' command in cron did not work as intended. I solved it using 'launchd'
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2022-09-26 00:44:49
Processing time 0.0049 sec