1831554 Members
3842 Online
110025 Solutions
New Discussion

link to ping

 
SOLVED
Go to solution
Gops_1
Regular Advisor

link to ping

lr-sr-xr-t 1 root sys 14 Feb 25 2004 ping -> /usr/sbin/ping

-r-sr-xr-t 1 root sys sdf 14 Feb 25 2004 ping

In one HP UX server I am seeing the first output and in another HP UX server it like this. Both of them are from /etc/ping.

I want to create a link.

i have tried the command
ln -s /usr/sbin/ping /etc/ping

and

ln -s /etc/png /usr/sbin/ping

Nothing gives me a proper link.

Can i get a proper command

Thanks
gV
6 REPLIES 6
Ivan Krastev
Honored Contributor
Solution

Re: link to ping

To make a symbolic link use:

ln -s sourse target

See man page for more details.

regards,
ivan
OFC_EDM
Respected Contributor

Re: link to ping

You may want to check your /usr/sbin/ping.
Compare with /usr/sbin/ping on your other system.

You may have overwritten it with that 2nd command.

ln -s /etc/png /usr/sbin/ping

The order is

Cheers

The Devil is in the detail.
Yogeeraj_1
Honored Contributor

Re: link to ping

hi gv,

seems like you have "destroyed" your /usr/sbin/ping when you did:
ln -s /etc/png /usr/sbin/ping


You will have to restore the file from backup.


kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
TTr
Honored Contributor

Re: link to ping

Might this be the reason why your ping command hung in

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1225812

That's why I had asked for the output of "ll /usr/sbin/ping"> I don't think the output you showed was from the right server.


Gops_1
Regular Advisor

Re: link to ping

Thanks for all your help, I think ping tool was corrupted for some reason. I copied /usr/sbin/ping from other hpus server. It works well now.

Thanks
gV
Gops_1
Regular Advisor

Re: link to ping

See above comments...