I am having a function written inside bashrc
like -
function build_image ()
{
...
}
This function will trigger compilation of the source code.
Now I need to trigger this image building/compilation process at midnight today. So I make use of at
command.
So I ran like -
-bash-4.4 $at midnight
warning: commands will be executed using /bin/sh
at> build_image
at> <EOT>
job 4 at Thu Feb 11 00:00:00 2021
Looks like the shell that is used by at
is sh.
How do I instruct at
command to use bash
shell so that my alias'es and functions work?