IT Consultant – Java, J2EE, IBM WebSphere Portal, Lotus Notes/Domino
RSS icon Home icon
  • Determine the user who logged on via SSH

    1 Star2 Stars3 Stars4 Stars5 Stars
    Loading...
    Posted on 23 February 2009 Sebastian Thomschke*/?> No comments

    Today we had the need to determine the initial id of a user who logged onto a Linux box via SSH and executed the su command. When the su command is issued the effective user is changed and whoami or id commands will report that new user id instead.

    For anyone who is interested, that is what we came up to put the initial user id into a variable named ${LOGIN_USER}

    LOGIN_USER=`who -m`; LOGIN_USER=${LOGIN_USER%% *}

    or alternatively

    LOGIN_USER=`who -m | cut -d' ' -f1`
  • Lotus Notes’ [Send only] and [Send and File] buttons for Outlook 2003

    (5 votes) 1 Star2 Stars3 Stars4 Stars5 Stars
    Loading...
    Posted on 19 February 2009 Sebastian Thomschke*/?> 24 comments

    You can say what you want about Lotus Notes, if you have used it for a while and switched e.g. to Outlook, you’ll find yourself missing one or the other nifty Notes function.

    Already two of my customers “forced” me to use MS Outlook 2003 and since this isn’t likely to change in the near future, I implemented two of these handy Notes functions for Outlook 2003:

    1. The button [Send only] sends e-mails without storing a copy of it in the local mailbox.
    2. The button [Send and File…] prompts you for the folder where to store the e-mail being send.

    Installation:

    1. Download the Visual Basic module in the favored language.

        Send Mail Macros for MS Outlook 2003 (EN) (4.9 KiB, 3,980 hits)

        Send Mail Macros for MS Outlook 2003 (DE) (5.1 KiB, 2,303 hits)


    2. In Outlook open the Visual Basic editor.
      open VBE from within outlook
    3. Import the Visual Basic module.
      Import the VBE module Select the VBE module The VBE module was imported.
    4. Save the project.
      Save the VBE project
    5. Install the buttons in the toolbar.
      Open the Macros dialog Installing the button [Send and File...] Button [Send and File...] installed Installing the button [Send only] Button [Send only] installed
    6. When composing a new e-mail the additional buttons should appear in the toolbar.
      New buttons in the toolbar
    7. When clicking “Send and File…” the folder dialog is displayed before the e-mail is send.
      Selecting the target folder