hie,
to execute commands on the remote server with .profile environment try:
rcmd my_remote_host su - $LOGNAME <<EOF
command1
command2
....
commandx
EOF
Hie,
Wouldn't it be smarter/cleaner to disable whatever services you do not need from the /etc/services. Just recall, we may just not be aware that we need the particular services until you take them off.
If I could get what you would to achieve (not simply disabling to two daemons) maybe I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.