Friday, December 14, 2012

Linux error "There are stopped jobs"

This error will come when you try to logout or exit from a terminal and there are some tasks which are running in background.$ ping
PING ( 56(84) bytes of data.
64 bytes from ( icmp_req=1 ttl=50 time=61.3 ms
64 bytes from ( icmp_req=2 ttl=50 time=63.2 ms
[1]+  Stopped                 ping$ exit
There are stopped jobs.$ 

If you observe I started a ping program and sent that process to background. And when I try to logout from that terminal I got an error stating that there are still some programs running. To stop this error we have to see if you really like to kill the jobs.

How to kill those jobs?
Execute/press below commands/shortcuts


How to retain job running though you try to logout?
Just press below commands/shortcuts


This will allow us to run the process in background though you try to logout.


Sunday, December 2, 2012

Solution of "No Route to Host error" Issue

No Route to Host error Linux solution

Q. I am seeing an error when trying to connect to a server, but I am able to ping and see other ports open by using telnet command? Is there a solution to resolve this issue?

First of all check what are open ports on that machine

nmap server-ip

Check if your service is running and showing in nmap output.Check if your service is running or not on tha

If your port is not open check your iptables output.

iptables -L

This will show all the rules. You can flush the iptables if you are not much concern about security.

iptables -F

Stop iptables and save iptables

service iptables stop
service iptables save

Perminently off iptables service.

chkconfig iptables off