Sponsored Content
Top Forums UNIX for Advanced & Expert Users CMD to check status of the server using Wget Post 302953640 by manohar2013 on Monday 31st of August 2015 04:19:38 AM
Old 08-31-2015
I didnt get you.....You mean to say that is there any solution for this problem..

how can I use the parameter connect-timeout=seconds in my code...can you please help me out

Last edited by manohar2013; 08-31-2015 at 05:41 AM.. Reason: any aletrnate solution
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

check the status and send an email with status

Hi, We have a text file which has the following data. ISA~00~ ~00~ ~ZZ~VISTN ~ZZ~U1CAD ~051227~183 7~U~00200~000011258~0~P~< GS~FA~EE05J~U1CAD~051227~1831~000011258~X~002002 ST~997~0001 AK1~SH~247 AK2~856~2470001 AK5~A AK2~856~2470002 AK5~A... (3 Replies)
Discussion started by: isingh786
3 Replies

2. Shell Programming and Scripting

How to check the file status in a remote server?

Hi All, Thanks in Advance. My requirement is there are some data files to be updated(some times new files get created) regularly in server A, these files are to be updated to the server B(backup server) by using SCP, I have to write a script for this purpose, before copying the files to server... (3 Replies)
Discussion started by: rajus19
3 Replies

3. Programming

How to check TCP server status

Please tell me according to C/C++ socket programming; how client can check whether server is running or not during TCP communication. (1 Reply)
Discussion started by: mansoorulhaq
1 Replies

4. Shell Programming and Scripting

Using wget and check for non-zero files

Hello, I'm using a shell script containing a wget-command that copies html-files from a website to my ISP-server. I therefore want to check if that file exist and also if the filessize is larger than e.g. 100 bytes. Probably it's done by using something like fileexist and filesize. The wget... (3 Replies)
Discussion started by: weatherboys
3 Replies

5. Shell Programming and Scripting

how to find status of last executed cmd in perl?

In shell we can find the status of last executed command by $? In perl what is the command to find the status of last executed command... Can any one please say??????????????? Thanks, Prabhu (1 Reply)
Discussion started by: prsampath
1 Replies

6. Shell Programming and Scripting

wget to check an URL

I all, I wrote an script which starts a Weblogic server and waits until its loaded to deploy several apps. The way I checked was something like: while ; do wget --spider <URL>:<port>/console > /dev/null 2>&1 rc=$? done This works perfectly because it's an HTML site and when server is... (2 Replies)
Discussion started by: AlbertGM
2 Replies

7. UNIX for Advanced & Expert Users

how to check weblogic server status in Unix machine

Hi All,Could anybody help in suggesting how to check the weblogic server status in a Unix machine? ps -ef |grep "startWeblogic.sh" The above command would give the running status but can anyone throw some light how to check if it is in hung/down state. Thanks (1 Reply)
Discussion started by: RSC1985
1 Replies

8. Shell Programming and Scripting

wsadmin script using jython to check application server status in websphere

Hello All, I need a wsadmin script using jython to monitor server status in websphere. kindly help. (0 Replies)
Discussion started by: coolguyamy
0 Replies

9. UNIX for Dummies Questions & Answers

302 server status code to 301/404 server status code

Hello, Sorry for my english. I have an arcade site. mydomain.com/game.html If database has the game name is good. mydomain.com/fd43f54.html if database has not the game name redirect to mydomain.com by 302 error code. if database has not the game name i want a 301/404 error code and no... (0 Replies)
Discussion started by: hoo
0 Replies

10. Shell Programming and Scripting

Test exit status of last cmd via ssh

see below for a housekeeping script which constructs an ssh cmd using some server/path/sudo info found in $HRINST. the script should hop to each server and if it finds a file to cleanup, moves it to the archive dir if there is nothing to move, it should report so and email the output ... (3 Replies)
Discussion started by: jack.bauer
3 Replies
MEMCACHE.CONNECT(3)							 1						       MEMCACHE.CONNECT(3)

Memcache::connect - Open memcached server connection

SYNOPSIS
bool Memcache::connect (string $host, [int $port], [int $timeout]) DESCRIPTION
Memcache.connect(3) establishes a connection to the memcached server. The connection, which was opened using Memcache.connect(3) will be automatically closed at the end of script execution. Also you can close it with Memcache.close(3). Also you can use memcache_connect(3) function. PARAMETERS
o $host - Point to the host where memcached is listening for connections. This parameter may also specify other transports like unix:///path/to/memcached.sock to use UNIX domain sockets, in this case $port must also be set to 0. o $port - Point to the port where memcached is listening for connections. Set this parameter to 0 when using UNIX domain sockets. Please note: $port defaults to memcache.default_port if not specified. For this reason it is wise to specify the port explicitly in this method call. o $timeout - Value in seconds which will be used for connecting to the daemon. Think twice before changing the default value of 1 second - you can lose all the advantages of caching if your connection is too slow. NOTES
Warning When the $port is unspecified, this method defaults to the value set of the PHP ini directive memcache.default_port If this value was changed elsewhere in your application it might lead to unexpected results: for this reason it is wise to always specify the port explicitly in this method call. RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 Memcache.connect(3) example <?php /* procedural API */ $memcache_obj = memcache_connect('memcache_host', 11211); /* OO API */ $memcache = new Memcache; $memcache->connect('memcache_host', 11211); ?> SEE ALSO
Memcache.pconnect(3), Memcache.close(3). PHP Documentation Group MEMCACHE.CONNECT(3)
All times are GMT -4. The time now is 09:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy