Bash script in osx to work with command that ask for password then execute
$30-250 USD
Cerrado
Publicado hace casi 11 años
$30-250 USD
Pagado a la entrega
Hi all,
I am writing a script to run in osx.
basically is getting a full diagnosis from a storage unit.
activeadmin -d "ip" save config /path/to/the/save/file
I am trying to automate that on a cronjob but the problem is that activeadmin is asking for a password and i don't know how to get the script to work with that. One option is use "expect" and "send" commands. Anyway if you have done something similar please let me know.
OS X admin expert here. I can automate this without each time entering your password. It will be launched according to some config: 5mins, 1h...or what you want..An elegant solution will be provided to you.