in reply to Adress of client opening a Unix session

How's that script executed? Is it listening to a port (in which case, the socket will provide you with the information)? Is it run from a remote shell? Is it executed by means of UUCP? Perhaps it's a CGI program? Or are you using SOAP? Is the script is mailed, and you're using a fancy .forward file? Is your .finger a named pipe?
  • Comment on Re: Adress of client opening a Unix session

Replies are listed 'Best First'.
Re^2: Adress of client opening a Unix session
by kurreburre (Acolyte) on Sep 09, 2004 at 13:01 UTC
    It is executed via a shell, by hand, by an authirized user,
    cheers
      Then 'finger' or 'who' should know. Or you'll have to parse /var/log/wutmpx? yourself.
      finger | grep `ps -o tty -p $$ | tail +2`" " | cut -b 56- | tr -d '()'
      Adjust to fit your implementation of your tools.
        Thank you very much

        Pär