06-08-2012
I would think if that file is 15GB that you are going to need a lot longer sleep time before the rm -f is ran.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
In Unix, I am having one file getting copied to some directory. Which command will help me ensure, that file is not completely copied to the disk? (2 Replies)
Discussion started by: videsh77
2 Replies
2. Shell Programming and Scripting
I wanna check whether a file is being copied ,i.e the file size is increasing.
Thanks for your help (2 Replies)
Discussion started by: anhkeen
2 Replies
3. UNIX for Dummies Questions & Answers
We have a text/csv file (4mb) sitting on a Unix box. The PC belongs to a retail store and they're asking me to bring the file over to Windows so they can import the file.
Can a file be copied to an rs232 port? If so how? The idea is that I'll hook up a null modem cable to the Unix com port,... (2 Replies)
Discussion started by: alivebyscience
2 Replies
4. Solaris
Hi all,
If i wanted to copy file within different folders or different servers, how do i determine the copied file is absolutely correct :confused:
Is it using cmp and chksum command enough?
Anyway that i can make further checking?
Thanks in advance for reading & anyone who reply the... (7 Replies)
Discussion started by: beginningDBA
7 Replies
5. UNIX for Dummies Questions & Answers
I want to copy a folder and all its contents of ~700GB from a computer to another. I've tried sudo scp -r directory/ admin@host:directory but the result is that the copied folder is about 2GBs smaller than the original.
I checked the shell for errors and found some "file doesn't exist" errors.... (2 Replies)
Discussion started by: MJH
2 Replies
6. Shell Programming and Scripting
Dear all,
I am trying to extract a number from a line in one file (task 1), duplicate another file (task 2) and replace all instances of the strings 300, in duplicated with the extracted number (task 3). Here is what I have tried so far:
for ((k=1;k<4;k++)); do
temp=`sed -n "${k}p"... (2 Replies)
Discussion started by: mnaqvi
2 Replies
7. Shell Programming and Scripting
hi,
I have a script which copy files by using scp command. when i run that script, i can see the process meter but I want to know how many files have been copied.
suppose, by using scp 10 files is being copied and I can see process meter for all 10 files. but i also want to see ... that 10... (0 Replies)
Discussion started by: anshu ranjan
0 Replies
8. Linux
Hi Guys,
I have an issue whereby I package up an rpm and when I deploy it, the binary filesizes differ from what I packaged up from the SOURCE directory.
from source - -rwxrwxr-x 1 user group 685156 Sep 26 15:50 cybAgent.bin
after install - -rwxr-xr-x 1 user group 683388 Oct 16 11:10... (4 Replies)
Discussion started by: gazza-o
4 Replies
9. Shell Programming and Scripting
Hi,
I have a requirement to create below script:
Script must run infinitely in background.
It will check a particular type of file to be copied in specific folder of server
Script must wait till any file gets fully copied ..(important) and then
It will read that file
Experts please... (4 Replies)
Discussion started by: Vikash163
4 Replies
10. UNIX for Dummies Questions & Answers
I have two Linux machines, Linux1 and Linux2. They both have two NFS mounts. We'll call them /scratch1 and /scratch2. And they both reside on the same NetApp filer. If I copy a 512Mb file from /scratch1 to /scratch2 while logged on Linux1 it takes 40s. However if I scp this file from... (1 Reply)
Discussion started by: crimso
1 Replies
LEARN ABOUT MOJAVE
curlopt_default_protocol
CURLOPT_DEFAULT_PROTOCOL(3) curl_easy_setopt options CURLOPT_DEFAULT_PROTOCOL(3)
NAME
CURLOPT_DEFAULT_PROTOCOL - default protocol to use if the URL is missing a scheme name
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_DEFAULT_PROTOCOL, char *protocol);
DESCRIPTION
This option tells libcurl to use protocol if the URL is missing a scheme name.
Use one of these protocol (scheme) names:
dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp
An unknown or unsupported protocol causes error CURLE_UNSUPPORTED_PROTOCOL when libcurl parses a schemeless URL. Parsing happens when
curl_easy_perform(3) or curl_multi_perform(3) is called. The protocols supported by libcurl will vary depending on how it was built. Use
curl_version_info(3) if you need a list of protocol names supported by the build of libcurl that you are using.
This option does not change the default proxy protocol (http).
Without this option libcurl would make a guess based on the host, see CURLOPT_URL(3) for details.
The application does not have to keep the string around after setting this option.
DEFAULT
NULL (make a guess based on the host)
PROTOCOLS
All
EXAMPLE
curl = curl_easy_init();
if(curl) {
/* set a URL without a scheme */
curl_easy_setopt(curl, CURLOPT_URL, "example.com");
/* set the default protocol (scheme) for schemeless URLs */
curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
/* Perform the request */
curl_easy_perform(curl);
}
AVAILABILITY
Added in 7.45.0
RETURN VALUE
CURLE_OK if the option is supported.
CURLE_OUT_OF_MEMORY if there was insufficient heap space.
CURLE_UNKNOWN_OPTION if the option is not supported.
SEE ALSO
CURLOPT_URL(3),
libcurl 7.54.0 December 21, 2016 CURLOPT_DEFAULT_PROTOCOL(3)