There are a few tools that can change the original image but in a lot of cases you can just mount the SD card and update the files as needed from any computer that is able to read / write the Ext4 formatted partition on the card.
The other option would be to create a master SD card with everything set-up and copy that.
The new Pi imager is supposed to let ...
Not sure exactly what's causing the issue, but a couple of things to try:
the cron environment uses sh instead of bash AFAIR. Add SHELL=/bin/bash to crontab just before invoking your script.
I think you may have a disconnect wrt where your script output is going. You redirect the date output in your script, but the echo output will go to stdout (aka /dev/...
As a minimum you should be discussing this with your IT support at work. Never trust free advice from the Internet where security and privacy is involved :-)
Saying that, here is my free advice:
The simplest way would be to use a broker based on the Internet that you can reach both from home and work.
A search will turn up a few free ones (I like Adafruit ...
ifconfig eth0 up is not executing to restart the connection
Because ifconfig set eth0 up does not create a connection; as man ifconfig explains:
up This flag causes the interface to be activated.
"Activated" means the interface is now ready to be used to make a connection. Exactly what this involves depends on the interface type, but the ...