![]() If not, then I put in the massive if statement where all the variables are initialized and the computations are done. I checked the for active status, assuming that it was initially inactive. # find the difference between bytes in and out during that one second WiFi=$(networksetup -getairportnetwork en1 | awk '') # bytes out again Here is my script thus far: # Get Ethernet and Wi-Fi information and display it for GeekTool What I have thus far are several calls to both, but would like to consolidate it to one call to each process creating variables to use in my script. I'm pulling network data using both networksetup and system_profiler. I have created a small bash shell script which I wanted to use with GeekTool, but I have experienced different results using the same script on my iMac (11,1) and my MacBook Pro (8,3).
0 Comments
Leave a Reply. |