Re: notify via virtual terminal available packages
On Thu, 24 Sep 2020 09:53:59 -0400
Greg Wooledge <wooledg@eeg.ccf.org> wrote:
> RANDOM is a bashism, not available in sh, so that won't work in a
> crontab unless you've altered which shell cron is using to parse the
> crontab.
Well, that's interesting. The file I pulled that from (in /etc/cron.d)
sets two variables explicitly:
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
And the machine that it runs on shows:
root@hawk:~# ll /bin/sh
lrwxrwxrwx 1 root root 4 Jan 17 2019 /bin/sh -> dash*
root@hawk:~# ll /bin/dash
-rwxr-xr-x 1 root root 121464 Jan 17 2019 /bin/dash*
root@hawk:~# file /bin/dash
/bin/dash: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=486323dd0fe3ec5af388e4ea4217a1f0092961d2, stripped
root@hawk:~#
--
Does anybody read signatures any more?
https://charlescurley.com
https://charlescurley.com/blog/
Reply to: