Results 1 to 6 of 6
  1. #1
    Join Date
    May 2003
    Posts
    369

    Unanswered: db2 script not found error

    I run a script locally and get the error

    ksh: db2search.ksh: not found.

    However when I run it this way no errors occur
    ./db2search.ksh

    How do I fix this problem?
    We are running DB2 UDB 7.2 on AIX 5.2L

    thanks

    scott

  2. #2
    Join Date
    Nov 2003
    Location
    California,USA
    Posts
    72

    Re: db2 script not found error

    You add the current directory to the $PATH environment variable in the user's ".profile" file.

    Hope this solves your problem...

    ...Ram

  3. #3
    Join Date
    Aug 2001
    Location
    UK
    Posts
    4,650

    Re: db2 script not found error

    export PATH=$PATH:.

    Cheers
    Sathyaram

    Originally posted by nagasurir
    You add the current directory to the $PATH environment variable in the user's ".profile" file.

    Hope this solves your problem...

    ...Ram
    Visit the new-look IDUG Website , register to gain access to the excellent content.

  4. #4
    Join Date
    May 2003
    Posts
    369

    thanks !

    It worked thanks exactly what I needed somehow our AIX profiles were out of sync after the AIX upgrade.

    Scott

  5. #5
    Join Date
    Jul 2003
    Location
    Switzerland, Basle
    Posts
    10

    Re: thanks !

    Originally posted by mixxalot
    It worked thanks exactly what I needed somehow our AIX profiles were out of sync after the AIX upgrade.

    Scott
    there is a security threat with this approach. (adding "current dir" to the search path).

    example
    - put a malicious program called "ls-l" in the /tmp dir
    - wait for a user cd'ing in /tmp and
    forgeting the space in the "ls -l" command
    - ups

    thats the reason why (at least for the root user) "." is not per default in the PATH

  6. #6
    Join Date
    Aug 2001
    Location
    UK
    Posts
    4,650

    Re: thanks !

    For root, it is a high security risk to have . in the PATH ..

    For other users, it depends on the site's security policies ... Most of the places I have worked, do not restrict adding the current directory to the PATH

    HTH

    Sathyaram
    Visit the new-look IDUG Website , register to gain access to the excellent content.

Posting Permissions

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