#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2011
    Posts
    3
    Rep Power
    0

    Setting up a tset environment


    newbie question:

    At work there is an AIX box that uses a different subset of Korn than I installed on Ubuntu.

    How do I go about getting the same AIX environment at home?
    Ubuntu and non-Ubuntu answers welcome. I certainly need the help!


  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2006
    Posts
    2,400
    Rep Power
    1688
    Korn shell should be korn shell - with pretty much all things being equal. Are you sure it's a korn shell difference or the different AIX commands?
    The moon on the one hand, the dawn on the other:
    The moon is my sister, the dawn is my brother.
    The moon on my left and the dawn on my right.
    My brother, good morning: my sister, good night.
    -- Hilaire Belloc
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2011
    Posts
    3
    Rep Power
    0
    Originally Posted by SimonJM
    Korn shell should be korn shell - with pretty much all things being equal. Are you sure it's a korn shell difference or the different AIX commands?
    I am in the ksh and can run find etc....the korn.sh file I ran threw errors. The 'find man' page shows it is a korn command

    I am now guessing that it is ksh88 located at /usr/bin/ksh and not ksh93 that I presumed it to be, in which case I am SOL unless some other shell was put in.

    Getting back to work at the end of the week and will try these tips on determining the version of ksh:

    **blocked by forum**/shell-programming-scripting/104575-ksh88-ksh93.html

    sm
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2006
    Posts
    2,400
    Rep Power
    1688
    I presume korn.sh is something you wrote? What are the errors that are occuring?
    The moon on the one hand, the dawn on the other:
    The moon is my sister, the dawn is my brother.
    The moon on my left and the dawn on my right.
    My brother, good morning: my sister, good night.
    -- Hilaire Belloc
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2011
    Posts
    3
    Rep Power
    0
    thanks SimonJM.....I thought about what you said and did discover that the KSH versions were the same but the AIX command is for find is different

    I had to use find $starpath -name '[aA]pple' to find Apple or apple.

    thanks so much
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2006
    Posts
    2,400
    Rep Power
    1688
    Yes, that can be a swine - you can also, sometimes, get two different veriosn of find (and grep, and a few others) on a server, one being the 'official' version that comes with the OS and, another, which is bundled away in another location and is posix-compliant. They generally behave differently which can cause issues as people often like the posix ones but when using cron, unless they update the PATH their scripts will use the 'official' variant.
    The moon on the one hand, the dawn on the other:
    The moon is my sister, the dawn is my brother.
    The moon on my left and the dawn on my right.
    My brother, good morning: my sister, good night.
    -- Hilaire Belloc

IMN logo majestic logo threadwatch logo seochat tools logo