My boss wants to have a simple tool that lets her quickly see how long someone’s been logged in to our Linux server. I figure a quick shell script, but I’m not sure how to code it. Note: Everyone has to log out at the end of the day, so it’s always going to be no more than 8 hours.
I’m learning how to write shell scripts on my Mac OS X Mavericks system and would like to identify and extract specific information from the EXIF information in photos. Is that possible from the Bash shell command line?
Someone sneaks into my cubicle while I’m at lunch and takes candy out of my desk. Petty, but stupid too. I want to set up something so that my webcam on my iMac takes photos every few seconds while I’m away from my desk so I can catch the culprit! How can I do that in a stealthy manner while the computer is otherwise asleep?
When I used to work on a Linux system, there was a utility we had that would let me take screen captures every 30 seconds while my computer was otherwise unattended, as a way to see if anyone else was using it or not. I liked it. Now I’d like to do the same on my Mac system. Possible?
Hello Dave. I need a Bash shell script that creates a directories with the group names automatically when user logs in to the system, in their home directory.
For example, user “sandy” might have the following set of groups from the ‘id’ command:
uid=10002(sandy) gid=119(rtkit) groups=119(rtkit),10001(admin),10003(pr007drdl)
and the directories “rtkit”, “admin” and “pr007drdl” should then be created. How do I do it?
I am constantly running commands in Terminal.app on my MacBook and then copying and pasting the results into email messages or documents. Yes, I’m a tech writer. What I’m wondering is if there’s any way to actually copy and past into the Mac system wide copy/paste buffer directly from the command line?