Find the answer to your Linux question:
Results 1 to 5 of 5
How can I stop/disable the unwanted messages/quotes that are displayed every time a new terminal session is opened in Slack 11 ???? Thanks Tes in Atlanta...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2006
    Posts
    11

    session messages


    How can I stop/disable the unwanted messages/quotes that are displayed every time a new terminal session is opened in Slack 11 ????

    Thanks

    Tes in Atlanta

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    open /etc/profile file and look for commands ( continuous ) 'echo; fortune; echo'.
    delete these or put '#' sign before the line.



    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Apr 2006
    Posts
    11
    Casper
    Thanks for the pointer to my /etc/profile... There was no reference to "fortune" anywhere but after some cut & try, I eliminated the messages by commenting the following. Like so much of Linux, I haven't the foggiest idea what those lines did but the messages have disappeared.


    # Append any additional sh scripts found in /etc/profile.d/:
    #for profile_script in /etc/profile.d/*.sh ; do
    # if [ -x $profile_script ]; then
    # . $profile_script
    # fi
    #done#!/bin/csh
    #unset profile_script




    Thanks again

    Ted in Atlanta

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    # Append any additional sh scripts found in /etc/profile.d/:
    #for profile_script in /etc/profile.d/*.sh ; do
    # if [ -x $profile_script ]; then
    # . $profile_script
    # fi
    #done#!/bin/csh
    #unset profile_script
    this will stop execution of all the scripts in profile.d folder. some scripts are very useful and necessary for proper working of shell. open /etc/profile.d folder and look for fortune script. move it somewhere else.




    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Apr 2006
    Posts
    11
    Casper

    You're right. I suspected I went too far by stopping the execution of the guys in profile,d......
    although I hadn't run into any discernable problems.

    I ended up by undoing my original commenting and going into profile.d and commenting the
    contents of the "fortune cookie" nonsense...."bsd-games-login-fortune.sh"

    Again... thanks for the pointers...

    Ted in Atlanta

Posting Permissions

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