Quantcast
Channel: Shell – krypted
Browsing latest articles
Browse All 22 View Live

Programatically Clipboarding in Windows

My last article showed how to interface with the clipboard in Mac OS X. Windows 7 comes with the same feature, but instead of pbcopy it’s simply clip. Since you don’t ls, we’ll pipe the output of dir...

View Article



Image may be NSFW.
Clik here to view.

RDP from the Command Line

Let’s face it, connecting to Windows Servers is a must for many of us. And some of us want to do so programatically. I did look at populating the CoRD database in a previous article. But now, luckily...

View Article

Programatically Secure Erasing Free Space

One of those security things that pops up every now and then is to use the secure erase feature of Mac OS X, located in Disk Utility. But you can access this same feature from the command line using...

View Article

Adding Objects To The Dock

Using Mac OS X, one of the most trivial things (provided you have permission) is to add an object to the dock. Applications go on the left side of the dock and folders/documents/stacks go on the right....

View Article

Scripting FaceTime

I will go through long stretches without playing with new technology until I either get unbusy or get talked into figuring out how to do something remotely interesting with it. Like linking FaceTime up...

View Article


Image may be NSFW.
Clik here to view.

Directory Services Scripting Changes in Lion

opendirectoryd Scripting directory services events is one of the most common ways that the OS X community automates post-imaging tasks. As such, there are about as many flavors of directory services...

View Article

Scripting in Google ChromeOS

I recently got my hands on one of those Google ChromeBooks (Cr-48). Interesting to have an operating system that is just a web browser. But, as anyone likely reading this article already knows, the...

View Article

iconutil

Sometimes you just have to convert an iconset file to an icns file. And who knew, Apple was kind enough to give us a command to do just that in OS X! To use the iconutil command, run it with the -c...

View Article


Bash: Check That A Script Is Running As Root

Pretty much every script I’m working on these days must be run as root. Checking what user is running something is pretty straight forward, as there’s a built-in shell variable for $USER that contains...

View Article


Install Python On Windows With A One-Liner

The msiexec command can be used to run an installer on Windows in a zero touch fashion. To do so, run the following command: msiexec /i "python-2.7.14.amd64.msi" /passive TARGETDIR="C:\python" The post...

View Article
Browsing latest articles
Browse All 22 View Live




Latest Images