Date: Fri, 10 Apr 2020 14:06:05 -0400 From: Jerry <jerry@seibercom.net> To: freebsd-questions@freebsd.org Subject: Re: Cron config for ipfw table Message-ID: <20200410140605.65a38401@scorpio> In-Reply-To: <4c9fa960-f367-9beb-4c00-810b34e3e672@cloudzeeland.nl> References: <dba61fc0-ca97-d066-06f7-61273e80765b@cloudzeeland.nl> <20200410083854.0000516d@seibercom.net> <4c9fa960-f367-9beb-4c00-810b34e3e672@cloudzeeland.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/7edrpEn=.wQcy9QBsvgNTTi Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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. =20 > >I currently use #!/bin/bash >>=20 >> Assuming you have the correct "shebang" in th script, you could just >> use >>=20 >> @reboot /root/cronjobs/reboot.sh & >> =20 > >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". --=20 Jerry --Sig_/7edrpEn=.wQcy9QBsvgNTTi Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEIQb/tTwl6I1ueEVtOHMGOIfexWQFAl6QtY0ACgkQOHMGOIfe xWTG4Qf9EWaKBqXDQmjdqyBZ8HJ1Q6BavInjElhxbRtEhG6drekO4XvVrNI7b35J sJbt/nw8dmK/YcUuYQaifPP2y24BD2tJiNuNMjYeGryxq5/nc7qOTXj7Pgve5UMv iABubYN7N2ypwHq6Jq1Zz7hPNLYL1arEzdhxeMxcesvc1dYpeeBHbvIB9/aGl4rG ZtScM//GbExj8ybbDLN7/c4eP/CbgvE+NOKPDjjuJzQB4fFEU0XxKWjmp7GI9pd0 QJcRW01FfpLBt8c4x5uymUJGuEfL+f+qCGaqWDGoNIomIY82YWJOUc9Ab4WZIqj+ 8eqZvxMftUAG6YVJLj6zGbd9j9zWtA== =vpAz -----END PGP SIGNATURE----- --Sig_/7edrpEn=.wQcy9QBsvgNTTi--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200410140605.65a38401>