Quite a few times in Linux administration you will come across a scenario where you need to run a shell command through a bash script, in an automated manner (unattended). The purpose can be as simple as restarting a system service, moving files & folders, or performing complex firewall administration tasks. In either case, you …