Hi,everyone!
It's a problem that the time display of fedora is too small for me.So that I'd like to try xclock.However,I don't know how to run this program automatically as soon as I log in to my system.I got stucked
I've tried to modify the .bashrc file in my home directory.
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
result=`ps -ef|awk '{print $8}'|grep xclock` #check whether the xclock is running,I want only one xclock one time:-)
if [ "$result" = "xclock" ];then
: #I don't know whether it is right to write ':' here.Actually,the system stuck after I input my name and password.
else
xclock
fi