------- Comment From [email protected] 2014-10-20 16:04 EDT-------
(In reply to comment #8)
> This is mandated by POSIX, see
> http://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html

Further research explores the problem with shell link:
root@ucrypt:/# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Sep 16 10:54 /bin/sh -> dash

In other words, it is dash (a slim shell to provide faster boot times)
that can not execute a binary command to override itself.

You may see the different behaviors of dash vs bash:
root@ucrypt:/# /bin/dash -c cat
... ...
root@ucrypt:~# ps -ef | grep cat       # at another terminal
root      6611  6462  0 15:45 pts/0    00:00:00 /bin/dash -c cat
root      6612  6611  0 15:45 pts/0    00:00:00 cat

root@ucrypt:/# /bin/bash -c cat
... ...
root@ucrypt:/# ps -ef | grep cat        # at another terminal
root      6615  6462  0 15:47 pts/0    00:00:00 cat

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1337576

Title:
  dash inability - cron start binary with /bin/sh

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cron/+bug/1337576/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to