Scunningham99
Programmer
i am trying to get ping command in script to work. i wish to test the result either 1 or 0 for success.
However whenever i try and put the command in ` ` it does not understand. the host i am trying to ping is called oracle.
neither work
#!/bin/ksh
test `ping oracle`
echo $1
or -----------------------------------------------
#!/bin/ksh
[`ping oracle`]
echo $1
ping oracle works fine, however i want to test he condition. Does anyone know where i am going wrong!!
Any help would be greatly appreciated..
Sy
However whenever i try and put the command in ` ` it does not understand. the host i am trying to ping is called oracle.
neither work
#!/bin/ksh
test `ping oracle`
echo $1
or -----------------------------------------------
#!/bin/ksh
[`ping oracle`]
echo $1
ping oracle works fine, however i want to test he condition. Does anyone know where i am going wrong!!
Any help would be greatly appreciated..
Sy