Results 1 to 5 of 5

Thread: how to launch a (bash) script at user login?

  1. #1
    shadowscheme is offline Project Contributor
    Join Date
    May 2007
    Location
    Italy
    Posts
    10
    Rep Power
    8

    Default how to launch a (bash) script at user login?

    Dear all,

    I'd like to launch a bash script at EVERY user login on Zimbra. I looked in the forum, and found nothing, but perhaps with the wrong keywords?

    can someone help me?

    thank you!!!!

  2. #2
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    A Bash script at server login?

    Are you talking about webmail login? or SSH/tty login?

  3. #3
    shadowscheme is offline Project Contributor
    Join Date
    May 2007
    Location
    Italy
    Posts
    10
    Rep Power
    8

    Default

    well, my idea was on webmail login, I forgot to specify

  4. #4
    Krishopper is offline Dedicated Member
    Join Date
    Dec 2006
    Location
    Minneapolis MN
    Posts
    777
    Rep Power
    9

    Default

    That's an interesting question. What is the goal of running a script at each login?

    I don't believe there is a built-in way with Zimbra, but a fairly easy alternative would be to create a Perl script to monitor/tail the log files (like audit.log) and execute the script in question each time.

    It will take some custom work on your behalf, but it's probably the only option at the moment.

  5. #5
    shadowscheme is offline Project Contributor
    Join Date
    May 2007
    Location
    Italy
    Posts
    10
    Rep Power
    8

    Default

    Krishopper, thank you for your answer

    the aim of the script is to launch a background task (imapsync) in order to synchronize emails on another imap server. My idea was to ´take´ the username and password inserted in Zimbra´s webclient to launch the script.

    Anyway, your idea is quite good, I am trying to modify the login mechanism but I´m also looking for other ways to do that

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 AM
  3. Getting problems in FC4 while instalation
    By kitty_bhoo in forum Installation
    Replies: 13
    Last Post: 09-12-2006, 10:34 PM
  4. Services stopped working
    By lilwong in forum Administrators
    Replies: 4
    Last Post: 08-15-2006, 09:19 AM
  5. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 07:38 PM

Posting Permissions

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