It's not trying to load the whole file in memory. It caches one copy of the first bits of a new line (things up to "fruit") and the list of 'items' that follow. When the first bits change, the record, with the summary of items, is written and the caching/list starts anew (list = ""). So, the only significant amount of "stuff" that is ever held in memory is the list of items.
Now, if that list is huge, then the programme could be amended to write them out as it finds them. My assumption was that the list wasn't going to be more than 1 or 2 K.
---------- Post updated at 21:55 ---------- Previous update was at 21:42 ----------
Turns out that printing the list as we go is a simpler programme; just didn't see it that way the other night.
Seems simple but I am having difficulty with this one: I am trying to write a single command line argument (which will be a path) - the program should print out the owner of the path.
I can not get anything I write to run.
Please help. (5 Replies)
hi all,
i am just getting in to bash scripting, so don't be too harsh...
i've created this little backup script, and it's just awfull... ugly, doesn't work like I want it to, the works. anyways, i was hoping some of you might help me improve it and learn a little in the process.
what i... (13 Replies)
I need to write two shell scripts for an rsync backup solution. The first script will copy all backed up files into a folder named after the original folder, plus a date stamp (so e.g. if the original folder name is 'foo' and is backed up on the 10th of September, then the backup folder will be... (0 Replies)
PFA file "color.txt".
Note : There is no newline character in the file. I have manually inserted the newline char to make it easy to understand.
I am expecting out in the form as specified in second file "out.txt"
I need a perl script to perform the task.
Thanks in advance. (2 Replies)
Hi All,
I need your assistance, I would like to replace all lines beginning with the word "begin" with the below text:
Device | IPMB0-A | IPMB0-B
Board Address |Sent SentErr %Errr |Sent SentErr ... (9 Replies)
Hi All,
I need your assistance, I would like to replace all lines beginning with the word "begin" with the below text:
Device | IPMB0-A | IPMB0-B
Board Address |Sent SentErr %Errr |Sent SentErr ... (10 Replies)
I am using ii for irc on my pogoplug...
hxxp://hg.suckless.org/ii/file/d163c8917af7/FAQ
If you look at the bottom of there, it states
31 What other fancy stuff can I do with ii?
32 ----------------------------------------
33 It is very easy to write irc bots in ii:
34... (3 Replies)
Hello everyone! I am brand new at this forum thing and wanted to thank all of you for your time and help in advance for helping me troubleshoot my issue.
I am fairly new to shell scripting and scoured the entire internet to find a solution for my issue to no avail and hope you're able to help.
... (2 Replies)
Hello,
I am in a Unix class and have been out of town. I have been tasked to generate a couple of scripts and ahve never done it before. I have a virtual machine running Ubuntu. The task is below
Prompt the system administrator for all valid input parameters
Generate a menu to ask which... (1 Reply)
Hello everyone.
I am trying to replace
sprintf(buffer, "{\"id\":1,\"method\":\"mining.update_block\",\"params\":}\n", coinid, blockhash);
with
sprintf(buffer, "{\"id\":1,\"method\":\"mining.update_block\",\"params\":}\n", coinid, blockhash);
this is the code I was trying but is... (9 Replies)
Discussion started by: crombiecrunch
9 Replies
LEARN ABOUT CENTOS
abrtd
ABRTD(8) ABRT Manual ABRTD(8)NAME
abrtd - automated bug reporting tool's daemon.
SYNOPSIS
abrtd [-dsv[v]...]
DESCRIPTION
abrtd is a daemon that watches for application crashes. When a crash occurs, it collects the problem data (core file, application's command
line etc.) and takes action according to the type of application that crashed and according to the configuration in the abrt.conf config
file. There are plugins for various actions: for example to report the crash to Bugzilla, to mail the report, or to transfer the report via
FTP or SCP. See the manual pages for the respective plugins.
OPTIONS -v
Log more detailed debugging information.
-d
Stay in the foreground and log to standard error.
-s
Log to system log even with option -d.
-t NUM
Exit after NUM seconds of inactivity.
-p
Add program names to log.
CAVEATS
When you use some other crash-catching tool specific for an application or an application type (for example BugBuddy for GNOME
applications), crashes of this type will be handled by that tool and not by abrtd. If you want abrtd to handle these crashes, turn off the
higher-level crash-catching tool.
AUTHORS
o ABRT team
SEE ALSO abrt.conf(5)abrt 2.1.11 06/18/2014 ABRTD(8)