You can redirect a log file into a given directory. That directory, if it has other stuff in it, can get out of control. So, here, we’re going to remove all files except that file using the find command: find * ! -name jamf.log -type f -delete Once run, the jamf.log is the last file left in the directory.
-
-
Remove All Apps From The Dock In OS X
Remove all app icons from the Dock in OS X: defaults write com.apple.dock persistent-apps -array
-
Kill Processes With Open Handles on PIDs
You can kill a process using the kill command. You can use lsof with -n to see the processes that have connections to a file. So, here, you can see lsof showing all files with an open connection: lsof -n You can also use the-c option to constrain output to a specific string. The kill command can then use the lsof command to kill all those processes, as follows: kill -HUP $(lsof -n -c /tty/i -t) Free your files…
-
Bushel Features Supported In iOS 7
We have some devices that we support that are running iOS 7. But iOS 7 is old and so we can’t support every option on the platform. So what should you expect to be supported on iOS 7? Find Out Which MDM Features Are Supported By Bushel In iOS 7 At The Bushel Blog
-
Basic bash Looping
In bash, there area number of ways you can write loops. Here, we’ll look at putting a single line with a loop in it. This will be done using the for command. For requires a do and a done. The do is what we’ll do for each iteration. Here, we’ll just run a loop from 1 to 10 and then we’ll do an echo on that variable so it displays on the screen as well loop: for i in {1..10} ; do echo $i; done The output would then be as follows: 1 2 3 4 5 6 7 8 9 10
-
Sell Some Bushel
So one of the projects I’m very involved in is a simple, new Apple Device Management (or MDM really) solution, called Bushel. By default, we give people 3 devices for free. If you’re in a position to refer people to Bushel, you can also use links that you send to people that will get you even more free devices (up to 10). But some people want to sell things and earn commissions from them. And we fully support that. So you can become a Bushel affiliate and earn commissions from any referrals you send us. To sign up to become a Bushel affiliate at http://www.bushel.com/affiliates. There, you can find links…
-
Separate commands on one line in Bash
In bash, you can run multiple commands in a single line of a script. You do so by separating them with a semi-colon (;). The great thing about this is that if you end up using a variable, you can pass it on to subsequent commands. Here, we’re going to string three commands together and then echo the output: a=1;b=2;c=$a+$b;echo $c because we told c to be $a + $b, the $a expands to 1 and the $b expands to 2, we throw them together and then echo out the contents of c$ which appears as follows: 1+2 Now, we could have this thing do math as well, by wrapping…
-
Use scp To Connect To A Remote Mac And Copy A File
Use scp to connect to a remote host and copy a file. To do so, use the -E option, followed by the source file, in this case the path for that file is ~/elcap.dmg. Then do the username followed by a : and then the password. Those credentials are then being used on the server defined by the @ symbol and then the fqdn of the host, all together here being krypted:mrrobot@imaging.krypted.com where krypted is the username, mrrobot is the password and imaging.krypted.com is the hostname of the target box running ssh. Then just list the path and filename of the target. In this case, it would be /Users/krypted/Desktop/elcap.dmg: scp…
-
Move Devices To New Users In Bushel
When you enroll devices into Bushel, you’ll be prompted for a name and email address. We use these two fields to setup the mail profile for users and display who has that device. You can see who a device is assigned to by clicking on the device in Bushel and checking out the Assigned To card, shown here. Move Devices To New Users In Bushel
-
JAMF Nation User Conference 2015 Tickets Now Available! #jnuc
Join us for the 2015 JNUC! WHEN: October 13-15, 2015 WHERE: Guthrie TheaterMinneapolis, MN WHY: Be a part of the largest gathering of Apple system administrators in the world. RSVP to attend Last year, nearly a thousand Apple admins took over the Guthrie Theater for the JAMF Nation User Conference (JNUC) to learn new and better ways to manage Mac, iPad, iPhone, and Apple TV in their environment. This year, help us break the thousand mark! The JAMF Nation User Conference is not a sales expo or a tradeshow. Instead, it’s a welcoming, three-day rally of user and community presentations, hands-on labs, instruction, and developer training. You will leave with practical information…