On Wed, 2009-09-16 at 18:03 +0530, Ansuman Dash wrote:
> if "Request timed out.." not in a:
> print("Ping is not successful.")
> pLogger.info("Ping is not successful.")
This will check for the string "Request timed out.." is NOT in a. Now
when the ping i
Hi,
Thank you very much for the quick response.
Code is working fine.
Now I am trying to validate that the command is executed successfully.
I have written following script to validate the log file which is created
after running the command.
=
Ansuman Dash schrieb:
Hello Everybody,
In Python scripting, how can I execute a command (which can be run from
spcific directory) and then retrieve the result (after executing the
command it give the command is executed successfull or not), so that I
can validate it.
Thanks,
AD
import
Hello Everybody,
In Python scripting, how can I execute a command (which can be run from
spcific directory) and then retrieve the result (after executing the command
it give the command is executed successfull or not), so that I can validate
it.
Thanks,
AD