SARA_8
13 years agoLevel 4
vmchange script
I have a script to eject multiple tapes every week using vmchange. I dont have a root access on the master but I can run the command using pbrun
cat eject.sh
*
*
*
pbrun vmchange .....
each time I run the script , it asks me for my password then it executes fine.
./eject.sh
Password for ....
is there a way to automate the script to read my password from a file or something without me interacting with the script each time I run it.
Sincerely, Sara
You could add a further line that runs a command to pipe out the used tapes and then use that in my script .... but in view of exactly what you want I think you should consider purchasing the Vault option that will do this for you.