 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
felixc
Joined: 24 Sep 2007 Posts: 20 Country: Hong Kong |
|
Ping command does not work |
|
Hi,
My code runs like this:
 |
 |
Ping ( ip_address, server_alive)
IfThen(server_alive, Done)
Send an email to sys adm
Done:
exit
|
I found that the ping command always gives FALSE to sever_alive boolean. When I pinged the ip_address at command prompt, it gave a successful reply.
Please help.
|
|
Thu Oct 04, 2007 2:16 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7951
|
|
|
|
Try using server name instead of IP address. You may have an issue with data type conversion.
|
|
Thu Oct 04, 2007 3:38 pm |
|
 |
felixc
Joined: 24 Sep 2007 Posts: 20 Country: Hong Kong |
|
|
|
Hi,
I tried but it still does not work. The server name is correct as the code can run in development environment. In the production PC, I can ping the server at command prompt but in script, the ping still returns a failure.
Tks.
|
|
Fri Oct 05, 2007 6:10 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7951
|
|
|
|
I suspect, you got something wrong in the script. Please post the complete script. If you don't want to show the actual server name, replace it with some dummy text.
|
|
Fri Oct 05, 2007 9:05 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|