Sponsored Content
Top Forums Shell Programming and Scripting curl: (52) Empty reply from server Post 302672791 by Scott on Tuesday 17th of July 2012 02:49:41 AM
Old 07-17-2012
Perhaps there's an option to increase the connection timeout?

Code:
--connect-timeout <seconds>
              Maximum  time in seconds that you allow the connection to the server to take.  This only limits the con-
              nection phase, once curl has connected this option is of no more use. See also the -m/--max-time option.

              If this option is used several times, the last one will be used.

It usually shouldn't take that long to connect to a server. Perhaps you could test first with a time-limited ping if the server is responding.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Empty reply from server

Hi, I call a .php page using curl (cron setting) It does complete the data processing only 50% and returns an error Empty reply from server. I can't figure it out why do I get that error. # cat /var/log/curl_cron.log % Total % Received % Xferd Average Speed Time Time Time ... (1 Reply)
Discussion started by: shantanuo
1 Replies

2. Shell Programming and Scripting

Use cURL in shell script and get most recent file from remote server using SFTP

I have been trying to implement the following shell script -- sftp to remote server get list of files in the directory sftp get the most recent listed file exit This script will be scheduled to be executed everyday using CRON or CONTROL-M and the need is to have absolutely no human... (7 Replies)
Discussion started by: toobrown1
7 Replies

3. Shell Programming and Scripting

proxy server with wget or cli curl

I'm using a proxy service with an ip address and a port number. How do I use the proxy with wget or cli curl? (1 Reply)
Discussion started by: locoroco
1 Replies

4. Shell Programming and Scripting

Curl ftp upload success but no file exist on the server !!!!

hello, I'm trying to upload a file to this ftp server and others ftp://ftp.byethost12.com as you can see in the output of CURL using the -v option curl reports that the upload succeeded but when i connected to the server with file-zilla there is no file uploaded the same command upload files... (5 Replies)
Discussion started by: laraaj
5 Replies

5. Shell Programming and Scripting

curl script to download files from Secured HTTPS server?

curl -# -v -d "sendusername=myname&password=mypassword&wheretogo=download.php" -L -o test.zip http://www.ims-dm.com/cgi/securedownload.php?p=HIREFTPM\&prodtype=hire/test.zip * About to connect() to www.ims-dm.com port 80 * Trying 209.61.193.139... connected * Connected to www.ims-dm.com... (1 Reply)
Discussion started by: laknar
1 Replies

6. UNIX for Advanced & Expert Users

Empty lines at the end of the payload generated in FTP server

Hi All, I am facing an issue in one of the use cases that I am trying to implement. I am getting a purchase order from one of the trading partners through Oracle B2B. B2B forwards this B2BM (B2B message ) to AIAB2BInterface. From AIAB2BInterface my BPEL process gets invoked, which in turn... (1 Reply)
Discussion started by: mayank2211
1 Replies

7. Shell Programming and Scripting

How can I check, if on remote server directory is empty or have files?

I have a script, which is supposed to run 1 day of the month, connect to remote server certain directory, find files, tar the, and copy find . -ctime -1 | tar -cvf transfer_dmz_start_monthly.tar *${Today}*.*; if then echo "Cannot create a tar file, the terminated... (2 Replies)
Discussion started by: digioleg54
2 Replies

8. Shell Programming and Scripting

Curl - upload multiple attachment arrays to server webpage

The html page of the form data is as below <form name="uploadform" id="uploadform" action="htmlupload.php" enctype="multipart/form-data" method="post"> <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center"> <tr> <td class="tcat"> Upload Files ... (0 Replies)
Discussion started by: jaango123
0 Replies

9. Shell Programming and Scripting

How to perform checksum of a file on remote server using Curl?

Hi, We have an AIX server and have CURL 7.40 installed in it. We are struggling to perform checksum on the file present on the remote server (AWS). We want to validate the checksum on the file pre and post download to make sure that there is no issue with the file. We are writing a shell... (0 Replies)
Discussion started by: Sanjay_13
0 Replies
PMCD_WAIT(1)						      General Commands Manual						      PMCD_WAIT(1)

NAME
pmcd_wait - wait for PMCD to accept client connections SYNOPSIS
$PCP_BINADM_DIR/pmcd_wait [-h host] [-t interval] [-v] DESCRIPTION
pmcd_wait waits for the Performance Metrics Collector Daemon (PMCD) to be running and accepting client connections. Unless directed to another host by the -h option, pmcd_wait will try to contact pmcd(1) on the local host. pmcd_wait will timeout and abandon the attempt to connect to pmcd after 60 seconds. This default timeout interval may be changed using the -t option, where the interval argument follows the syntax described in PCPIntro(1) and in the simplest form may be an unsigned integer (the implied units in this case are seconds). On successful connection to pmcd an exit status of zero is returned. If an error or timeout occurs, then a non-zero exit status is returned as described below. The other options are as follows: -v This option turns the verbose mode on. With the verbose mode off (which is the default), no output will be generated. With verbose mode on, error messages will be output on stderr. PCP ENVIRONMENT
Environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. On each installation, the file /etc/pcp.conf contains the local values for these variables. The $PCP_CONF variable may be used to specify an alternative configura- tion file, as described in pcp.conf(5). SEE ALSO
PCPIntro(1), pmcd(1), pcp.conf(5) and pcp.env(5). DIAGNOSTICS
Error messages will be output to stderr only if the verbose mode is on. The following exit status codes are returned: 0 pmcd_wait was able to successfully connect to pmcd within the timeout period. 1 A usage error occurred, use -v for more details. 2 No connection was made in the timeout interval. This will happen if pmcd is running but takes too long to complete the client con- nection, or if pmcd is not running and all connection attempts in the timeout interval failed with the error ECONNREFUSED. 3 A UNIX error occurred, use -v for more details. 4 A PCP error occurred, use -v for more details. Performance Co-Pilot PCP PMCD_WAIT(1)
All times are GMT -4. The time now is 06:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy