Ping from cron not having same effect as ping from console

linux

    Next

  • 1. about iptables
    hi!! My problem is i want to have one real ip. i want to re- direct all my traffic comming on port 22 to 192.168.1.202 and trafic for port 21 to 192.168.1.203 where both the machines are within lan and on server i am using squid. Pleas help and if possible provide the iptable rule for this purpose right now i am using but it is not working tables -t nat -A PREROUTING -i eth1 -p udp --dport 21 -j DNAT --to-destination 192.168.1.203 plz help! Junaid
  • 2. how to implement spf algorithm(dijikstra's or bellman ford) in networks?
    hi experts, How to implement the spf algorithm in a network environment? how to code it in C ?(on linux). I just need the steps that we have to follow for coding it. pleeze help thanking u in advance manu
  • 3. help on broadcast data lost in linux tcp/ip stack
    i have a server, which broadcast data to a client. in the client, there're two processes waiting on the same port, with SO_REUSEADDR set, receiving the data comes from server. everytime one client send a request to the server, it broadcasts at the most 128KB data. after the client has received all the data, it sends the next request. the two machine are equiped with gigabit ethernet, 1GB memory and 1.6GHz P4. the client's receiving buffer is set to 20MB by setsockopt(), i think it 's large enough. what happens strangely is (somtines) when one process successfully receives the packet, but the anoter not. and the value of InErrors in /proc/net/snmp increasing greatly everytime the processes are run. i have google the related question, some one said that, packet will loss intra-stack. is there some method to handle this. thanks in advance.
  • 4. Strange problems with ftp
    Something strange happens... I have found a strange behaviour of Linux when sending a file via FTP. I am managing a web site, hosted on a WIndows machine, IIS server. I use Linux at home, and send files to the server via Gftp or IglooFTP-Pro. The problem is that if I have a file, say Pippo_Pippo.php, and later I send pippo_pippo.php, when this file arrives to the server, it changes in Pippo_Pippo.php, so, the old file Pippo_Pippo.php changes to the newly sent file and pippo_pippo.php is lost. This is really strange for I didn't notice this problem before a week ago, when I had correctly sent both Pippo_Pippo.php and pippo_pippo.php, without problems. And still on the server are files with the same name but different in letter case, like Change_Message.php and change_message.php. But now, if I try to resend them, they change. Has anyone had this problem before? Thanks in advance Francesco

Ping from cron not having same effect as ping from console

Postby dean_w_schulze » Thu, 26 Feb 2004 01:18:17 GMT

I'm running a RedHat Enterprise 2.1 server as a group development
platform.  We're having some network problems which are being worked
on, but right now I need a workaround.  The problem is that this
server drops off of the network a couple of times a day.  I've found
that if I just ping another server from that server it comes back on
the network, everybody can see it and everything is fine.

To keep the server on the network I set up a cron job to ping another
server every two minutes.  I can see this ping running every two
minutes with "ps -e | grep ping".  However, the machine still drops
off of the network.  When the server drops off of the network I wait
until I see the cron ping as above and then verify that it is still
off of the network.  So the cron ping doesn't get the machine back on
the network.  Then I do a ping from a console and the server comes
back on the network.

For some reason the cron ping doesn't have the same effect that a ping
from the console does.  The crontab ping entry is by the same user
that I am logged in as when I do the ping from the console.

Anyone have any suggestions?  Why does a ping from the console have a
different effect than a ping from cron.

Re: Ping from cron not having same effect as ping from console

Postby Ken » Thu, 26 Feb 2004 04:58:51 GMT

Hi Dean -

On 24 Feb 2004 08:18:17 -0800,  XXXX@XXXXX.COM  (Dean Schulze)




I just set up my first cron stuff last night and found that a command
that worked from the console and wasn't working from cron was because
the command couldn't be found.

I had to add PATH=[path directories] to the crontab file.  Apparently
without that the path is empty.  As an alternative, you could put in
the full path with the ping command, e.g. /bin/ping [ping parameters]
(or whatever directory is correct for ping on your system).

This may not be your problem, but it's something to check.

-- 
Ken
 http://www.**--****.com/ 

Re: Ping from cron not having same effect as ping from console

Postby Brendon Caligari » Thu, 26 Feb 2004 06:10:30 GMT







I prefer fping ( http://www.**--****.com/ ) for scheduled / scripted stuff.

However, to me what you're saying sounds more like a network switch / mac
address / arp issue.  Try changing the port on the switch to which the
server is connected.

Brendon
++++




Similar Threads:

1.Ping 224.0.0.2 ping: sendmsg: Operation not permitted

When I try: ping 224.0.0.2
I receive: ping: sendmsg: Operation not permitted
Does anyone know a possible reason for this behaviour?
I'm using Ubuntu 5.10 on switched LAN. Is it possible that my LAN
router doesn't support multicast?

-- mario

2.Some services working but can't ping (not ping-able)

3.PING Spamless - Mortgage spammer having website difficulties...

alt, < XXXX@XXXXX.COM > wrote:


> I should just make it a policy to ignore anything from anon-remailers
> like google and nym.alias.net.

*blink*

"anon-remailers like google"?

User-Agent: KNode/0.7.7

BWHAHAHAHAHAHAHAHAHA! Linux makes you fucking stupid. 

4.ICMP ping effecting network flow?

Everyone,

I was told by someone at a systems conference about 10 years ago that if 
you ping a server over the Internet while downloading a file from it, 
your download will take place quicker.  I thought it was bogus then and 
still kind of lean towards that.  I see no difference from some simple 
tests I've tried.  But, perhaps there's something to do with a common 
design of routers and traffic flows that I just don't get.  The guy who 
told me got a knowing nod from someone else and neither were in a 
position to just be pulling legs.  Were they both wrong and just trying 
to sound smart?  Any (real) info would be much appreciated.  It's 
tickled the back of my mind for a long time. :)


Roy

5.[CORRECTION] ICMP ping effecting network flow?

I wrote:

>You might try 'comp.protocols.tcp-ip' or even 'alt.folklore.computers'.
>My news server also lists a 'alt.folklore.internet' which might be useful.

Forget that 'alt.folklore.internet' group - it's not job-site safe, being
overrun with spam and pr0n ads.   Sorry.

        Old guy

6. Windows ping and Linux ping command?

7. Strange network problems - pings to host are fine, pings from host fail

8. HP-UX "ping -i" vs. Linux "ping -I"



Return to linux

 

Who is online

Users browsing this forum: No registered users and 1 guest