I have written a script that does a periodic upload of a large file to the cloud. However, I do not want it to run unless I’m on wired networking.
Is there a way via the command line that you could determine if you’re on wired versus wireless networking?