Professional Web Applications Themes

trap: command not found ---> Novice needs help - Sun Solaris

All: If I type in say 'which" at the command prompt as root, I get the following error. trap: command not found export: command not found Missing ] The out put of uname -a is SunOS om 5.8 Generic_108528-23 sun4u sparc SUNW, Ultra1 I am a novice and will appreciate any pointers......

  1. #1

    Default trap: command not found ---> Novice needs help

    All:

    If I type in say 'which" at the command prompt as root, I get the following error.

    trap: command not found
    export: command not found
    Missing ]

    The out put of uname -a is

    SunOS om 5.8 Generic_108528-23 sun4u sparc SUNW, Ultra1

    I am a novice and will appreciate any pointers...
    Vish Guest

  2. #2

    Default Re: trap: command not found ---> Novice needs help

    Vish <com> wrote: 
     
    following error.

    % file /bin/which
    /bin/which: executable /usr/bin/csh script

    Which is a csh script. This one has to read your .cshrc file in case
    you have aliases in there that would affect program invocation.
     

    Looks like you have a .cshrc file with some strange stuff in it to me.
    Hard to tell, though.

    If you don't run csh/tcsh as your shell, you might not have noticed
    before.

    --
    Darren Dunham com
    Unix System Administrator Taos - The SysAdmin Company
    Got some Dr Pepper? San Francisco, CA bay area
    < This line left intentionally blank to confuse you. >
    Darren Guest

  3. #3

    Default Re: trap: command not found ---> Novice needs help

    Vish wrote: 

    Unless you are using csh or tcsh, I highly recommend never to use "which".
    It will give you the wrong answers, it's slow, and it's a hack.

    I recommend using "type" instead. For example:

    $ type ls
    ls is /usr/bin/ls
    $ type pine
    pine is /usr/local/bin/pine
    $ type c
    c is a function
    $ alias asdf=clear
    $ type asdf
    asdf is an alias for clear
    $

    Hope that helps.

    - Logan

    Logan Guest

  4. #4

    Default Re: trap: command not found ---> Novice needs help

    Logan Shaw <rr.com> wrote in message news:<BHpfb.50709$austin.rr.com>... 
    >
    > Unless you are using csh or tcsh, I highly recommend never to use "which".
    > It will give you the wrong answers, it's slow, and it's a hack.
    >
    > I recommend using "type" instead. For example:
    >
    > $ type ls
    > ls is /usr/bin/ls
    > $ type pine
    > pine is /usr/local/bin/pine
    > $ type c
    > c is a function
    > $ alias asdf=clear
    > $ type asdf
    > asdf is an alias for clear
    > $
    >
    > Hope that helps.
    >
    > - Logan[/ref]


    Thanks to all who replied. It was my .cshrc file.
    Vish Guest

Similar Threads

  1. Replies: 2
    Last Post: February 25th, 09:17 AM
  2. sudo command not found in 5.2
    By St. in forum AIX
    Replies: 4
    Last Post: March 5th, 03:42 PM
  3. php & xvfb gives xauth command not found
    By Daniel in forum PHP Development
    Replies: 2
    Last Post: September 29th, 02:19 PM
  4. /bin/bash: cvs: command not found
    By Bill Moseley in forum Debian
    Replies: 1
    Last Post: August 1st, 07:50 PM
  5. Newb Questions #2: Environment Variables for CLI? (I get "command not found" errors )
    By Andreas Janssen in forum Linux Setup, Configuration & Administration
    Replies: 1
    Last Post: July 26th, 07:35 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139