• VMware

    DockSync for Parallels

    With VMware you can use the vmrun command to launch commands in Windows from your Mac.  However, there is no option to do this in Parallels and so VerySimple Dev blog has a Windows app called DockSync which works with a Parallels shared folder.  DockSync monitors Parallels shared folders for files ending with .task extensions. The .task files contain Windows command line actions. You can script a command via Applescript or Terminal that will output a .task file to the shared folder. The .task file will be picked up by DockSync and executed at the Windows command line.

  • Mac OS X Server

    Mac OS X: Fun with scutil

    scutil is an app that can be used to get and set the ComputerName of your Mac.  The following command will return with the name of your computer. scutil –get ComputerName Now, if you want to change the name then you would use –set.  So if you wanted to set the name of your computer to kryptedmacbook you would use the following command: scutil –set kryptedmacbook Now, let’s say you’re writing a shell script and you want to put the computer name in a variable (let’s just call it computernm).  You could use the following line: computernm=`scutil –get ComputerName` Happy Scripting!

  • Mac OS X,  Mac Security

    Mac OS X Server 10.5: Using NATd to turn the Server into a Router

    There are certain aspects of Mac OS X Server that it just isn’t that great at.  One of them is acting as a router.  It’s just a fact that an appliance by SonicWALL, Cisco, Watchguard and sometimes LinkSys will run circles around the speed and feature set of Mac OS X Server.  So with that in mind, let’s look at how you would go about configuring a basic port forward on OS X Server if you decided not to listen to me on this point…  😉 You can use the /etc/net/natd.plist.  The key you’ll want to edit is the redirect_port, one per port or a range of all in one key… …

  • Mac OS X

    Mac OS X: Piping Data to TextEdit

    So the traditional way to dump a directory listing to text is to use a command such as the following: ls > test.txt But there’s another way, which actually opens the dump into TextEdit, which is to run: ls | open -tf This extends to the output of any terminal command, so you could also do scutil –get HostName | open -tf, etc.

  • Final Cut Server,  Xsan

    The Final Cut Server Command Line

    Final Cut Server has a fairly robust, albeit fairly unsupported command line.  The following is a list of some useful commands, along with their paths and functions: The following are in /Library/Application Support/Final Cut Server/Final Cut Server.bundle/Contents/Resources/sbin: fcsvr_run allows you to interact with the database, amongst other things.  To interact with the database use psql as the first positional parameter and then pxdb as the second, to identify which database you will interact with.  You can then run a select statement in quotations to do a variety of tasks, such as tallying up the number of assets in a database, etc.  Once you have certain information you can then use grep…

  • Mac OS X,  Mac OS X Server,  Ubuntu,  Unix

    Getting Started with tar

    If we were in the directory Desktop and wanted to backup all the files to a tarball called backups.tar, we could issue this command:  tar cvf backups.tar . The flags here:c creates an archive, v makes the process run verbose and f sets the file name.  The . tells tar to back up the current working directory.  Use pwd if you’re unsure what that is.  As we didn’t tell tar where to put the file it will automagically put it in the working directory.  By default tar is recursive although you can specify an n flag to alter that default behavior.   Now, to display the contents of the tar file we just created,…

  • Mac OS X,  Mac OS X Server,  Ubuntu,  Unix

    hostname

    OK, so this one is pretty easy.  You can use the hostname command to return back the name of your computer.  There’s also a nifty little s flag to remove any domain naming from the return string.

  • Xsan

    Xsan: Promise RAID Command Line Arguments

    about        View utility information. array       View or edit array information.  Create, edit or delete a new or existing array.  Create, edit or delete logical drives in an existing array.  To physically locate an array in an enclosure.  Accept an incomplete array condition. battery     View battery information or to recondition a battery. bga         View status of all current background activities.  Enable or disable relevant background activities.  Modify the background task rate for each of the background tasks. buzz        View buzzer status, enable/disable and turn on/off buzzer. chap        View, create, edit or delete a CHAP…