[Solved] Launching Graphical Programs From The Terminal

Occasionally I launch graphical programs from the terminal and they usually spit out what they're doing in the background, I know you can send this output to /dev/null but is there a way to have that is the default setting (ex. not having to type &> /dev/null each time) and then somehow turn console output back on when I want to debug something? I tried creating an alias but that didn't work.
Last edited by brando56894 (2011-07-26 04:17:11)

brando56894 wrote:
I put it in my .bashrc and when I reload .bashrc I get this:
bash: /home/bran/.bashrc: line 12: syntax error near unexpected token `;'
bash: /home/bran/.bashrc: line 12: `no() { "$1"&>/dev/null & ;}'
Remove that '&' and try again. (remember to reload the .bashrc)
jasonwryan wrote:What, exactly, did you put in your .bashrc?
He used your function but with "my" '&' - w/o 'nohup'.
Last edited by karol (2011-07-26 04:25:55)

Similar Messages

  • Adobe Updater requires password when I launch any program from the suite

    It is very annoying, but not a destructive issue.
    When I launch any program from Creative Suite 3 Design Premium (6 programs) the Adobe Updater pops out and asks for a password. I can either provide a password and proceed, or deny the password and still proceed with the program.
    Is there any way to stop the Updater from popping up?
    I have it on my two machines Mac Pro (2x 2.66 GHz, 11GB RAM) and Mac Book Pro (2.33 GHz, 3GB RAM).
    I am sure that there is some settings which I simply overlooked. Can anyone point it to me?
    I would appreciate that. Thanks.
    Jack

    Unfortunately when Adobe products are restored from backup, especial CS4 and especially Mac, it breaks licensing.
    There is a python script included in the license recovery kit that should work if you are familiar with Terminal.
    If not, you must reinstall your CS4 suite.  You don't need to delete your preferences, so it should be the same as before.
    Error "Licensing has stopped working" | Mac OS
    Gene

  • How can i launch application from the terminal in 32-bit mode?

    how can i launch application from the terminal in 32-bit mode?
    everytime i have to check and uncheck the finder's info panel and it's really annoying, thanks!

    ''Courtesy of cor-el''
    https://support.mozilla.com/en-US/questions/823873
    Other users should note that Firefox has public release versions of 64bit only for Mac And Linux; not for Windows, yet.

  • How do I start firefox from the terminal, using a specific proxy configuration, without creating a whole new profile?

    When I use Firefox at work I must use a proxy, however when at home I want to connect with no proxy. I'd like to have two launchers for Firefox, one for work and one for home. To do this I need to configure Firefox from the terminal.
    After searching on the internet the only solution I could find was to launch Firefox with two different profiles, one for work using the proxy, and another for home. However if I do this, my bookmarks and saved passwords will not the same for both profiles.

    Right click on the desktop and choose 'Create Launcher'. There enter the details so start the program directly not via a script. This did the trick for me for another program.

  • Launching External programs from an addon cause Client to stop

    Hi.
    We have an add-on that allow via configuration to launch other programs/files from SAP (Remote desktop, PDF-documents, etc.).
    Launching other processes from an add-on is easy with the System.Diagnostics.Process.Start(file, arguments);
    This has worked since SBO2004A, but since we began working with SBO2005A SP01 launching external programs cause the SAP Client to freeze every 5-10th time or so...
    Nothing except stopping the add-on-process works.
    When the add-on is terminated the Client "Wakes up" to inform that add-on has been disconnected.
    Anyone else have had a similar problem?
    <i>Kind Regards
    Rasmus Wulff Jensen | http://www.b1up.net</i>

    Regarding the thread, I whought about it, but since it is a process.Start, it a whole different process and threads should not have anything to do with it...
    As always, yes I've created a message for this.... And got the normal response from SAP Support "We cant reproduce the issue... please send sample code"... sigh.... Hate random error that can't be reproduced... and sample code is hard to produce when you have created a whole framework above the SDK... I almost never do any "Core" SDK...

  • PE4-Win7: Please run this program from the Administrator account so it can set up your license. Once the license is set up, you can run it from any account.

    Hi,
    I'm using Premiere Elements 4 in Windows 7 (64 bit). When I launch PE I get the following error:
    Please run this program from the Administrator account so it can set up your license. Once the license is set up, you can run it from any account.
    Any idea how to solve it?

    I came across this link online. Please check it out and decide if it will or will not advance your case.
    http://www.howtogeek.com/howto/windows-vista/enable-the-hidden-administrator-account-on-wi ndows-vista/
    ATR

  • How to run a Concurrent Program from the back end?

    Hi,
    How to run a Concurrent Program from the back end?
    Is it Possible to see that Concuurent Request id which we run from the back end, in the front end?
    If yes, then Please Give reply how to write the code
    Thanks in Advance,
    Bharathi.S

    This is documented in Chapter 20 of the Application Developers Guide http://download.oracle.com/docs/cd/B53825_03/current/acrobat/121devg.pdf. These MOS Docs also have some information available
    221542.1 - Sample Code for FND_SUBMIT and FND_REQUEST API's
    235359.1 - How to Launch Planning Data Pull MSCPDP using FND_REQUEST.SUBMIT_REQUEST
    HTH
    Srini

  • Can I run gcc compiled programs in the terminal?

    I compiled a simple C program in the terminal using gcc 4.0 from the Xcode 2.2 distribution. I used gcc a.c at the command line and the compiler produced a.out. When I type a.out at the command line, I get the message
    tcsh: a.out: Command not found.
    Am I missing a step in the comilation phase? Is it possible to run gcc compiled programs in the terminal? I get the same results in the bash shell and when using X11.
    eMac G4   Mac OS X (10.4.6)  

    ./a.out is correct. Your current directory in not in your $PATH. You could add "." to the PATH, but that is considered a security compromise, because an unexpected command could be introduced either maliciously or inadvertently. (I have seen this happen.)

  • So I downloaded the wrong Airplane Mode program for my operating system and I now have AppleScript Error message.  It will not allow me to quit the program.  Also, once that happens how do I remove the program from the computer?

    So I downloaded the wrong Airplane Mode program for my operating system and I now have AppleScript Error message.  It will not allow me to quit the program.  Also, once that happens how do I remove the program from the computer?

    What Airplane Mode program? To stop a running program launch Activity Monitor (in utilities folder) and quit the program from there. To remove the program drag it to the trash or better use the uninstaller that should have come with it.

  • Run a .scpt (AppleScript) from the terminal?

    Is there a way to execute a saved AppleScript (.scpt) from the terminal?
    I have tried *osascript /Users/path/to/script.scpt* and it says "execution error: No user interaction allowed. (-1713)"
    No difference if I use sudo or not.

    You may need to save the script as an app rather than as a compiled script.
    The issue is that if your script includes any user interaction (e.g. the 'display dialog'), then it has to run in the GUI.
    As a .scpt file, the script is technically a document, and that document needs an application, so just opening it normally will launch a script editor.
    Conversely, saving it as an app will allow the app to run standalone, so you can just use the standard open command:
    <pre class=command>open /Users/path/to/script.app</pre>
    You'll still be able to open and edit the script with Script Editor, but the .app has the ability to stand on its own.

  • Mac mini won't visit websites or do ping from the terminal.

    I'm having some issues with my internet connection.
    The Mac mini does have good wireless connection to my router (a Belkin) but most of the time it won't open any websites (or even ping xxx.xxx.xxx.xxx from the terminal). Then suddenly it will and works for some minutes and then it won't again.
    I can connect to my wireless router via 192.168.2.1 and it says the internet connection is on.
    Does anyone have any idea on what the problem can be and perhaps how to solve it?
    The Airport in the Mac mini is a Broadcom BCM43xx 1.0 (5.10.91.27).

    Welcome to the discussion forums!
    During the times that you can't ping xxx.xxx.xxx.xxx, are you able to connect to your wireless router via 192.168.2.1 ?
    If yes, then it seems the difficulty is somewhere between the router, your dsl/cable modem, and your ISP (Internet Service Provider).
    When things are working OK, are you able to ping xxx.xxx.xxx.xxx successfully?

  • Hi there, i've just updated safari 5.0.6 for my macbook pro (os x 10.5.8), but i've not been able to install any programs from the extension gallery. Appreciate any advice?

    Hi there, i've just updated safari 5.0.6 for my macbook pro (os x 10.5.8), but i've not been able to install any programs from the safari extension gallery. Appreciate any advice?

    but i've not been able to install any programs from the safari extension gallery
    In order to use the Safari Extensions Gallery you need to upgrade to Snow Leopard v10.6
    See system requirements here:  http://www.apple.com/safari/download/
    If you want to upgrade to v10.6, make sure your Mac meet's Snow Leopard's - Technical Specifications
    Purchasing available here >  Mac OS X 10.6 Snow Leopard - Apple Store (U.S.)

  • Import and trust a self-signed CA certificate from the Terminal

    Hello there,
    i have a problem: I would like to import and trust a self-signed CA(root) certificate from the Terminal to the System.keychain.
    My request is to create a installation script to install the Cisco AnyConnect VPN Client and the needed certificates.
    For the import i have used the following command:
        sudo security import certificate.cer -k "/Library/Keychain/System.keychain" -A
        The Option "-A" says:
    Allow any application to access the imported key without warning (insecure, not recommended!) <- From the Mac Developer Library
    The command reportet: 1 certificate is importet ... but ... the certificate is not trusted.
    What do i need to do to set this certificate as trustworthy at the terminal?
    Thanks for your help and best regards
    Benjamin
    P.S. The command: sudo security add-trusted-cert -d -r trustRoot -k “/Library/Keychains/System.keychain” “/private/tmp/certs/certname.cer” doen't run, i get an error message. Found on http://derflounder.wordpress.com/2011/03/13/adding-new-trusted-root-certificates -to-system-keychain/

    Hello Linc Davis,
    thanks for your answer and sorry for my mistake, because i had already changed the last argument but for this discussion i had only copy this example.
    But your answer show me the right way, big thanks.
    I had entred the following command (see the last argument):
         sudo security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" "~/Downloads/mycert.cer"
    ... and i get the following message:
        ***Error reading file ~/Downloads/mycert.cer
         Error reading file ~/Downloads/mycert.cer
    Today i changed the last argument to:
         /Users/User/Downloads/mycert.cer
    and its run.
    Many thanks!
    Benjamin

  • New driver install + programs from the

    HiMight sound dumb but.... Im about to do a new fresh install of my X-Fi Xtreme Music and i want all the extra goodies that comes along with the CD, the consoles and such, but i want the newest drivers installed also. How to go about this?Should I install the programs AND the old drivers from the CD first, then un-install just the drivers and after that install the newest drivers?Or should i install the new drivers first and then install the programs from the CD ( and if its possible uncheck driver install there), would this work and is there that kind of option in the install process this way?I would love a quick response

    Anyone who can help me out here? ppllllzzzzz

  • Program  to list all include programs  from the  Sap program list

    My requirement is to display all include programs from the Sap program Table ( D010INC table and TADIR table), From
    here i have to get all include programs.Can anyone give the program code for this requirement

    well, it's your requirement and not ours, so why not try yourself first?

Maybe you are looking for