Cron config for ipfw table
Jerry
jerry at seibercom.net
Fri Apr 10 18:06:17 UTC 2020
On Fri, 10 Apr 2020 19:46:31 +0200, Jos Chrispijn stated:
>On 10-4-20 14:38, Jerry wrote:
>
>> I run several programs upon reboot also. However, I never use "bash"
>> as part of the command.
>
>I currently use #!/bin/bash
>>
>> Assuming you have the correct "shebang" in th script, you could just
>> use
>>
>> @reboot /root/cronjobs/reboot.sh &
>>
>
>Unfortunately, removing the & doesn't result in the solution.
>Will check the link you provided again; might oversee the issue by
>using a typo somewhere.
Have you tried running "which bash" to see where 'bash' is actually
located? On FreeBSD, it is usually "/usr/local/bin/bash". Personally,
I use 'env' for my 'shebang'; i.e., "#! /usr/bin/env bash".
--
Jerry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20200410/2a7bf207/attachment.sig>
More information about the freebsd-questions
mailing list