Running Mac apps from the Unix command line

I hope I don't offend Mac lovers with this question, but as a total Mac newbie, I find Finder cumbersome. This may change as I learn all the features and keyboard shortcuts. but I don't think so. I've been playing with computers for 40 years and Unix for 30 and I know what I like. I like a command line interface, and prefer to avoid the point and squint interface to the extent possible.
I'd prefer to run everything from the shell, and not finder. So to run safari, I'd like to do something intuitive (to me, at least) like type ...
bash# safari
... instead of marching around in Finder or using the dock and the mouse.
Can any of you Mac hackers give an old Unix hacker a pointer to a clue?

Yes, I'm way too cheap to buy the book. I can't imagine how much I've saved over the years, always being way too cheap to buy the book. Easily enough to pay for the spiffy new computer.
No Windoze experience? You may think you do, but really, you don't know how lucky you are. My Vaxen ran 4.1 BSD though 4.3 BSD. I've played with a lot of flavors of unix. My favorite flavor in recent years has been FreeBSD, so I began paying close attention to the Mac since OS X.
X11 and Xcode were the first things I installed. I've been poking around, reading the docs, and getting a better handle on it all. I've only scratched the surface of the stuff on your pages, and it's been most helpful. There's good stuff there for unix newbies too.
If it were not for Jerry Garcia, I probably never would have had the stones to open my mouth in front of a microphone.

