Find the answer to your Linux question:
Results 1 to 3 of 3
I was wondering if there is a way to set the MOTD to pull random quotes from a web site or a file? I would like my MOTD to be ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2010
    Posts
    5

    MOTD Help


    I was wondering if there is a way to set the MOTD to pull random quotes from a web site or a file? I would like my MOTD to be random everytime I login to my server.

  2. #2
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    you would need some script to replace /etc/motd.

    here is a rather simple way of doing it:

    i would suggest you look at the fortune program. it generates random quotes and what not. just have it fire off every minute or so and rewrite /etc/motd
    linux user # 503963

  3. #3
    Just Joined!
    Join Date
    Jul 2010
    Posts
    5
    Thanks! I had to Download the fortune program. Thanks for pointing me in the right direction.

Posting Permissions

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