How the command "at" works?
Oliver Grawert
ogra at ubuntu.com
Sat Aug 6 15:04:06 UTC 2016
hi,
On Sa, 2016-08-06 at 09:34 -0500, Peng Yu wrote:
>
> > Or do you specifically need "atd" to run bash shells?
>
> I need atd be aware of any bash function defined in the bash shell
> when at is called. I don't think this is possible with the current
> version of at,
> >
i assume you are aware that bash is only used as terminal login shell
for users in Ubuntu (and debian) ?
the system level shell is dash, if your code is executed by the atd
system daemon it will likely execute by default in context of /bin/sh
(and thus the system shell), you should take that into account and
either write your shell scripts properly POSIX compliant or force the
shebang line inside the at job to /bin/bash ...
ciao
oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20160806/2a047592/attachment.sig>
More information about the ubuntu-users
mailing list