Similar Messages

  • Unable to run reports from the unix command line

    hi
    all of a sudden i am unable to run reports ( on App server 10g) either from the unix scripts or from the unix command line. But i can run them from the forms.
    Any one have any idead about this.
    Thank you

    thanks all for replying
    i have set the env variables for the session and it worked. Looks like i have to set the oracle_home and ld_library_path every time ( opening a new putty session) i call sqlldr.
    But in a whole i am trying to run sql loader from the forms. Right now we have Oracle app server 10g which forms 10g version. As oracle app server 10g didnt come with sqlldr, we are copied the sqlldr of database on to app server with different home. after this we can run sqlldr ( on app server ) from unix scripts but not from Forms. Then we opened a qurey with oracle about app server 10g not commig with sqlldr and its remedy . But they said that they dont have specific remedy for that and suggested the same what we did.
    So we came up with java package which does the same funtion as host command and trying to run sqlldr which is on the database( ie replacing the host command in the forms with the database funtion). By using that funtion i am able to run the sqlldr from sql plus but not from forms. I couldnt easily debug it as i wont through any error messages.
    Any one have any idea of this ...
    Thank you

  • How can I import eex files into Applications EUL from the unix command line

    How can I import *.eex and *.dis files into an Applications EUL from the unix command line?
    Thanks

    Hi
    The simple answer is you either have to use the client tool DIS51ADM to import files using the command line (Discoverer Admin is a windows only client tool), or the Java command line which needs a browser.
    In theory if you have a browser running on your Unix box you may be able to use the Java command line to make this work.
    Best wishes
    Michael

  • Running class files from the windows command line...

    Hello Everyone,
    My instructor showed us a way to run class files from the windows command line. However every time I try to run the class file from the command line using a command like: java CruiseHelper.class
    I get an error that states "Exception in thread "main" java.lang.NoClassDefFoundError: CruiseHelper/class"

    Hello Everyone,
    My instructor showed us a way to run class files from
    the windows command line. However every time I try
    to run the class file from the command line using a
    command like: java CruiseHelper.class
    I get an error that states "Exception in thread
    "main" java.lang.NoClassDefFoundError:
    CruiseHelper/class"Classes are not file names. You don't have a class named "CruiseHelper.class", that's a file name. The class name is just CruiseHelper (if you have no package statement in it).
    So,
    java -classpath . CruiseHelper

  • How to compile an .air app from the ADT command line?

    Hi,
    I would like to compile an .air app from the ADT command line.
    Does anybody have an example?
    I don't know how to add the AIR SDK path and a folder to it.
    Is there a generator for the command line availabble?
    Thanks

    Correction: it seems that Applescripts and some similar scripts can be called from the command line using "osascript scriptname". I don't speak automator but you might like to try it. osascript seems to come with severe limitations though, for instance it doesn't allow user interaction such as dialogue boxes.

  • How to Invoke tasks created in FrameMaker Publishing Server from the Windows command line

    Hi All ,
    i would like to know how can we Invoke tasks and schedules created in FrameMaker Publishing Server from the Windows command line.
    we used publishing server mainly to convert Frame maker files into PDF and that should be do progarmatically without manual intervention on Demand.
    so could you please let us know how can i invoke rthe task creted to convert FM file to PDF in FrameMaker Publishing Server from the Windows command line.
    please let me know the command to execute .
    thank you and waiting for valuable response.
    best regards
    Ramesh babu

    Please see http://blogs.adobe.com/techcomm/2011/03/adobe-framemaker-server-10-and-its-command-line-ca pability.html for the same.
    Harish Dhawan

  • What is the Unix command line command to reformat the internal 3 tera fusion drive in my 5k retina 27 iMac ?

    there seems to be problems with Yosemite and boot camp assistant
    i'm cross posting this to the iMac forum but I spent hours online with apple tech today and none of the several foks I talked to there had even seen a 5k 27" yet and my call back from Cupertino and engineering is no till tomorrow so I thought I should post here too
    MMy bto 5k shipped from China sunday night and arrived in Maine this morning.... Amazing when you think about it for a bto
    iinstallation and set up we're going fine and I started up boot camp assistant to create  a temp boot camp while I wait for my thunder bay 4 box to take the drives for my old Mac pro when boot camp will have a1 tera SSD all to itself....
    so carved off a 700 gig boot camp partition which the assistant formatted fat I then plugged is the lighting to FW adapter in a LaCie 2 tera fw 800 drive to act as a bridge to my LaCie DVD burner which uses the old fw400 cables and inserted my new shrink wrap win 8.1 retail 64 DVD and up comes the win 8 install in very tiny type in a tiny window which got a bit of a laugh out of me.
    And I go through it to the point of selecting that boot camp partition and then said it could not use a fat partition and I should reformat it from the win 8.1 installer which I did and then it said it could not use and unknown partition so I said great and booted back to 10-10 and the boot camp tool to put things back and it said it could not I then went to disk tools and it also said the  3tera fusion could not be either reformatted or put back to a single partition I was on with tech support where I went up through 4 levels of support due to the 5k bto which most had no knowledge of. We tried the optioncommand r to get to DT and the same problem as did going to reinstall from the net which after a 30 min down load could not reformat either it is now kicked to Cupertino with a call back tomorrow
    ( At this point all I want to do is put the computer back in the condition it was in when i started with a plain Yosemite on an unpartitioned 3 tera fusion... Then deal with boot camp when it can have its own drive)
    am betting it will take a Unix comand line to reformat but be aware there may be boot camp issues with my configuration
    and  any help here will be great fully received

    Try booting into Internet recovery mode, ⌘⌥R, launch Disk Utility to erase the HD. If successful, reinstall the OS. If not, then return it (14 days with no questions asked) and get another machine. Apple sells it and they should know how to fix it.
    27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2

  • Mac Mini Boots to Unix command line

    I've used my Mac Mini for almost two years with no problem. Normally I can figure out what I've done wrong...but not this time. I need some help from the OS X community.
    This morning when I toggled to my Mac Mini from Windows (via a KVM switch - not dual booting) I had my OS X login screen with my username and one other username (Guest, I think). It wouldn't accept my password for my account, and I've never had a "Guest" (or whatever the other name was). In addition three other user accounts were missing (my wife, daughter, and one other). All I knew to do was restart (by turning off the Mac and turning it back on because it wouldn't accept my password).
    When it booted up I had a black screen with the following two lines:
    -sh: /etc/profile: is a directory
    -sh-2.05b#
    The only unusual thing I can think of is that last night I downloaded and installed a 'free' version of DivX (from their web site). I've never had a problem like this before.
    Suggestions? I'm already having withdrawal symptoms from my Mac. Thanks in advance...
    Mac Mini   Mac OS X (10.4.8)   1.42GHz/1GB/80G HD/SD/Bluetooth +AP/56K MDM

    Then, I suspect that the profile file is corrupt. Boot with the install disk, select your language, and, when the menu bar pops up, select Utilities->Terminal. When the Terminal window pops up, type in the following command, and hit the return key:
    cat /Volumes/"name of HD"/etc/profile
    The result should look like this:
    # System-wide .profile for sh(1)
    PATH="/bin:/sbin:/usr/bin:/usr/sbin"
    export PATH
    if [ "${BASH-no}" != "no" ]; then
    [ -r /etc/bashrc ] && . /etc/bashrc
    fi
    If it isn't, then my only suggestion is to reinstall the OS, using the Archive & Install option, saving user and network settings.
    G4 450 MP Gigabit   Mac OS X (10.4.9)  

  • Run a RFC from the UNIX level to test if its up.

    We have some RFC's that must run from specfic servers, I would like to setup a UNIX script to test and see if those are up,   I would like it to just work like pushing the test connection in SM59,   Is there a command to do it?

    Hi,
    Please find a interesting code , i used to check my server connection. may this will help you.
    http://www.saptechies.com/check-if-your-sap-servers-are-alive-from-the-command-prompt-2/

  • Inputting non-visual characters from the shell (command line)

    is it possible to capture user input from the command line (using System.in or any other available method) that contains characters that are not printing characters and are not legal in a java.lang.String? i.e. is it possible to write a program that recognizes the arrows and CTRL, SHIFT, and ALT keys as input without using graphical (Swing or AWT) classes in the program?

    No. Shift, ALT and CTRL are key modifiers. Perhaps JCurses would allow you to check for these modifiers as Swing does.
    Brian

  • How do I initialize a trust database (Security Create Database) in Iplanet6 web server from the Solaris command line?

     

    Hi,
    There is no option to create trust database from command line. You have to do it from GUI only.
    Thanks,
    Daks.

  • CUPS print job options fail when called from lp (UNIX command line)

    Under Leopard this command-line print request fails to respect the specified job options:
    lp -o number-up=2 -o page-border=double <filename>
    Though it worked great in Tiger, the number-up and page-border job options are now disregarded. I have tried lots of things (and wasted lots of paper) such as setting them permanently with lpoptions (and they do appear changed when the lpoptions command is repeated), using lpr instead of lp, reinstalling the printer via the CUPS localhost web interface, enabling non-Bonjour scanning with the hack to the CUPS preference file, deselecting "Last Printer Used" for the default printer in the System Preferences -- nope.
    I have not tried other job options; I assume that whatever is breaking these two is breaking all the others, and even if it isn't, these two are what I want.
    Is something new in Leopard overriding lpoptions job options? How do I make it stop? It is sooooo aggravating when something that used to work fine breaks. The printer is an HP LaserJet 4000N connected by Ethernet and discovered with AppleTalk.
    Thanks for any advice!

    Thanks John, I did search but somehow missed that thread.
    However it did not help. With or without the "-p printername" argument lpoptions does make a persistent change to its own data:
    +$ lpoptions+
    +media=Letter sides=one-sided finishings=3 copies=1 job-hold-until=no-hold job-priority=50 number-up=2 auth-info-required=none job-sheets=none,none printer-info=Barrow printer-is-accepting-jobs=1 printer-is-shared=0 printer-location='Local Zone' printer-make-and-model='HP LaserJet 4000 Series' printer-state=3 printer-state-change-time=1209495301 printer-state-reasons=none printer-type=2134228 page-border=double+
    You can see that the printer "Barrow" has remembered "number-up=2" and "page-border=double". Regardless if I give any of these commands:
    +lpr <filename>+
    +lpr -P Barrow <filename>+
    +lp <filename>+
    +lp -d Barrow <filename>+
    none of them show the results of these option settings (and somewhere in the forest another tree is cut down).

  • How do I generate PDF and CHM files from the a command line in windows?

    I am trying to set up a PC to build some documents during the night. I was looking for a way to get framemaker to generate PDF and CHM files via a command line in windows? How is this done with FrameMaker 12
    Thanks for the help
    Alex

    Hi,
    The part with generate a PDF via a jsx seems to work OK, except when FrameMaker decides that it will not work anymore. I must say I am not impressed with the stabillity of FrameMaker 12, there is room for a lot of improvement!.
    I have given up on how to figure out how to get FrameMaker 12 to generate chm files via jsx scripts, any pointes are still very welcome.
    The route I have taken is I make a RoboHelp project for each chm files I need to generate. The only thing this RoboHelp project contains is a link to the actual FrameMaker project I want to generate a chm file.
    To make the chm I start RoboHelp with a script that
    1) Opens the desired project
    2) Sets the desired output chm files name
    3) Generates the chm file
    4) And finally quits RoboHelp
    Below is a copy of the jsx in case anyone can reuse anything.  And yes parameters are transfered via enviroments variable. I have later learned there is some way to read the parameters given at a command line but this seems to work so I stick to this for now.
    // Get parameters
    var RhProjName = $.getenv("RH_PROJ_NAME");
    var RhChmName = $.getenv("RH_CHM_NAME");
    var RhLogFileName = $.getenv("RH_LOGFILE_NAME");
    var RhLogFile = new File(RhLogFileName);
    RhLogFile.open("w", "TEXT");
    RhLogFile.writeln("RH_PROJ_NAME : ", RhProjName);
    RhLogFile.writeln("RH_CHM_NAME : ", RhChmName);
    doc = RoboHelp.openProject (RhProjName, 1);
    var sslmngr = RoboHelp.project.SSLManager;
    for(var i = 1; i<=sslmngr.count; i++){
      var ssl = sslmngr.item(i);
      if(ssl.name == 'Microsoft HTML Help') {
        // Set the output location and file name
        ssl.setSpecificProperty("DestinationProjectName", RhChmName);
        if (doc.saveAll(true) ) {
          RhLogFile.writeln("saveAll returned TRUE");
        } else {
          RhLogFile.writeln("saveAll returned FALSE");
        if ( ssl.generate() ) {
          RhLogFile.writeln("ssl.generate returned TRUE");
        } else {
          RhLogFile.writeln("ssl.generate returned FALSE");
      } else {
        // alert ("Found " + ssl.name + " dont do anything");
    doc.saveAll(true);
    RhLogFile.close();
    RoboHelp.closeProject();
    RoboHelp.quit();

  • Method to restart Oracle Apps 11i OPP via Unix command line

    Hi All,
    Does any one knows if there any way to restart Oracle Apps 11i Output Post Processor (OPP) via the UNIX command line?
    Thanks

    Oracle-User wrote:
    Do you recommend that I set the profile option Concurrent: OPP Response Timeout to a higher value instead of increasing OPP Processes from 1 to 2? Yes.
    I'm thinking that increasing OPP Response Timeout to a higher value will not solve our issue as it seems that once we get our first OPP Timeout error, all of the requests that need the OPP fail. We've had this occur on a Saturday, which is a day where the volume of jobs that need the OPP is very low. The error you are getting is related to the timeout and it has nothing to do with the number of OPP processes you are running on. Please set this profile option and check then (after you bounce the OPP).
    Thanks,
    Hussein

  • Using Unix Command Line to force logoff of other users

    Hello - I am the administrator for my family's Mac (OS X - 10.4.8). Four of us in the family share the system. Frequently, my family members forget to logoff. I would like to be able to force them off via the Unix command line. Can't I sign on as root and execute a "forced logoff" type of command?

    Thanks to Mihalis and Jarik for the additional info.
    I'm back now with a question. I have a user named "visitor" logged on. I issued a killall command which killed all the users processes except one. Using /Applications/Activity Monitor.app, I can see the process is "loginwindow" and it is owned by visitor.
    However,
    ps -u visitor
    reveals no running processes. Assuming I only had command-line access (no GUI to use Activity Monitor.app) and had multiple users logged in, how can I discover which loginwindow PID belongs to visitor?
    msq
    EDIT: I went ahead and sudo kill PID the loginwindow process owned by visitor and realized that
    ps -axj | grep visitor
    worked to reveal the loginwindow process owned by visitor. But when I logged visitor in (Fast User Switching) and ran sudo killall the Activity Monitor.app identifies the loginwindow as being owned by root but ps -axj | grep visitor shows the process belonging to visitor.
    Something weird in the depths of Leopard's UNIX land, but I think I can find my way around now.
    Thanks, everyone.
    Message was edited by: mistersquid

Maybe you are looking for

  • Missing igoogle gadgets Firefox ver 9.0.1; but there in IE and Chrome.

    Earlier today all my igoogle gadgets were appearing on Firefox. However this afternoon they are missing. Chrome and IE still display the gadgets. I have tried several fixes (disabling suggested add-ons, extensions, and plug-ins) but problem persists.

  • Issue with utl file

    Hi, I am using UTL file to export records from table with fixed delimiter to a text file. It works fine except that I see an additional character @ at the end of the file in the last line. Can anyone let me know why are we getting this and how can we

  • Problem with version and language

    I bought a standard x1. I mentioned English. I got a diffeent langaue version. I I change the language?

  • Hate/Love yosemite

    I have a Officejet 7401 (28CDAB) HP printer and since I upgraded to Yosemite it won't print,copy or scan, heck the on off light won't even come on but the little moniter light with the HP logo does come on. Is there a way to get this up and running o

  • Service Manager, Configuration Manager and Orchestrator 2012 Database

    Hi,     I have installed Configuration Manger 2012 R2(CM) on a system and i want to install Service Manager 2012 R2(SM), and was wondering if it would be possible to point to the database of CM while installing the SM 2012 R2 or do i need to install