Help Needed Red Hat Linux

I want to make my Java executables globally available so I don’t have to write

/usr/JDK1.4.2/jSDK1.4.2/bin java

I want it so I can just write java or jar and it will perform the appropriate action I think this is set in either /etc/profile or /etc/bashrc but I don’t know the syntax anyway help me

Cheers in advance

The scoobster

In your profile (.bash_profile depends on the shell but probably bash) put the following line

PATH=$PATH:/usr/JDK1.4.2/jSDK1.4.2/bin

Cheers m8ee your a star

anuvver question

How do I close an sshd connection on the server i.e. a user connects via ssh and I want to boot them off how do I do that?!?!?!?

Originally posted by scoobie
[B]anuvver question

How do I close an sshd connection on the server i.e. a user connects via ssh and I want to boot them off how do I do that?!?!?!? [/B]

Well generally the ssh sesion is owned by root and depropogated to the user level.

here is the shell level for the user from a “ps -ef | grep dshiels”


dshiels   5210  5209  0 11:06 pts/0    00:00:00 -bash
dshiels   5296  5210  0 11:08 pts/0    00:00:00 ps -ef
dshiels   5297  5210  0 11:08 pts/0    00:00:00 -bash

you will note that the top one has the lowest number in the third column. That is the parent proccess for everything else.

a simple run as root command to blow off the user is in this case:

kill -9 5209

the 5209 is the process ID of the parent which in the case of sshd is the parent of the user shell. The shell will die a sudden death. No save no nothng. JUST a brutal plug pull.

kill -9 5210

kills the user shell and will also work in that instance. 5210 is the process ID of the shell itself

Cheers m8ee scarey to think I’m the root and administrator but hey we all got to start somewhere

Thx for the help :slight_smile:

Nuvver Question

Is it possible to broadcast a console message to all people connected no matter how they are connected???

Of course it is NIX!

the write command will do a single user and the wall (write all) will do them all.

check out the man pages.