Hello,
I need help, I have the following which save in the result file ping and telnet:port test.
Basically the script works but I should implement a check on ping and telnet command so that ping has 5 seconds threshold and telnet (more important) 10 seconds. Over that threshold ping and telnet should be interrupted giving a negative answer. Can someone help me?
I have put TMOUT=1800;export TMOUT in the /etc/profile, put it does not work, by the way the root default shell is sh. but I wana every one including root to terminate the session after setting idle for 1800 seconds. thank for the help. (1 Reply)
Hi,
Can someone help me how I can disable telnet timeout? I'm connecting remotely to some machines and after some time my telnet connection was closed. How can I disable this so that I'm always connected to those machines? Thanks! (2 Replies)
Hi,
I have a Sun Ultra 5 desktop with Solaris 8. When I telnet/rlogin into any other host, the connection closes after few hours of inactivity.
I also have another Windows box which I use rarely. But when I telnet/rlogin into the same hosts using putty, the connection stays for days without any... (5 Replies)
is there a way to add a timeout parameter to telnet when connecting to any IP address?
like, if this IP doesn't respond within 10 seconds, abort.
thanks
i'm looking for something like this:
telnet gaggaga.com 443 -t 10 (3 Replies)
Hi,
I have two solaris 9 servers on the same switch,
primary
int0: 10.35.65.51
int1: 10.35.65.53
warm standby
int0: 10.35.65.52
int1: 10.35.65.54
Primary server communicates with the other for db replication on int0 interfaces.
But meanwhile we are using web interface running... (8 Replies)
Hi All Unix Fellows...
Any encounter high ping timeout in AIX Server ? I scheduled the job to ping all the same segments servers all the time for 2 days without terminate. Found sometimes there are time the ping timeout is quite high ie. 10000ms
but most of time is 0ms. what cause this ? is... (2 Replies)
Hi experts:
I want to do below thing with bash
if ping 192.168.0.1 sucussful then do somthing without delay, if ping failed within 20s, then kill ping and exit
not sure this can use "alarm" to do this.
any code will be welcome
Thanks (1 Reply)
Able to ping the server but not able to login through putty it says network timeout
Please assist (3 Replies)
Discussion started by: Vishal_dba
3 Replies
LEARN ABOUT PHP
pg_fetch_row
PG_FETCH_ROW(3)PG_FETCH_ROW(3)pg_fetch_row - Get a row as an enumerated arraySYNOPSIS
array pg_fetch_row (resource $result, [int $row])
DESCRIPTION pg_fetch_row(3) fetches one row of data from the result associated with the specified $result resource.
Note
This function sets NULL fields to the PHP NULL value.
PARAMETERS
o $result
- PostgreSQL query result resource, returned by pg_query(3), pg_query_params(3) or pg_execute(3) (among others).
o $row
- Row number in result to fetch. Rows are numbered from 0 upwards. If omitted or NULL, the next row is fetched.
RETURN VALUES
An array, indexed from 0 upwards, with each value represented as a string. Database NULL values are returned as NULL.
FALSE is returned if $row exceeds the number of rows in the set, there are no more rows, or on any other error.
EXAMPLES
Example #1
pg_fetch_row(3) example
<?php
$conn = pg_pconnect("dbname=publisher");
if (!$conn) {
echo "An error occurred.
";
exit;
}
$result = pg_query($conn, "SELECT author, email FROM authors");
if (!$result) {
echo "An error occurred.
";
exit;
}
while ($row = pg_fetch_row($result)) {
echo "Author: $row[0] E-mail: $row[1]";
echo "<br />
";
}
?>
SEE ALSO pg_query(3), pg_fetch_array(3), pg_fetch_object(3), pg_fetch_result(3).
PHP Documentation Group PG_FETCH_ROW(3)