Search Results

Search: Posts Made By: adm1n
Forum: Programming 01-21-2010
6,371
Posted By adm1n
This won't help, because an error occurs after...
This won't help, because an error occurs after the pipe was opened.
Somewhere during the reading the file...

---------- Post updated at 01:21 AM ---------- Previous update was at 01:09 AM...
Forum: Programming 01-20-2010
6,371
Posted By adm1n
gzip on pipe error handling
Hi all...

I have the following code:

FILE *fp = popen(" gzip -dc /somemount/somefile.gz", "r");
while(fgets(buffer, 1024, fp))
{
some code....
}


"/somemount" is a mount of some...
Forum: Programming 01-11-2010
2,721
Posted By adm1n
Thanks a lot!! It fixed the problem!
Thanks a lot!! It fixed the problem!
Forum: Programming 01-11-2010
2,721
Posted By adm1n
timestamp conversion problem.
Hi all.

I have the following code:

#include<stdio.h>
#include<time.h>
int main()
{
struct tm tm;
time_t time = 1262322000; /*Jan, 01, 2010*/
char temp[128];
int i...
5,430
Posted By adm1n
Multiple output with awk.
Hi all


I have a file - 1.txt, which contains some text, for example:
aaaaaa
bbbbbb
cccccc


I need to pass ONE! time over the file and create three new files:
1 - a.txt
2 - b.txt
3...
Showing results 1 to 5 of 5

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