Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2004
    Location
    Long Island
    Posts
    696

    Unanswered: AIX Call script vs. Dot script

    A coworker of mine is having an issue with ksh on AIX whereas a call script ${dir}/script.ksh does not work , but with the addition of a . ${dir}/script.ksh does work. She gets a file not found error when running it as a call script.

    Any ideas. This works fine on HP-UX, but for some reason AIX presents an issue.

    thanks
    Last edited by PMASchmed; 12-29-05 at 16:21.

  2. #2
    Join Date
    Aug 2004
    Posts
    43
    THough I don't have an answer...

    can you tell me what these two different methods of executing a script are?

    The most obivious way that I know of is to give the script executable permission and just run it...

    and I faily remmeber that . command is used to execute the hidden files like .profile?

  3. #3
    Join Date
    Aug 2004
    Location
    Rome, Italy
    Posts
    81
    Hi,
    I think your problem is not connected with the OS. Maybe the administrator of AIX hasn't put the current directory(.) on you PATH environment variable(which is the correct way to set up your session). Putting a dot-slash(./) before the filename to execute it means to search for that script on the current directory. Normally you should execute a script that resides on your current directory like this:

    ./my_script

    But you can execute the script on the same shell where you are without giving the execute permission like this:

    . ./my_script

    bye,
    ducasio

Posting Permissions

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