OSX Tiger book on detailed command line actions

Is there a good book out there that will detail how to drive the system via the Terminal? I am not a Unix person but i want to learn how to do things via the command line. On many of the forums people have great input as to how to solve but they give you scripts and i want to understand how they actually work.

Check out bash Cookbook at http://www.oreilly.com/catalog/bashckbk/
Available now as an ebook or in May as a print version.

Similar Messages

  • ERROR: -1639 INVALID COMMAND LINE ARGUMENT

    Trying to install software for Shuffle that Santa brought and get this error messsage...
    "Error: -1639 invalid command line argument. Consult the windows Installer SDK for detailed command line help."
    Install stops at this point.
    SOMEONE HELP... My kid is chomping at the bit !
    Thanks.

    Ok I'll do some more searching but I found something in the community forums.
    APPSearch can not return this data into a property, so instead, for some unspeakable reason, returns a value of Null, follwed by another Null. This means that the property is created, and populated with two null characters. Bad news if the property also happens to be a PUBLIC property. All public properties are passed as part of the command line sent in a stream to the background installer process by the Execute Action. Since this stream now contains a double null value in a property, the stream is prematurely terminated. This creates an invalid command line, and thus the 1639 error.
    This user solved it by using the MSi Cleanup installer util.
    EDIT: A little more info...
    This problem is almost impossible to detect through the MSI log files since our friends at Microsoft chose to limit the length of any line in the log. It is impossible to get a dump of the full command line that generates this error.
    EDIT2:Note that error 1639 only ocurrs when the install package is run from removable media. When the package is run from local storage, the behavior is far more obtuse. The background install process, failing to receive a complete command line, is forced to run as if there had been no UI session, which in turn causes the APPSearch action to run again as if the install was running in silent mode. This causes re-evaluation of all properties a second time, destroying the feature selections made in the UI session, and also forcing the install to run under user credentials instead of elevated, even though AdminUser, ALLUSERS and Privleged properties are set. This is a very serious error that causes total failure of the installation.

  • Command to Start/Stop "Windows File Sharing" on OsX Tiger Client

    Dear Mac Gurus:
    How to use command to start/stop “Windows File Sharing” on OSX Tiger client?
    Thanks!
    Max

    Hi Max,
    Windows file sharing requires two daemons, nmbd and smbd. They can be started/stopped as follows:
    To start (type the following all in a single line):
    sudo launchctl load -w /System/Library/LaunchDaemons/nmbd.plist /System/Library/LaunchDaemons/smbd.plist
    To stop:
    sudo launchctl unload -w /System/Library/LaunchDaemons/nmbd.plist /System/Library/LaunchDaemons/smbd.plist
    The option "-w" indicates that the default setting (whether start them at boot time or not) is also modified (the same effect as you turn them on/off via System Preferences -> Sharing). This means, if you start them and shutdown your Mac without stopping them, then they will be automatically restarted next time you reboot the Mac.
    If you use "load -F" instead of "laod -w", then they are started but the default setting is not modified (if it is off then remains off).
    If you use "unload" instead of "unload -w", then they are stopped the default setting is not modified (if it is on then remains on and will be started at next reboot).
    If you feel the commands are too long to type, then you can devide them into two commands, for example:
    sudo launchctl load -w /System/Library/LaunchDaemons/nmbd.plist
    sudo launchctl load -w /System/Library/LaunchDaemons/smbd.plist
    See launchctl man page for more detail.
    HTH
    PowerMacG4, PowerBookG4, iMac(C2D)   Mac OS X (10.4.9)  

  • Automate export via command line (Tiger)

    I want to automate the backup (not just the directories) of both iCal and Address Book on Tiger. I've had a look at the AppleScript dictionaries for both apps, but the export function is not there.
    Any ideas on how I can do the export on the command line??

    Hi Gerald,
    Yes it is very much possible. For large configurations, it is recommended to take export from command line-
    1. run setenv file
    2. java -Xms512M -Xmx512M oracle.tip.repos.export.Export -inputfile <inputfile> [-ignoretypes <
    file>] <export file name>
    Arguments:
    -inputfile <inputfile> to export specific objects .
    -ignoretypes <file> , This is only for business process. This is to ignore
    the object types while exporting deployable BP.
    <export file name> name of the export file
    For e.g. -
    C:\B2B10g\Midtier\ip\install>java -Xms512M -Xmx512M oracle.tip.repos.export.Export C:\commandExport.xml
    Starting Execution Context
    Export file name is C:\commandExport.xml
    3.26
    exporting all design objects
    export done
    For benefit of other users of this community, I have documented the same on below link -
    http://anuj-dwivedi.blogspot.com/2009/12/exporting-configuration-through-command.html
    Regards,
    Anuj
    Edited by: Anuj Dwivedi, Infosys on Dec 22, 2009 10:28 PM

  • G5 will not boot into OSX - stays at a command-line prompt

    My G5 will not boot into OS X. I would appreciate and and all advice. Thanks.
    What happened:
    I had the G5 running one morning, with the Isight camera on, plugged into the front-console firewire port. I was running EvoCam software.
    At about 2 hours into running, the cam stopped broadcasting – I got home to check it out three hours later, and the screen was black, and the fan was louder than I had ever, ever heard it on this box.
    I did a hard shut-down with the powerbutton on the Cinema Display monitor.
    At reboot, I see a grey screen for approx 5 seconds, with a dark grey apple logo, and then the screen goes to black, with a command-line prompt.
    It’s been like that ever since.
    I ran the Apple Hardware test, from the internal CD drive, and it shows no errors.
    I cannot boot from an OSX installer DVD. It won’t recognize it. It goes straight to the black screen and Command line prompt.
    I have re-seated the RAM, as well as the Airport Card. The only other card – which I have not re-seated, it the video card.
    I am able to use the machine in Target Mode, so I can extract data from the drives, which is great. Oddly enough, I’m able to use the front-console firewire port to connect to my other Mac in Target mode – with no problems. Also – in Target mode, the fan never goes above the usual quiet self.
    I would appreciate any advice one can provide. Thanks!
    The machine:
    Mac G5 dual 2.0 – First Generation (purchased December 2003)
    It’s on it’s 3rd Motherboard – and now it’s fully out of Applecare warrantee.
    OSX 10.4.9
    4GB Ram
    2 internal drives: 160GB + 300GB
    Airport Extreme
    20” Cinema Display (first generation)
    Mac G5 dual 2.0 – First Generation   Mac OS X (10.4.9)  

    Well, Apple Support does have articles on:
    Isolating Issues in Mac OS X
    http://docs.info.apple.com/article.html?artnum=25392
    won't boot or login
    http://docs.info.apple.com/article.html?artnum=106464#symp1
    And if those don't work, call.
    With G4 there is/was
    "Fix for a Mac that won't power up
    Mirrored Doors G4. When you pressed the power button, the button would light up, but the computer would not turn on. The fans on the power supply wouldn't turn on.
    FIX: unplug the machine, pull the clock battery, hit the power button to discharge. Then plug it in without the clock battery. The machine should boot perfectly. Shut down, reinstall the clock battery, and now the system is fully functional. Macosxhints
    http://docs.info.apple.com/article.html?artnum=300552
    Reseat video? try another video card?
    My Step #1 is to always boot into Open Firmware (and do reset-nvram, reset-all, if you can't do that, you are sunk).
    Oh, and What do you see in verbose mode on startup?
    Mac Pro 2GHz 4GB 10K Raptor 23" Cinema   Mac OS X (10.4.9)   WD RE RAID Aaxeon FW800 PCIe MDD-G4 APC RS1500 Vista

  • Access via command line to the data files for Address Book

    Snow Leopard Server 10.6.8
    Mac Mini 2.66 GHZ Intel Core 2 Duo 4 GB 1067 MHZ DDR3
    I rolled back from Mountain Lion Server to Snow Leopard Server because I needed mySql. At the time I was under AppleCare and they walked me through the steps. However, I ended up with Address Book issues.
    Addressbook user on the Snow Leopard Server was upgraded to Mountain Lion Server. During the rollback process, the Apple tech had me delete the Addressbook user.
    When we finished the rollback, he had me recreate the Addressbook user, but now it is linked to a new, empty data file. I cannot add new contacts nor edit or delete them. So I need to use the command line to view both data store files, find the one that has my data in it and re-attach it to my new Addressbook user.
    Can someone help me with the Command Line commands?
    Thank you,
    Cailyn

    Hi,
    There are a couple of more advanced solution I can think of and I'm actually working on one myself.
    * You can create your own jnlp client that allows you to pass in arguments. That sounds harder than it easy. Building a stripped down jnlp client (e.g. no installer, no applets) using one of the two open-source client as a start takes probably just a couple of days and should be sufficient for in house usage.
    * Another solution is what I'm working on now. You can wrap your own executable around javaws that takes your passed in arguments plus jnlp href and looks up the original in the cache and adds a new one to the cache that it passes on to javaws and suddenly everything works as it should. The magic will be revealed at http://www.geocities.com/vamp201
    - Gerald Bauer

  • How to view an applications actions in command line?

    I have a series of highly repetitive tasks that require a tremendous number of button / menu clicks that I've been trying to automate. I have successfully automated the process with Automator using bash mouse clicks x,y coordinates. However, because this is method requires pixel coordinates it only works on one of my machines because the others do not have the same display size. As such this solution is lacking.
    What i'm looking for (and struggling to find) is means of viewing any running application's action as an equivalent text command. This is a built in functionality in most 3D modeling programs like Maya, Blender, etc. (which is where I first started using this method of automating tedious processes). Having the ability to view any button click or menu selection as a text based command, makes sorting out the proper syntax to create a proper script infinity easier.
    As an example, I want to be shown something like:
    tell application "Finder" to launch "Safari"      When clicking on the safari dock icon
    tell application "Safari" to open location "http://www.google.com/"     When typing in the URL and pressing enter
    tell application "System Events" to keystroke "apple support"    When typing the text string into google's search bar
    Though the above example is applescript, I'll take any language if it gets me heading int he right direction.  :-)
    Side note though Automator's 'watch me' do is great for simple tasks, I found it to be unreliable given the number of steps I have to deal with. 

    You might check with your apps' developers to see if they support AppleScript, Automator, or other scripting languages that might be used for this. Some programs have built-in macro and scripting options that can be set up in a built-in editor or run in a built-in command-line environment of sorts, while others supply libraries for external scripting with AppleScript and others.
    As for live tracing of a program's commands, most that you use will be coded in a low level language like C, C++, Java, or Objective-C, which are compiled and run in binary machine code as opposed to an interpreted language (one that does not need compiling to run), as is the case with most scripting languages (shell scripts, AppleScript, Matlab, etc.).
    For the most part, the only options you have for "tracing" a program's functions are to monitor output that it might log to the console. You can see this by opening the console, but the output here is diagnostic in nature and is programmatically limited to what the programmers have intended be output (ie, things like warnings and errors, as opposed to every action the program is taking). You can also use the Terminal to directly launch a program's executable so it is hosted in the Terminal shell. This will give you direct access to all of the program's output, as opposed to that only intended for logging in the Console, but it is still not the same as a full output of the commands and routines the program is performing.
    Some of Apple's developer tools can allow you to better monitor a program's functions, but these are intended for developers, and have some requirements, and will not allow you to use any results for productivity automation.

  • PS3 droplet called from command line in XP reads in files but does not execute action

    Hello.
    I am a researcher interested in anxiety disorders in young children. As part of a functional magnetic resonace brain imaging study we need to compare children's responses to familiar and unfamiliar faces. The latter are no problem, but for the former we need to take pictures of the children's mothers and process them "on the fly" so that they can be incorporated into stimulus sets presented in the MRI machine (otherwise known as the "magnet").
    For presentation in the magnet, the images have to be in a particular format. I have created an action that produces the appropriate format, and a PS3 droplet that behaves appropriately (outputs correctly modified files to the stated address) when a Windows XP (SP3) folder is dropped on it.
    However, I need to automate the procedure further because it will be executed by individuals with little or no understanding of PS etc.
    It occurred to me that I could call my droplet from the XP command line with the folder containing the relevant files as an argument (and then I would be able to incorporate this function into an overall control program).
    However, I have found that this approach loads the relevant files into CS3, but that the actions don't run.
    I would very much appreciate any help with this problem.
    Thank you.
    Adrian Angold.

    A command line script might work, but would lack a user interface. Error
    processing and logging capabilities would also be limited.
    I would consider writing a small application in a language such as Visual
    Basic or C# that uses Photoshop's automation interface. The automation SDK
    is provided on the Photoshop DvD.

  • Tiger Server: Default MySQL works for phpMyAdmin but not command line ? ? ?

    Greetings all,
    I followed the excellent instructions at
    http://discussions.apple.com/thread.jspa?threadID=132783&tstart=0
    on upgrading PHP to version 5 and getting (the preinstalled) MySQL setup with phpMyAdmin
    I can connect through the phpMyAdmin, create new dbs, etc. Problem is that now I CAN'T connect from the command line. (I originally set my new root password from the command line and that's the last time I could connect from there!
    Now I get the dreaded ERROR 2002 when I attempt:
    /usr/bin/mysql -h localhost -u root -p
    If I use the IP address or hostname instead of "localhost" (after -h) I get a ERROR 2003. Dropping the -h and hostname from the line above still gets me a ERROR 2002.
    My phpMyAdmin config is a connect type "TCP" not socket, which might be one reason it works and the command line doesn't, but I still don't know where I've gone wrong.
    My /var/mysql/* is all owned by mysql and group www.
    I'm finding lots of people asking about the ERROR 2002, but not finding any solutions (particularly for Tiger Server). I'd prefer to use the preinstalled MySQL to installing a new installation (the thread referenced above says upgrading or removing the MySQL installation is too hard to do) and there has GOT to be a reasonable explanation for why it works with phpMyAdmin, but not the command line.
    Thanks in advance for any replies!
    Many   Mac OS X (10.4.3)  

    You know what? I think when I started mysql_safe, I did it with sudo. Maybe that is my problem?
    If so, what user do I want to start it as? I've seen one suggestion of doing this:
    ./bin/mysqld_safe --user=mysql &

  • Command line with templet?  Wan't a "Job action" to upload to Youtube.

    I'm looking for a automated way to upload to Youtube. We now have job actions in compressor that will do this but it's not stored in a "droplet". Is there a way from the command line to do this? I'm hoping to create a watch folder that will trip a script that will add the file and upload all in one.
    Can a templet be used in a command line maybe?
    I also have Final Cut server if that could help.

    So either install and configure the
    Python YouTube API
    or
    the Ruby "youtube_g" RubyGem
    Once installed if you can write a script to have Final Cut Server upload stuff to YouTube.
    Or you could write Compressor script to do this as well.
    Hope this helps.
    Nicholas Stokes
    XPlatform Consulting

  • How to reset the network IP address from terminal/command line in Mac OSX?

    Do anyone knows how to set the network IP address from terminal/command line in Mac OS X?

    how about a GUI, ever heard of a GUI? it's this really neat thing, where you don't have to worry about remembering long strings of text to do something. Mac OS X actually has a rather decent one (that was sarcasm by the way, Mac is the best) you could have it done in like 30 sec, if you use the network pane of system preferences.

  • Running the Archiving actions through the Command Line

    Hi,
    I am not able to import and export archives using command line tools. I want to directly transfer the archive and don’t want to use a shared location. I have created the scripts that I need to run. For that I have created a sequence of steps that needs to be followed. I have mentioned the steps and the command file that I run for each step.
    1)     Created a target archive on the target server and set the IsTargetable
    <?hda version="10.1.3.3.3 (080807)" jcharset=UTF8 encoding=utf-8?>
    @Properties LocalData
    IdcService=ADD_ARCHIVE
    IDC_Name=CS98310
    aArchiveName=TargetArchive
    aIsTargetable=1
    aArchiveDescription=This is an target archive
    aCopyWebDocuments=1
    @end
    2)     Created a source archive on the source server and set the target archive for this source archive as the target archive created in step 1.
    <?hda version="10.1.3.3.3 (080807)" jcharset=UTF8 encoding=utf-8?>
    @Properties LocalData
    IdcService=ADD_ARCHIVE
    IDC_Name=idc
    aArchiveName=SourceArchive
    aArchiveDescription=This is an source archive
    aCopyWebDocuments=1
    aTargetArchive=CS98310/TargetArchive
    aIsTargetable=0
    aExportQuery=Standard Query     ValuePanel      UseExportDate 0     AllowExportPublished 0     AllRevisions 1     LatestRevisions 0     NotLatestRevisions 0     MostRecentMatching 0     CurrentIndex 0     Clauses dDocName:sqlEq: 20     CustomQuery dDocName%=%'20'     IsCustom 0
    aIsAutomatedTransfer=0
    @end
    3)     Create a query for the source archive to select the content
    aExportQuery=Standard Query     ValuePanel      UseExportDate 0     AllowExportPublished 0     AllRevisions 1     LatestRevisions 0     NotLatestRevisions 0     MostRecentMatching 0     CurrentIndex 0     Clauses dDocName:sqlEq:20     CustomQuery dDocName%=%'20'     IsCustom 0
    (This is added in the previous step)
    4)     Export the source archive on the source server
    @Properties LocalData
    IdcService=EXPORT_ARCHIVE
    aArchiveName=SourceArchive
    IDC_Name=idc
    dataSource=RevisionIDs
    @end
    5)     Transfer the source archive to the target archive from the source server
    @Properties LocalData
    IdcService=TRANSFER_ARCHIVE
    aArchiveName=SourceArchive
    IDC_Name=idc
    @end
    6)     Import the target archive on the target server
    @Properties LocalData
    IdcService=IMPORT_ARCHIVE
    aArchiveName=TargetArchive
    IDC_Name=idc
    aImportDocuments=true
    @end
    The issue comes while creating the archive. I am not able to set the parameters “aIsTargetable” for the target archive and “aExportQuery and aTargetArchive” for the source archive.
    Now I create the archive with the archiver utility and tried running the commands (from step 3), but still it fails in the transfer command. The error comes that “aTargetArchive” parameter cannot be found. Now if I do the entire process through the Archiver Tool, its works fine and I am able to view the documents on the target server. I am not able to understand the reason. Is there a problem in the Command Files?
    Also I want to check if I can automate it without deleting the batch files and their associated content file.
    Thanks,
    Noel

    About dbms_output the answer from Roberto is correct.
    About other things see How to view and set current directory to run a script in sql plus.

  • Command line java 7 on osx 10.9?

    I've installed Java 7 Update 51.pkg on my Mac, but in terminal, "java -version" reports
    java version "1.6.0_65"
    Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
    Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
    My jar requires 64-bit 1.7. How do I get the command line to recognise the right version of java?

    Contact http://www.java.com/
    if you are having difficulty getting it to recognize the correct Java.  I can also ask the thread be redirected to the Developer forum if you are trying to develop code for it.

  • Installing OSX tiger on cleaned out used Mac book Pro

    Hi all
    I have a universal OSX Tiger install Disc and was wondering if I can install it into a used Macbook Pro which has been wiped clean. Thanks for your help
    Web dude

    If you mean a retail disk (black with a silver X on it), then no. The retail DVD is for PowerPC only. You can't install it on an Intel based Macbook Pro.

  • Install certificate via command line utilities

    Hello there,
    I'd like to install a certificate to an iPad via some sort of Configurator or OSX command line interface. The ideal situation is one in which the user has to make no interactions with the device and the device is not restarted or changed in any way aside from having new certificate. I attempted to use the Prepare feature of Configurator but it is too intrusive: the device is unusable for ~10 minutes, a new version of iOS is installed etc. I just want to do one action: install the certificate.
    Here is a stackoverflow post where you can see I've also been polling that community and for some added detail to my question: http://stackoverflow.com/questions/25207374/install-certificate-to-ipad-via-osx- command-line
    It's also got a 50 rep bounty so if you're a user, answer there as well.
    Thanks for your help,
    - Reuben

    As long as you're using TCP/IP (LPR or IPP or HP Jetdirect {port 9100}), the different subnets issue is all in your switching/routing equipment setup.
    The easiest way to clone printer setups is to copy /etc/cups/cupsd.conf and /etc/cups/ppd to each computer.

Maybe you are looking for