Page MenuHomeFreeBSD

otis periodic

Authored By
otis
Jul 7 2023, 8:26 PM
Size
327 B
Referenced Files
None

otis periodic

```
root@b14:~ # /usr/sbin/periodic otis
_localbase is /usr/local
-- End of otis output --
root@b14:~ # cat /usr/local/etc/periodic/otis/otis
#!/bin/sh -
#
# $FreeBSD$
#
if [ -r /etc/defaults/periodic.conf ]; then
. /etc/defaults/periodic.conf
source_periodic_confs
fi
echo "_localbase is ${_localbase}"
exit 0
```

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6088244
Default Alt Text
otis periodic (327 B)

Event Timeline

This is quite odd., as _localbase is set in /usr/sbin/periodic but not exported. The periodic scripts are invoked as a sub-shell (line 137 of periodic.sh) so they would not inherit _localbase. Perhaps -a / allexport set in ~/.shrc?

My default is:

allexport       off