Search Results

Search: Posts Made By: jockey007
32,424
Posted By jockey007
Thanks a lot guys.... I appreciate your help.:b:
Thanks a lot guys....
I appreciate your help.:b:
32,424
Posted By jockey007
Sub string after the last occurence of "."
Hi,
Suppose there is a string
x.y.z , where x, y & z could be any integer from 0-999.

How do I extract the value of z?
Also how to extract "x.y" ?

I'm OK with using sh, sed, awk grep or cut....
11,528
Posted By jockey007
Thanks Rakesh.. I'm not working with binary, so...
Thanks Rakesh..
I'm not working with binary, so I believe this will help.
Wishes
Jay
11,528
Posted By jockey007
How to delete initial N bytes from the starting of the file using sed?
I want to delete initial N bytes of a file using sed.
How can I do that?
Forum: Programming 11-15-2007
15,179
Posted By jockey007
I even tried lseek(fd, (off_t)numOfBytes,...
I even tried

lseek(fd, (off_t)numOfBytes, SEEK_SET);
i=ftruncate(fd,1000);

but this didn't help
Forum: Programming 11-15-2007
15,179
Posted By jockey007
How to delete N bytes from the starting of the file from a C function???
Hi,
I want to delete the initial few lines (or even bytes) from a file.
I want to do this from a C function & this is in Linux platform.
The truncate & ftruncate is allowing me to delete bytes...
13,936
Posted By jockey007
Oh!! That works! Thanks a lot Porter... ...
Oh!! That works!

Thanks a lot Porter...
Have a nice day.

Wishes
Jay
13,936
Posted By jockey007
Hi Porter, The output of ...
Hi Porter,

The output of
root@WiMAX-BS:/var/log ls -ld /var/log/messages
-rw------- 1 root root 41994 Jan 23 03:16 /var/log/messages

==========

Well.. I was thinking like ...
13,936
Posted By jockey007
Thanks.... Now I'm using a busybox find,...
Thanks....

Now I'm using a busybox find, which doesn't have support for "-size" argument
So i think a sed command that meets the requirement would be great.
Please provide a sed command to check...
13,936
Posted By jockey007
"sed" to check file size & echo " " to destination file
Hi,

I've modified the syslogd source to include a thread that will keep track of a timer(or a timer thread). My intention is to check the file size of /var/log/messages in every one minute & if...
Forum: Linux 11-12-2007
41,473
Posted By jockey007
hmm.. looks like there is no way to configure...
hmm..
looks like there is no way to configure the log file size from syslogd
Forum: Linux 11-09-2007
41,473
Posted By jockey007
Thanks, but I've clearly mentioned that I can't...
Thanks, but I've clearly mentioned that I can't use logrotate.
May be I am looking for some kind of work around
Forum: Linux 11-07-2007
41,473
Posted By jockey007
Limit size of log file from syslog
Hi,

I'm using Linux 2.6 cross compiled for a embedded powerpc.
Earlier we were using busybox syslogd for logging the messages, but as the flexibilty is less, we decided to move to standard...
11,349
Posted By jockey007
I got it. its sysklogd-1.4.1rh.tar.gz ...
I got it.
its sysklogd-1.4.1rh.tar.gz

Thanks
11,349
Posted By jockey007
Thanks..Fpmurphy But, how I can find which...
Thanks..Fpmurphy
But, how I can find which file(or package) is implementing syslog source code?
There is no search option in the link you provided.
11,349
Posted By jockey007
SYSLOG Source code location
Hi,

I'm using Fedora Code 5 .
I want to see the source code of syslog.
Please tell me, where I can find the source code of syslog.


If you know any implementation of syslog meant for...
120,211
Posted By jockey007
Thanks
thanks a lot for help.
Just one more query.

How to copy the whole file, except last N lines to another file?
120,211
Posted By jockey007
Copy only the initial 10 lines from a file to another
Hi all,

I'm new to shell scripting.
I want to copy initial few lines(say first 10 lines) from a file to another file.
There is no "head" command in our embedded system.
sed & awk is there which...
Showing results 1 to 18 of 18

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