Terminal Usage - Cannot remove startup command

All, this problem has me really flustered and irritated.
I got tired of always going to Terminal to launch my iReports application, so I decided to right-click on my startup.sh file, and chose "Always use Terminal" to execute. I mean, if I want to double-click on any shell (*.sh) file, just send it to Terminal.
I must have done something else, that I wasn't aware, because now, every time I launch Terminal byb itself, it tries to execute the application.
I don't have ~/.login, but I have looked in the following files for the command that is executed:
~/.profile
/etc/profile
/etc/csh.login
/etc/csh.cshrc
/etc/bashrc
None, of which, has the command: /Applications/iReport/bin/startup.sh
Can anyone give me any guidance or things to look at that I haven't thought of yet? It would be HUGE! I use Terminal ALOT, and it's starting to get very very irritating. I have no idea how I could have done this.
Thanks so much!

Found the problem. Apparently, the setting isn't listed in the Windows Settings preference of Terminal.
However, I saved the Terminal session to a file called terminal.term
I then opened up the file in an editor, and found this:
<pre>
<dict>
<key>WindowSettings</key>
<array>
<dict>
<key>AutoFocus</key>
<string>YES</string>
<key>Autowrap</key>
<string>YES</string>
<key>ExecutionString</key>
<string>/Applications/iReport-3.0.0/bin/startup.sh; exit</string>
</dict>
</array>
</dict>
</pre>
I have no idea why the Execution string does NOT show up in Windows Settings of Terminal Preferences. I manually put "/bin/bash" as my Execution, but apparently it does not update this key?
Anyway, I've removed they string value of the key (made it blank), opened terminal using that file, and then set it as Default.

