10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello gurus,
I have a csv file with bunch of datas in each column. (see attached)
Now I have an .xml file in the structure of below:
?xml version="1.0" ?>
<component id="root" name="root">
<component id="system" name="system">
<param name="number_of_A" value="8"/>
... (5 Replies)
Discussion started by: Zam_1234
5 Replies
2. Shell Programming and Scripting
#!/bin/bash
for i in `ls -c1 /usr/share/applications`
do
#name=`cat /usr/share/applications/$i | grep ^Name= | cut -d = -f2`
#categories=`cat /usr/share/applications/$i | grep ^Categories= | sed 's/;/=/g' | cut -d = -f2`
name=$(grep ^Name= /usr/share/applications/$i | cut -d = -f2)... (12 Replies)
Discussion started by: alexscript
12 Replies
3. Shell Programming and Scripting
So,
What is the best method, if even possible, to display a percentage or a status or progress of a certain command? For example I am forcing a block copy of a an OS image from one machine to another via a shell script and would like for it to display a progress or status so I know if it is... (3 Replies)
Discussion started by: tlarkin
3 Replies
4. Shell Programming and Scripting
Hi guys I want to create a script which will show the amount of data that is been copied from one location to another location.
For example:
Say i have a file called abc.img which is approximately 4 gb of size therfore everytime i copy the file from one location to another i want a progress bar... (3 Replies)
Discussion started by: pinga123
3 Replies
5. Web Development
Hi all,
I am a newbie to servlet programming using webrick...
Was wondering how to accept data from a form and do necessary
processing..
To start with i wrote a sample servlet that accepts a name and prints
"welcome <name>"
But I do not know how to take this value from the form into the... (0 Replies)
Discussion started by: wrapster
0 Replies
6. Programming
Hi,
I codding a download manager,use libcurl library.i can download any file easily.But i want to show file detail in console.Some of them,
File Size
Percent
Left Time
Libcurl has some functions to use,but there isnt good documentation to understand them. i cant find any example to... (2 Replies)
Discussion started by: canerbulut
2 Replies
7. UNIX for Dummies Questions & Answers
Is it possible to track the progress of a job (informatica) by analysing the progress of it's log file ? I have a long running job, and no way of tracking how far allong it is. Thanks. (4 Replies)
Discussion started by: cosmos328is
4 Replies
8. UNIX for Advanced & Expert Users
Hi,
I am parsing a very big file say 10 MB. It 'll take more than an hour ..I want to know the progress say in % .Is there any way to do that???
or
(Is there any way to know which line of the file I am in ) (2 Replies)
Discussion started by: sakthi.abdullah
2 Replies
9. Shell Programming and Scripting
Hi ,
I want to automate the Disk-Mirroring on Solaris.
After the sync is started, I can watch the progress with
sunos # metastat | grep done | cut -d ":" -f 2 | cut -d "%" -f 1
which results in a % value
How can I display some like
Synchronisation in progress :... (2 Replies)
Discussion started by: networkfre@k
2 Replies
10. UNIX for Dummies Questions & Answers
I believe i have most of samba configured right but i get this error each time time try to run it. I was given suggestion that i touch the file, i did, but i still cannot rid myself of this error.
Any suggestions (2 Replies)
Discussion started by: macdonto
2 Replies
CURLOPT_READDATA(3) curl_easy_setopt options CURLOPT_READDATA(3)
NAME
CURLOPT_READDATA - custom pointer passed to the read callback
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_READDATA, void *pointer);
DESCRIPTION
Data pointer to pass to the file read function. If you use the CURLOPT_READFUNCTION(3) option, this is the pointer you'll get as input in
the 4th argument to the callback.
If you don't specify a read callback but instead rely on the default internal read function, this data must be a valid readable FILE *
(cast to 'void *').
If you're using libcurl as a win32 DLL, you MUST use a CURLOPT_READFUNCTION(3) if you set this option.
DEFAULT
By default, this is a FILE * to stdin.
PROTOCOLS
This is used for all protocols when sending data.
EXAMPLE
CURL *curl = curl_easy_init();
struct MyData this;
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
/* pass pointer that gets passed in to the
CURLOPT_READFUNCTION callback */
curl_easy_setopt(curl, CURLOPT_READDATA, &this);
curl_easy_perform(curl);
}
AVAILABILITY
This option was once known by the older name CURLOPT_INFILE, the name CURLOPT_READDATA(3) was introduced in 7.9.7.
RETURN VALUE
This will return CURLE_OK.
SEE ALSO
CURLOPT_READFUNCTION(3), CURLOPT_WRITEDATA(3),
libcurl 7.54.0 May 01, 2016 CURLOPT_READDATA(3)