09-14-2011
And testing with the production machine is no option? Just copying a file remote by scp to your local box is no problem. As already written, you just have to take care that the files that arrived do not overwrite something important or are mixed up with other production files, as well that no automatism processes the newly arrived files.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi could someone tell me where to find a secure copy prog.
for unix and windows
thnx a lot
helios (4 Replies)
Discussion started by: helios
4 Replies
2. Shell Programming and Scripting
i have to transfer a file from one server to another. say, my script is running on server 'A' and one file has to be transferred from server 'A' to server 'B' using SCP. i am using it as:
sourceserverA> scp -P <port> userid@serverBhostname:/put/this/here <sourcefile path>
but it is giving... (1 Reply)
Discussion started by: dharmesht
1 Replies
3. UNIX for Dummies Questions & Answers
Will an scp command always copy the files in an encrypted mode?
After trying this, I have got message Host Key not found in the database. &
Unable to write host key in my user directory.
Please anyone has an idea, how we can have secure copy with certificates exchanged successfully? (0 Replies)
Discussion started by: videsh77
0 Replies
4. Solaris
I have two servers.
server 1 - secure server running ssh only on solaris 9. I can installed whatever I need here as long as its reasonably secure
server 2 - running telnet (no ssh/scp installed) - I cannot change much on this server and cannot install much..
I need to pull some files from... (3 Replies)
Discussion started by: frustrated1
3 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
My problem is simple. I would like to download the contents of a directory on an ftp site. I can access the site through windows, but there are many files and it would be too tedious to click and download each file. Thus, I am trying to use
scp -r... (5 Replies)
Discussion started by: cpabrego
5 Replies
6. Shell Programming and Scripting
I want to copy all the files and subdirectory from a server.
I tried
scp pritish@ipaddress:/home/pritish -r $PWD
it copies all the files but not the directory, Can any one help me.
I want to copy files as well as subdirectory from a server directory
Note: Use CODE-tags when... (2 Replies)
Discussion started by: pritish.sas
2 Replies
7. UNIX for Dummies Questions & Answers
I want to use scp in a script and have two questions:
1. Is there a way to use password in script, so script does not halt and ask for my password for remote box half way through?
2. The code below copies the file to my home directory on the remote server. How can I copy "file" to the same... (3 Replies)
Discussion started by: chrisjones
3 Replies
8. UNIX for Dummies Questions & Answers
I need to copy all files and directories with scp, but seems I am missing something?
/usr/bin/scp -p /custscripts/* rmprod2:/custscripts
doesn't copy directories and files under them.
Please advise. (1 Reply)
Discussion started by: Daniel Gate
1 Replies
9. UNIX for Advanced & Expert Users
Is there a way we can avoid asking of password when we transfer file from one Unix server to another server using SCP command.
Or
Is is possible that the batch file in unix in which I am giving the SCP command takes the password and transfer the files automatically without me typing the... (1 Reply)
Discussion started by: Pash
1 Replies
10. UNIX for Advanced & Expert Users
Using RCP command we can transfer file from one server to another server.
While transferring we can rename the file also e.g.
File name = FILE123.txt (lying on Source server = oldserver)
Target Server Name = newyour
Renamed File = FILE456.txt
rcp FILE123.txt newyour:./FILE456.txt... (1 Reply)
Discussion started by: Pash
1 Replies
LEARN ABOUT MOJAVE
curlopt_infilesize
CURLOPT_INFILESIZE(3) curl_easy_setopt options CURLOPT_INFILESIZE(3)
NAME
CURLOPT_INFILESIZE - set size of the input file to send off
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_INFILESIZE, long filesize);
DESCRIPTION
When uploading a file to a remote site, filesize should be used to tell libcurl what the expected size of the input file is. This value
must be passed as a long. See also CURLOPT_INFILESIZE_LARGE(3) for sending files larger than 2GB.
For uploading using SCP, this option or CURLOPT_INFILESIZE_LARGE(3) is mandatory.
To unset this value again, set it to -1.
When sending emails using SMTP, this command can be used to specify the optional SIZE parameter for the MAIL FROM command.
This option does not limit how much data libcurl will actually send, as that is controlled entirely by what the read callback returns, but
telling one value and sending a different amount may lead to errors.
DEFAULT
Unset
PROTOCOLS
Many
EXAMPLE
CURL *curl = curl_easy_init();
if(curl) {
long uploadsize = FILE_SIZE;
curl_easy_setopt(curl, CURLOPT_URL, "ftp://example.com/destination.tar.gz");
curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
curl_easy_setopt(curl, CURLOPT_INFILESIZE, uploadsize);
curl_easy_perform(curl);
}
AVAILABILITY
SMTP support added in 7.23.0
RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
SEE ALSO
CURLOPT_INFILESIZE_LARGE(3), CURLOPT_UPLOAD(3),
libcurl 7.54.0 February 03, 2016 CURLOPT_INFILESIZE(3)