Unix script writing needs Portal id

Sort:
You are not authorized to post a reply.
Author
Messages
Greg Moeller
Veteran Member
Posts: 1498
Veteran Member
    I'm trying to develop a Unix script, that I can call from a job name in Portal. (I already know one way of doing that.)
    I'm in need of the logged in persons id though, and am struggling on what I can use to find it out.
    I know that it exists in the LDAP as their cn and also as lwsnssoRMId, but how do I extract one of those values in my shell script?
    I'm a little brain-dead today.
    Greg Moeller
    Veteran Member
    Posts: 1498
    Veteran Member
      When a core user logs in from Portal, will he/she then have environment variables of LOGNAME and LAWENVNAME set that I could pull for my script usage?
      Arvin Ojales
      Advanced Member
      Posts: 24
      Advanced Member
        Help me understand, do you need the user id running the Unix scripts?
        Greg Moeller
        Veteran Member
        Posts: 1498
        Veteran Member
          Yes. I need the person's ID that is currently running the script. The person would be running the script through the Lawson Portal session though, so they are not truly logged on to the machine.
          Arvin Ojales
          Advanced Member
          Posts: 24
          Advanced Member
            If they are batch users, they have ENV identities in RM that are tied to Unix IDs, can you use the variable $USER to identify the user id in the script?

            Arvin Ojales
            Greg Moeller
            Veteran Member
            Posts: 1498
            Veteran Member
              Would I need to extract that variable or would it just be present?
              Thanks much,
              -Greg
              You are not authorized to post a reply.