Search code examples
linuxcronmount

How to supply password in crontab


I am writing the command in crontab and its output is first asking the password.

Is there any way to supply the password with command like

mount -a < password

Solution

  • Yes: with Expect http://wiki.tcl.tk/201 > http://en.wikipedia.org/wiki/Expect >.