Search Results

Search: Posts Made By: xs2punit
Forum: Programming 06-11-2010
4,617
Posted By xs2punit
Oh ok . I will try this.Thanks
Oh ok . I will try this.Thanks
Forum: Programming 06-10-2010
4,617
Posted By xs2punit
Alright, I will try this. Thanks Nate ;-)
Alright, I will try this.

Thanks Nate ;-)
Forum: Programming 06-10-2010
4,617
Posted By xs2punit
I will check this case, but I am sure it will...
I will check this case, but I am sure it will work fine then. However, along with CGI1 it doesn't.
Ya, form submit could be an issue. Ajax is just called by calling a JS function ie JS function gets...
Forum: Programming 06-10-2010
4,617
Posted By xs2punit
Run two CGIs simultaneously and Ajax to read updated value from CGI1
Flow of program:
C based CGI is used

CGI1:
-Gets called when user hits upload button(submit) ie form action = CGI1
-Does the file upload (copy to a directory etc)

JS, Ajax fucntion:
-A JS...
1
1,954
Posted By xs2punit
grep
grep or find command to find a particular FOLDER/ DIRECTORY
Forum: Programming 06-08-2010
3,432
Posted By xs2punit
For example my o/p is : 86016 147456 ...
For example my o/p is :


86016
147456
208896
270336
.......
.......
.......
.......
.......
6733824
6795264
6856704
6918144
6979584
7041024
7098368
7127040
Forum: Programming 06-08-2010
3,432
Posted By xs2punit
system call
I have a cgi script which is called after certain time interval, which has this:

system ("ls -l /tmp/cgic* | grep -v \"cgicsave.env\" | awk '{print $5}'");


During the execution of this...
9,691
Posted By xs2punit
Oh thanks a lot. Quick and precise answer and...
Oh thanks a lot. Quick and precise answer and that too it works always.
9,691
Posted By xs2punit
Thanks to you all. Now it works ;-) ...
Thanks to you all. Now it works ;-)

---------- Post updated at 11:43 AM ---------- Previous update was at 11:26 AM ----------

One more question please:

ls -l cgic* | grep -v \"cgicsave.env\"...
9,691
Posted By xs2punit
Thanks for the input. i changed few things and it...
Thanks for the input. i changed few things and it works
9,691
Posted By xs2punit
It prints ./cgicsave.env I want to print...
It prints
./cgicsave.env

I want to print the size of cgic* (which is an arbitrary name created by linux) and is just one file.

Ex:
ls -la cgic* | awk '{print $5}'

It prints the size of...
9,691
Posted By xs2punit
ls to exclude file
I have cgicsave.env and cgic*, but I want to print cgic* value but NOT cgicsave.env



Thanks
3,001
Posted By xs2punit
wow....great....it works.....thanks a lot
wow....great....it works.....thanks a lot
3,001
Posted By xs2punit
du to print some of output
The output of

du -b file* | awk '{print $1}'

is:
1501090
1500538

I want the result to be a sum of this column. ie the o/p should be
3001628

Any idea?
5,182
Posted By xs2punit
du command
I want to know the size of /tmp directory at run time therefore I am using:

du -b /tmp | grep -v '/' | awk '{print $1}'

but the grep is not able to find '/'

Any idea?

Thanks

----------...
Forum: Linux 06-04-2010
11,066
Posted By xs2punit
Ya, web server or CGI, web server is lighttpd. ...
Ya, web server or CGI, web server is lighttpd.

---------- Post updated at 01:29 PM ---------- Previous update was at 01:25 PM ----------

Now I was following a different approach. I am using a...
Forum: Linux 06-04-2010
11,066
Posted By xs2punit
yes I tried that, it do print 1,2...100.....No...
yes I tried that, it do print 1,2...100.....No problem in logic.....rather I also put sleep(1); and the progress bar increments after 1 sec till 100, but this happens after the file has actually...
Forum: Linux 06-03-2010
11,066
Posted By xs2punit
well you can refer to this File upload progress...
well you can refer to this File upload progress bar - Stack Overflow (http://stackoverflow.com/questions/2924903/file-upload-progress-bar)
Forum: Linux 06-01-2010
11,066
Posted By xs2punit
My issue is not that my data is getting...
My issue is not that my data is getting corrupted, my issue is that my data is not written and read the way I want.
My server writes to the file and client reads the file. As ajax at the client...
Forum: Linux 05-27-2010
11,066
Posted By xs2punit
I do not want to lock anything. That is not the...
I do not want to lock anything. That is not the issue. Issue is server doesn't release the file to be read.
Forum: Linux 05-27-2010
11,066
Posted By xs2punit
Thanks for your reply. So, let me see what I can...
Thanks for your reply. So, let me see what I can do, will get back again.

---------- Post updated at 02:12 PM ---------- Previous update was at 02:09 PM ----------

So, do you have any idea...
Forum: Linux 05-27-2010
11,066
Posted By xs2punit
Well the ajax reads the data synchronously ie ...
Well the ajax reads the data synchronously ie



function send_request()
{
request.onreadystatechange = request_handler;
request.open("GET","progress_bar.txt",true); //true means that...
Forum: Linux 05-27-2010
11,066
Posted By xs2punit
Well I do not wish to use IPC at this time. So...
Well I do not wish to use IPC at this time.
So without that it is not possible, right?



while (cgiFormFileRead(file, b, sizeof(b), &got_count) == cgiFormSuccess)
{
fptr =...
Forum: Linux 05-27-2010
11,066
Posted By xs2punit
File read/ write operation
Hi,

I am creating a progress bar for file upload for which I have CGI script which copies the data and depending on certain bytes it increments the progress bar. Here, I am writing the...
Showing results 1 to 24 of 24

 
All times are GMT -4. The time now is 02:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy