Hi thanx for the suggestion but I dont want to log into the remote host and check that whether its up or not.In a way you can say that I am performing some task with my script without logging into the remote host.Is there some command through which I can found that the remote host is up or not?