AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
Expand all | Collapse all

Making same link point to different physical locations.

  • 1.  Making same link point to different physical locations.

    Posted Tue February 23, 2010 12:36 AM

    Originally posted by: smilie


    I want to achieve something like the following:
    user1 and user2 are users on my server

    create a symlink "/usr/mylink" such that for user1, mylink points to "/var/dest_dir"
    and for user2 "/usr/mylink" points to "/opt/dest_dir"

    Also, user1 and user2 would be active in the system at the same time.

    I guess the answer is going to be no,but however.
    TIA
    #AIX-Forum


  • 2.  Re: Making same link point to different physical locations.

    Posted Tue February 23, 2010 10:53 AM

    Originally posted by: hdkutz


    The answer is No (as you expected).
    What if you try to solve your Problem through an alias?
    User1:
    alias mydir='cd /var/dest'

    User2:
    alias mydir='cd /opt/dest'

    If User1 executes mydir, he lands in /var/dest.
    If User2 executes mydir, he lands in /opt/dest.

    Cheers,
    ku
    #AIX-Forum