1825667 Members
4224 Online
109686 Solutions
New Discussion

RedHat 8.0 motd

 
SOLVED
Go to solution
Mark Nagel_1
New Member

RedHat 8.0 motd

I have an executable that shows system load, uptime, and disk usage that I would like to run at login. Can this be executed from the motd file or do I need to add this somewhere else? I added /usr/local/bin/linux_info (linux info is the name of the executable) to the motd file but it just prints /usr/local/bin/linux_info

Any Ideas?
5 REPLIES 5
John Poff
Honored Contributor

Re: RedHat 8.0 motd

Hi,

Probably you'll need to try putting it into your user profile. If you are using the bash shell you can try adding your line to the end of your .bash_profile.

JP
Mark Nagel_1
New Member

Re: RedHat 8.0 motd

I tried this....it did not work
John Poff
Honored Contributor
Solution

Re: RedHat 8.0 motd

Really? What happened? Did you get an error message or did nothing happen?

JP
Mark Nagel_1
New Member

Re: RedHat 8.0 motd

nevermind...it worked once I fixed the typos ;)

Frerk Friedrichsen_1
Occasional Advisor

Re: RedHat 8.0 motd

Hi,

no, you can't run it out the motd file.
The motd is a an simple text file, that is printed out.

You must add the commands in the /etc/profile
or in your personal .profile,.bashrc ...

Add simply:
uptime
df -k
(i added who -a)

best regards
Frerk

hang loose