Similar Messages

  • Terminal Startup Commands

    So I was reading online about how to make Terminal run a command on startup. When entering the commands to make it run a command on the start of Terminal I guess I messed up, now whenever I start Terminal it says [Process Completed] and wont let me enter any more commands. It also does this when I open a new shell. I want to know if there is a way to delete this startup command so Terminal opens as it does out of the box.

    Or this shell script->
    #!/bin/sh
    #showallfiles
    # Description and usage message
    usage () {
    echo "
    Description:
    A simple shell script to reveal/conceal files
    hidden in Mac OS X Finder application.
    showallfiles excepts one option.
    Usage: ${0##*/} [-h|--help] to show this help
    ${0##*/} [on|ON] to show hidden files
    ${0##*/} [off|OFF] to set the default hidden files
    Example: ${0##*/} on
    # Test for more than one option
    if [ $# -gt 1 ]
    then echo "${0##*/} -h to access help"; exit
    fi
    # Get the AppleShowAllFiles status in the domain com.apple.finder.plist or create the default off setting
    STATUS=`defaults read com.apple.finder AppleShowAllFiles 2>/dev/null` || STATUS=`defaults write com.apple.finder AppleShowAllFiles OFF`
    # Function to check AppleShowAllFiles status and change the status if necessary
    finderfilesstatus () {
    if [ "$STATUS" = "$SAF_OPT" ]
    then
    echo "AppleShowAllFiles is set to $SAF_OPT"
    else
    defaults write com.apple.finder AppleShowAllFiles $SAF_OPT
    osascript -e 'tell application "Finder" to quit' -e 'delay 1' -e 'tell application "Finder" to launch'
    fi
    # Parse the command option
    case "$1" in
    '-h'|'--help') usage; exit;;
    'on'|'ON') SAF_OPT="ON"; finderfilesstatus;;
    'off'|'OFF') SAF_OPT="OFF"; finderfilesstatus;;
    *) echo "${0##*/} -h to access help"; exit;;
    esac

  • Cannot remove Mirroring due to Error 3456? SQL 2012

    I have a database that was a mirrored partner and went into suspended state. (Mirror Server was shut down).
    I took the principal database out of mirroring using SSMS. But now I am unable to restore the mirror database so that I can set up the mirroring again.
    When I run ALTER DATABASE X SET PARTNER OFF on the Mirror, SQL logs Error 3456 (Could not redo log record)
    When I run RESTORE on this database from a backup - SQL tells me I cannot because the database is involved in mirroring.
    Is there any other way to drop this database safely? I cannot take it offline and cannot delete it for the same reasons. It seems I cannot remove mirroring on the Mirror, for some reason. Thank you

    Hi SysadminCA,
    In general, when I make SQL Server Mirror database out of mirror session, I use the T-SQL command below.
    ALTER DATABASE DDD SET PARTNER OFF
    RESTORE DATABASE DDD WITH RECOVERY
    When you come across the SQL error 3456, the restore operation was unable to redo the transaction log. This error has placed the database into the SUSPECT state. The primary filegroup, and possibly other filegroups, are suspect and may be damaged. The database
    cannot be recovered during startup of SQL Server and is therefore unavailable.
    Please refer to MSSQLSERVER_3456:
    http://msdn.microsoft.com/en-us/library/ff487115.aspx.
    If you have any feedback on our support, please click
    here.
    Thanks.
    Maggie Luo
    TechNet Community Support

  • Hi, i have tryed to install os x leopard, (its a old imac) , disk utility is greyed out , my install dvd cant find any hdd to install on , my only way to format and configure is through terminal but dont know what commands to execute

    hi, i have tryed to install os x leopard, (its a old imac) , disk utility is greyed out , my install dvd cant find any hdd to install on , my only way to format and configure is through terminal but dont know what commands to execute...
    i tryed diffrent commands such as diskutil eraseDisk JHFS+ Disk1
    diskutil list , wont show up my harddrive , i now its functionally cause it shows up in disk utility with name and i can get info about it , but everything is greyed out can only switch between "erase , partition , recover , Raid ,....
    when i click the apple in the top left corner the whole menu is greyed out... what to do ?  help me please
    Sincerly AppleNoob92
    p.s i have no experience in apple imac's at all never used before, but im kinda windows nerd so computers i understand but this imac make my insane, cant seem to find any solutions anywhere on the WWW....

    Your HD may be crashed, so you probably should use the oringinal install discs to run Apple Hardware Test in extended mode. If error codes appear this confirms a hardware failure. In addition you cannnot repair the HD using Disk Utility from the startup disk, you have to use the origninal Install discs that shipped with the computer or the most up-to-date version of OS X on a disc that you have.

  • Cannot remove the access control entry object on the object because the ACE isn't present

    Hello,
    I am very new to using Powershell and Exchange Management Shell, and have no prior experience using either of these tools. However, the software I am installing requires me to use the EMS tool in order to set certain permissions for a user in Exchange, which
    will be like the admin account. 
    The command I am attempting to run follows as:
    Get-ExchangeServer | Remove-ADPermission -User $newusername -Deny -ExtendedRights Receive-As -Confirm:$False 
    This throws me an error saying:
    cannot remove the access control entry on the object because the ACE isn't present. I've done some research, and have found that this error is quite common, but the solutions do not apply to what I am specifically trying to accomplish. I am simply trying
    to remove the Receive-As permission for the admin user that I just created.
    Once again, I am very new to Exchange and Powershell, but if there is any advice anyone has, it would greatly appreciated.

    I ran this command, and a very long list was displayed, it looks like everything is there.
    The weird thing is that I was able to run a previous command which granted Receive-As access to the user I am creating: 
    Get-ExchangeServer | Add-ADPermission -User $newusername -accessrights GenericRead, GenericWrite -extendedrights Send-As, Receive-As, ms-Exch-Store-Admin -Confirm:$False 
    The description for the commands to run read to 'grant permissions and to revoke denies, if present'. I'm not sure what this means, but the second part of this pertains to the second command that I am having trouble with:
    Get-ExchangeServer | Remove-ADPermission -User $newusername -Deny -ExtendedRights Receive-As -Confirm:$False

  • Startup command starts database but alter database open read only gives error

    Hi,
    I'm having some strange behavior. I've 10.2.0.3 database on windows 2003.
    The startup command starts database without any issues.
    But if I try following it gives error.
    startup mount (successful no errors)
    alter database open read only; gives error that file Mnnnnnn is missing.
    Why this is happening and how to fix it?
    Thanks.

    You really need to show us exactly what Oracle is telling you, using copy and paste, so we can have some clue.  You can hide details like instance and host names if they show up.
    I'm wondering if you had some messed up offline datafile in a tablespace, where Oracle handles it with startup, but gets upset when you try to open read-only.  It's some bizarro sequence of events like: add a datafile to a tablespace, decide that was a mistake, alter it offline, then remove it from the OS without telling Oracle any more about it.  I've come back from vacation to find scenarios like this, it winds up being a time-bomb trying to recreate a standby later.  Or something like that, I could be unremembering some details.

  • Cannot remove warning message from screen

    I work remotely and use Outlook Web App to access my emails.
    Everything works fine other than I always get this warning message:
    which I cannot remove as the 'Continue' option is unresponsive to clicks.
    Anyone have any ideas how to cure this??
    Many thanks.

    The server has a self-signed certificate, which means that the people in charge of it don't know how to do their job. That's not a problem I can help you with. However, the warning dialog should not be unresponsive.
    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • Reset password, still cannot remove admin privledge

    I cannot remove admin privilege from my own account. I've worked through the procedure to Reset Password via the startup disk. However, I am still unable to remove the admin privilege. The account is a generic user account but assigned to a created 'Users' group.
    I'm trying to consolidate all admin privileges to one account, admin, and remove such from any generic user accounts.
    Thank You

    Restart the computer, logged into the new account with admin privileges.
    You go to apple menu, and chose system preferences. System preferences opens, and you click on accounts. Then you click on the lock, and your prompted to type in the password. So you type it in, and click ok. The lock at the bottom right should now be open. Under Other Accounts, click on the other account, the old account, that you don't want to be an admin, And there is a check box labeled "Allow user to Administrate this computer."
    Is the check box checked but grayed out? is it unchecked? do you uncheck it, and but it becomes checked again? Are you getting stuck on a step before this?

  • Cannot choose startup disc with option key

    Hello,
    I have an intel based iMac 24" and I ve installer bootcamp. Eveything is working fine except that I cannot choose the startup disk with the option key when the computer starts.
    I m not sure if this is relativ to bootcamp. I m using basic keyboard (the one that came with the iMac), mighty mouse ...
    I hit option (as soon as the computer restart, I even hit option before starting the computer). And I keep option key down.
    So everytime I need to switch OS by choosing startup disk in the preferences system, rahhh
    Thanks for the help.
    BigM

    Then I can only assume there is a serious problem with your OS X installation or the system firmware because they control the Boot Manager as well as the processing of startup command keystrokes. I would take the computer to an Apple service center for repair because it is still under warranty.
    The only thing you could do is to reinstall OS X which I would recommend you do from scratch.

  • Regarding Oracle Startup command

    Hello All,
    Whenever we execute the startup command in sqlplus ::
    SQL> startup
    ORACLE instance started.
    Total System Global Area 252776588 bytes
    Fixed Size 450700 bytes
    Variable Size 218103808 bytes
    Database Buffers 33554432 bytes
    Redo Buffers 667648 bytes
    Database mounted.
    Database opened.
    SQL>
    Please elaborate what Fixed Size and Variable size contains??
    I mean what components come under Fixed and Variable size?
    Thanks !!
    Regards,
    Avadhut

    Fixed portion
    The size of the fixed portion is constant for a release and a plattform of Oracle, that is, it cannot be changed through any means such as altering the initialization parameters
    Variable portion
    The variable portion is called variable because its size (measured in bytes) can be changed. The variable portion consists of:
    large pool (optional)
    Provides working space for rman (although rman will also work without large pool).
    Shared pool The shared pool is used for objects that are shared among all users. For example: table definitions, PL/SQL definitions, cursors and so on.
    reference:http://www.adp-gmbh.ch/ora/concepts/sga.html

  • Install Oracle 11gR2 RAC : Cannot remove directory bootstrap under /tmp

    Folks,
    Hello. I am installing Oracle 11gR2 RAC using 2 Virtual Machines (rac1 and rac2 whose OS are Oracle Linux 5.6) in VMPlayer and according to the tutorial
    http://appsdbaworkshop.blogspot.com/2011/10/11gr2-rac-on-linux-56-using-vmware.html
    I am installing Grid infrastructure. I am on step 7 of 10 (verify Grid installation enviroment) and get this error:
    "Free Space: Rac2: /tmp
    Cause: Could not determine mount point for location specified.
    Action: Ensure location specified is available.
    Expected value: n/a
    Actual value: n/a "
    In order to fix the above error, I run "cluster verification utility" according to
    http://docs.oracle.com/cd/E14072_01/rac.112/e10717/cvu.htm I run the following command:
    [ora11g@rac1 \]$ /home_grid/runcluvfy.sh stage -pre crsinst -n rac1,rac2 -verbose
    Output:
    /bin/rm: cannot remove directory '/tmp/bootstrap': Operation not permitted
    ./runcluvfy.sh:line 99:/tmp/bootstrap/ouibootstrap.log: permission denied
    From the above output, we can see the directory bootstrap under /tmp causes the problem. The solution is to remove the directory bootstrap. I run the 2 commands:
    [ora11g@rac1 tmp]$ rmdir bootstrap
    Output: Operation not permitted
    [ora11g@rac1 tmp]$ rm -rf bootstrap
    Output: cannot remove bootstrap: Operation not permitted.
    [ora11g@rac2 tmp]$ ls
    Output: there is no 'bootstrap' directory.
    My questions are:
    First, does "cannot remove boostrap in rac1" cause that /tmp in rac2 could not be determine mount point ?
    Second, can any folk help to remove the directory bootstrap under /tmp ?
    Thanks.

    Folks,
    Hello. Thanks a lot for replying. I have just run the 2 commands:
    [root@rac2 \]# chown -R ora11g:dba /u01
    [root@rac2 \]# chmod -R 775 /u01
    ora11g is the user who installs the Grid and /u01 is the directory where Grid is installed and dba is the group.
    I go back to Grid Installer Step 7 of 10 in rac1 and check again and see as below:
    Free Space: Rac2 : /tmp
    Cause: Could not determine mount point for location specified.
    Action: Ensure location specified is available
    Expected Value: n/a
    Actual Value: n/a
    The problem is not solved after run the above 2 commands in rac2.
    In addition, I have run Cluster Verification Utility using the command:
    [ora11g@rac1 grid]./runcluvfy.sh stage -pre crsinst -n rac1,rac2 -r 11gR2 -orainv ora11g -verbose
    Output: All of items for rac2 are passed. There is only one item for rac1 is failed as below:
    Check default user file creation mask:
    NodeName: rac1
    Available: 0002
    Required: 0022
    Comment: failed
    As we see above, the result of CVU command is not the same with Grid Installer step 7 of 10 (Installation Environment Verification):
    CVU command doesn't find /tmp mount point problem for rac2 that Grid Installer does.
    Grid Installer step 7 of 10 doesn't find user file creation mask problem for rac1 that CVU command does.
    I have tried to find out whether creation mask failed for rac1 causes /tmp problem for rac2. I have changed the line "umask 002" to "umask 0022" for rac1 in each of the 3 files below and run CVU command each time for each file:
    rac1:
    /etc/bashrc
    /etc/profile
    /etc/csh.cshrc
    But chang the line "umask 002" to "umask 0022" for rac1 in each of the above 3 files does not solve the problem.
    My questions are:
    First, why is the result of CVU command not the same with that of Grid Installer step 7 of 10 ?
    Second, why change the line "umask 002" to "umask 0022" in 3 files can't solve creation mask problem for rac1 ?
    Third, how to solve /tmp problem for rac2 and creation mask problem for rac1 ?
    Thanks.

  • Downloaded Firefox 4--computer asks over and over to restart, Firefox will not load, cannot remove it!!

    I received an update message after my system had installed the newest Firefox 3. something, approximately 4 days ago. (Today is 3/22, so about 3/17--18) The newest update , when started, took me to the Mozilla homepage, where It was suggested I download and comment on the new Firefox 4---I do not normally do this, but am so impressed with Firefox versus most others, that I did, now, I cannot open Firefox at all, the older version, 3. something, is not in my system, only 4, but my system/PC upon trying to open the new Firefox, prompts me over and over to restart the system, (which I have done 3 times) I figured I would then simply remove it, (Firefox 4) and either try it again, or re-install the newest 3. something---I cannot remove it, even using my anti-virus program to do so, it simply prompts over and over to restart, wether I try to open, remove, or access it in any way---I do not wish to use system restore, but that seems my only option, please help!!!

    I had the same problem and the solution is quite simple:
    - delete all data that has to do with Firefox and Mozilla
    - Reinstall the new version Firefox 4
    You have to make sure that everything is deleted and well yes you will lose your profile data but at least it works again without any problem.

  • How do I remove an old phone number from my macbook imessage. My apple ID does not show the number anymore but I cannot remove it from the imessage accounts. Its driving me mad !

    Can someone please help me to remove an iphone telephone number from my imessage application. I no longer have a phone which I registered on my apple ID as a second phone. I have been on my apple ID and it does not seem to be there but cannot remove it from imessage, which still has it as an option to connect to. I am concerned that someone else who inherite this old phone will see my messages if I accidentally enable it again. I have read and re-read various postings and tried all options given but no luck, the **** thing stays there.....

    Hey Chappers64!
    Here is an article that will help you with this issue:
    iOS: Deactivating iMessage
    http://support.apple.com/kb/ts5185
    If you have already tried these steps, you will want to utilize the information at the end of the article:
    If you can't deactivate iMessage after you perform the steps above or you can't access the iPhone, please contact Apple Support.
    Thanks for coming to the Apple Support Communities!
    Cheers,
    Braden

  • ITunes on my phone is no longer playing some songs, even those I have purchased with my phone.  They will play fine on my pc itunes.  I also cannot remove the audio books that are on my phone and add others and the audio books on my phone will not play.

    I am unable to play new songs purchased on my phone and some old songs on my ipod/iphone.  They all work fine in iTunes on my computer.  I also cannot remove the audiobooks from my phone when I sync even though I have unchecked said books, and I cannot play them either.

    C Mawle wrote:
    Thanks.  I have followed all the instructions as recommended and nothing has worked so it looks like the restore/update may have been interrupted - would loss of internet connection do this?
    Yes it would, possibly even brick it.
    Have successfully connected my ipod nano with iTunes so looks like the device driver is working.
    Can I use my ipod nano USB connector to check?
    It is not much help to you, since the device that you need still not recognized.
    Anyway looks like I may have to swallow the loss of data.  Have set-up a call for tomorrow with Apple support so will wait until after this before doing the factory restore!
    Good luck, but if you expect miracle from that call good luck again.

  • Error message: cannot remove older versions of apple software update

    I recently got a 30 gb ipod, and i cant install itunes 7. I originally tried installing it at first, and it said cannot remove older applications of Apple Software Update. So i installed itunes 4 to put music on my ipod. Then i tried again to install itunes 7 and i keep getting the same error message. Anyone else having this problem? Can anyone give me some suggestions please?

    I would first try and remove both iTunes and Quicktime prior to doing the install of iTunes. The following link will show you how to remove both programs. Make sure you do Step 16 as it is usually Quicktime that causes problems with the upgrade.
    http://docs.info.apple.com/article.html?artnum=93698
    If it will not let you remove the programs, you can try using the Windows Installer Cleanup Utility. The download is about 1/4 of the way down the page. Good luck.
    http://support.microsoft.com/default.aspx?scid=kb;en-us;290301

Maybe you are looking for

  • Search widget/app stopped working

    Nokia 700 / belle 111.030.0609 Search widget/app stopped working. It just crushes now. Worked fine before software upgrade. reinstalling software doesn't help. Solved! Go to Solution.

  • I purchased a used Mac Mini and the previous owner did not remove their information.  How do I do this?

    Operating System is Mavericks and I have no discs, etc.  I've tried to add a new admin and delete the old one but everything is asking me for the original password, which I don't have.

  • APEX Report Formatting in PDF Help

    Hello there, I was asked to create a report in APEX that will generate a report in PDF. The report will have the first column that will print Institution names, the subtotal should print the institution sector (eg: research university or state Univer

  • How to keep links from being broken when moved or file is later split

    Which is the best way to make sure that a link to another pdf file is not broken when a file is emailed or moved to a new location off of the server?  Should you link a destination or use the hyperlink feature? If the links are created and the file t

  • Partitioning Hard Drive

    I just placed a new hard drive into the second bay of my quad G5 and am thinking of partitioning it to hold the OS on one partition, the programs on the second partition, and my files on the third partition, would this be a good idea? Does it make a