General :: Commands For Logfile Handling?

Mar 28, 2011

I've got this log file and I need to get all sorts of information from it...

24 - [02/Sep/2010:00:01:16 +0200] - 10.1.53.62 - 200
23 - [02/Sep/2010:00:01:26 +0200] - 10.1.53.62 - 200
19 - [02/Sep/2010:00:01:56 +0200] - 10.1.53.62 - 200

[code]....

View 6 Replies


ADVERTISEMENT

General :: Check The O/p Of Xterm Logfile?

Oct 25, 2010

i am trying to run xterm command in linux.it opens one pop-up window and closes when we close that terminal.I want to store it like a file.

$ xterm -l -lf "test"

but test is not storing any where? how to configure this?

View 2 Replies View Related

General :: Split Logfile For Error Logs?

Dec 30, 2009

Is there a tool already out there that will split error logs based on the virtual host they belong to? Or perhaps a somewhat simple way to write a script that can do this? I'll keep looking for a solution but I thought I'd ask in case someone here has one to offer.

View 2 Replies View Related

General :: Writing Command Executed Into Logfile?

Jun 7, 2011

Currently we are using Unix machine & the activity are logged in the file using following code used in profile

.profile code

# /ln/aud_root/dds_ibm/.profile
trap 'print "not allowed"' INT
trap 'print "not allowed"' QUIT
trap 'print "not allowed"' TSTP

[Code].....

View 2 Replies View Related

General :: Memory Handling Capacity Of 64 Bit Ubuntu?

Aug 3, 2010

What is the maximum amount of ddr that can be installed in a 64 bit ubuntu linux system computer?

View 1 Replies View Related

General :: Handling Wordbreaks In Bash Completion?

Feb 16, 2010

I am writing completion function for one PHP framework called symfony. It has command line interface with syntax:

Code:

symfony [options] [namespace:]action

I want to make action be autocompletable. The function is simplest so far:

Code:

function _symfony_commands()
{
[ -r "cache/completion/.sf" ] && cat cache/completion/.sf
}

[code]....

But, if there is : symbol which separate namespace from action problems coming:

symfony doct[TAB]
will be completed to
symfony doctrine:

But nothing happens if you want complete after : symbol. I've found out that for readline there is three words because it splits line with $COMP_WORDBREAKS

Code:

$ echo $COMP_WORDBREAKS
"'><=;|&(:

I played with $COMP_WORDS array and tried every thought I had to make it work, but failed.
What I should do to escape colon and make readline consider it as one word? Or there is way perhaps to workaround it?

View 2 Replies View Related

General :: Mount - Filesystem Handling For Embedded Device?

Jan 21, 2011

I am developing a device that will run Linux as its operating system.The device is a small form factor X86 device with a flash drive exposed as a SATA-device. So it is not very dissimilar from any other PC running Linux.For several good reasons I am building my own "distribution", instead of using an existing one.What confuses me is how mount/umount of the root file system is handled.I boot my kernel with the commandline "root=/dev/sda1 rw" which works fine. But everytime I do poweroff or reboot Busybox complained about no /etc/fstab, so I decided to build one.Should I have an entry for my root file system? It seems like this is shadowed by the rootfs anyway. I.e. if I have the fstab entry "/dev/sda1 / ext2 1 1" mount still reports rootfs on / type rootfs (rw)/dev/root on / type ext2 (rw,relatime,errors=continue)My questions are:Do I need to worry? Will the drive be correctly unmounted by the kernel on poweroff/reboot?If I want to perform file system checking on boot, can I do that without resorting to an initrd?

View 1 Replies View Related

General :: Handling Network Plug / Unplug In (Debian)

Jun 15, 2011

I want to run a script when the switch goes down and an other when it goes up. Is there an easy way to pull this off in Debian (preferably with no other than system tools)? I suppose there is no difference (in the OS point of view) between unplugging ethernet cable and the switch losing power.

On an event I get lines like these in the syslog:
Jun 15 17:49:41 debian kernel: [ 5506.956130] igb: eth1 NIC Link is Down
...
Jun 15 17:49:45 debian kernel: [ 5511.168788] igb: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX

In FreeBSD you can pipe log messages (pre-filtered by regex patterns) to a program. What is the easiest way to replicate this on Debian (with as little additional software as possible)?

View 1 Replies View Related

General :: Debian - Server Does Not Appear To Be Handling Sessions Properly?

Jul 21, 2011

after installing Debian 6 on a server. When I try to install a software called ActiveCampaign, I get the following error ... "Your server does not appear to be handling sessions properly."I have install Apache, PHP, MySql and Perl already. Also, after the server restarts, I Webmin will not automatically start, even thou it is setup in the Webmin configuration to start with the server. I have to use /etc/init.d/webmin start from a command line after I su.

My last question is about ftp permissions. I have install proftpd and it seems to be working fine, but when I try to edit any file or upload, I can not. In order to upload and manipulate files, I am using WinSCP under root, wich is a big NO NO.Sorry for the three questions, but I figured I would ask all in one post, instead of creating multiple, since I already have your attention.

View 1 Replies View Related

General :: Find The Sequence For Signal Handling Mechanism In Kernel?

Apr 28, 2011

I am working on tracing the signal handling mechanism in linux kernel internallly. For that, i build the kernel. Now, i want to trace the signal handling mechanism in the old kernel. I got to about SYSLOG and PRINTK for this. But, how to use these tools exactly in tracing the handling of signals internally ?. Is, there any tool similar to backtrace to do that?. How the call flow is done internally ?

View 1 Replies View Related

General :: OS - Upgrade Or A Fresh Install Which Distro Is Best In Handling Upgrades?

Feb 25, 2010

Pretty soon, I hope, I'll get my brand new PC and wish to install a Linux disto. on it. openSuse may be it But I read recently that people prefer to do a fresh install of a newer version of openSuse, instead of upgrading it, apparently because of problems that may occur by the upgrade. As I understand, this preference apply to all Linux distributions and not only openSuse. Thus I wonder if there's a Linux distro. that's best in handling upgrades?I don't want to make a fresh new install each and every time that my disro. has a new version. I'm afraid to lose the data in that installation, and backing-up the data would be a headache. Also I plan to install a Windows OS alongside the Linux one via the Dual Boot configuration.

View 14 Replies View Related

General :: VirtualBox On Wubi Ubuntu Can't Start VMs Due To Incorrectly Handling Absolute Paths?

Jun 27, 2011

I mostly do .Net development in a Windows 7 virtualbox. I use the host for simple things such as web browsing, skype, chat, etc. All things that are fantastically available on Ubuntu which I in many ways prefer. So this has been begging the question for a while: why even use Windows on the host, seems like a Linux host would use less resources (untested) and allow my Windows VMs to run better while allowing me to do my non-development stuff in an interface I prefer.

So easiest way to do this - I downloaded wubi and installed Ubuntu. I installed in it Virtualbox, and then start add and start my VM to get this message: Failed to open a session for the virtual machine VS2010, Could not open the medium '/host/Users/George Mauer/Virtualbox VMs/VS2010/C:/Users/George Mauer/.VirtualBox/HardDisks/VS2010.vdi; VD: error VERR_FILE_NOT_FOUND opening image file '/host/Users/George Mauer/Virtualbox VMs/VS2010/C:/Users/George Mauer/.VirtualBox/HardDisks/VS2010.vdi; (VERR_FILE_NOT_FOUND).

You see what's going on? With wubi, the windows drive gets mounted at /host/ but virtualbox is for some reason appending an absolute path! I would very much like to use the same exact VM file since it would retain Snapshots and I would be able to use it in either windows or Ubuntu mode. However, even if I try to simply mount the drives into a new VM I get an error: Failed to open the hard disk /host/Users/George Mauer/.VirtualBox/HardDisks/VS2010.vdi. Cannot register the hard disk '/host/Users/George Mauer/.VirtualBox/HardDisks/VS2010.vdi' {guid...} because a hard disk '/host/Users/George Mauer/VirtualBox VMs/VS2010/C:/Users/George Mauer.VirtualBox/HardDisks/VS2010.vdi with UUID {guid...} already exists.

This is especially odd since this worked fine with my recently created Android VM, though this might have something to do with the fact that VirtualBox recently changed their default VM storage locations. Any idea how to fix this? My Linux-fu is weak but I seem to remember from CS class something about symbolic links that might be relevant here?

View 1 Replies View Related

Ubuntu Servers :: No Logfile Lines Found To Process?

Feb 4, 2010

I think I miss something here(Ubuntu 9.10 server 64bit):

/etc/srg/srg.conf

Code:

##### SRG Example Configuration File #####
# Squid log file to process
# Defaults to access.log in the srg directory.
# e.g. log_file "/usr/local/squid/logs/access.log"

[Code].....

WARNING: Configuration file not found!

No logfile lines found to process!

View 1 Replies View Related

Ubuntu Networking :: Nothing Appears In Logfile That Even Mentions Default Route

Feb 28, 2010

In an attempt to get something that, well, you know, just works... I migrated a laptop to Karmic server today. Which works fine, except for one thing: when I use wvdial and a Huawei E160g USB modem to connect to the Internet (which is the only option out here in the sticks where I live) no default gateway is set. When I add one manually everything is fine, except that the default gateway keeps disappearing after a while (at irregular intervals, as far as I can see). Nothing appears in any logfile that even mentions the default route, let alone a reason for its magical vanishing trick. My wvdial.conf is fairly pedestrian:

[Code]...

What's going on here? I'm stumped. And the mighty Googlebrain doesn't seem to know, either. How do I get wvdial & friends to set the correct default route upon connecting? Given the fact that without a default route a PPP connection to a remote network is little use, I would expect this to be a standard feature and not something that I'd have to script a work-around for myself. But then, I have been wrong before. Secondly, and more importantly, why does my default route keep disappearing without a trace?

View 4 Replies View Related

Ubuntu Servers :: Redirect Messages From Kernel Ringbuffer To A Logfile?

Aug 2, 2010

Is there a way I can redirect messages from kernel ringbuffer to a logfile, e.g. with rsyslogd? With redirect I mean that the messages do no longer appear in dmesg, but only in the logfile.
In my case that should be iptables log messages.

View 3 Replies View Related

Ubuntu Servers :: Rsyslog & Log All Iptable Logs To Mysql Instead Just A Logfile

Apr 5, 2011

I try to log all my iptable logs to mysql instead just a logfile. The setup is as followed:

[Code].....

[red]Problem[/red] rsyslog logs everything correct, except it does not log to db, it logs to /var/log/messages. As I am brand new to the whole Linux experience, I don't get it. My /etc/rsyslog.conf is setup with $ModLoad onmysql.

View 1 Replies View Related

Debian :: ArmA-II Dedi-Server-Output Logfile To Screen?

May 9, 2010

Im running a dedicated game server for ArmA-II. There is a server.cfg file that directs the server to output to a log file all server events, such as game issues from clients and the server itself.The value in the server.cfg file looks like this: logfile="server.log";How do I set it up so that the dedicated server outputs this information, not only to the log, but also to my screen? Would this be done from the server.cfg file?

View 1 Replies View Related

CentOS 5 :: Iptables Logging In A Separate Logfile Works Not Properly?

Jun 4, 2009

if I use the final flag, postfix loggs to /var/log/messages, not to /var/log/maillog.What I am doing wrong?regards ralfHere my config:

options {
sync (0);
time_reopen (10);

[code]....

View 2 Replies View Related

Red Hat / Fedora :: Increase Detail Of Messages Logfile To Help Resolve A Intermittent Crash?

Mar 29, 2010

My server is running Red Hat 4.1.2-44.I am having an issue with it hanging (website doesn't respond, can't connect via SSH (it's a remote server)) after 4am on every 3rd Sunday or so.A reboot is required to get the server responding again.I have checked every logfile I can find and found nothing that helps me. The thing I have noticed is that some of these log files start afresh after the reboot so my initial thoughts are that it is a logrotate issue or something similar.

The last activity I can find before the reboot (at 8:32) is in the logfile /var/log/cron:
Mar 28 04:22:01 crond[9356]: (root) CMD (run-parts /etc/cron.weekly)
Mar 29 08:32:39 crond[3884]: (CRON) STARTUP (V5.0)

[code]....

View 7 Replies View Related

Server :: Create A Separate Logfile For Host Sending Logging To Rsyslog?

Feb 16, 2011

After struggling and googling on the internet I can't manage it to work.I have stup rsyslog to receive the logging from my firewall and it puts it into the syslog file.ut I would like to have a separate logfile for these messages.I have created the firwall.log file with owner syslog, same as for the syslog file.I already have tried to use in the /etc/rsyslog.d/10-firewall.conf the following ::msg, contains, "firewalld" /var/log/firewall.logor
:msg, contains, "firewalld" -/var/log/firewall.logI don't know the difference between the "-" sign in the lines but I have seen also those kind of situations.

I also have put this line into the 50-default.conf file because I thought it wasn't seeing the 10-firewall.conf file but no work.I have added a $template HostMessages, "/var/log/%HOSTNAME%/logfile.log" in the /etc/rsyslog.conf file but neither it works.In the firewall I can see the Syslog facility is now on LOG_LOCAL0 and I can change it from LOCAL0, LOCAL1, LOCAL2, ... until LOCAL7What does these different numbers mean

View 4 Replies View Related

Programming :: Script To Read Active Squid Logfile And Output Results To Html Based On Conditions?

Mar 12, 2010

Basically the requirement of the script are :

1. need to run like a daemon which will read an active squid logfile in a refresh pattern of 5 minutes

2. calculate the total number requests based on different domains that the client access

3. calculate the total of number of requests based on different domains as well as the turnaround time of these access is more than 5 sec that the client access

4. calculate percentage of item 3 over item 2

5. report the results in html format as follows:

Domain Name Total req Req > 5 sec % of req > 5 sec

6. able to access the results from web browser.

View 8 Replies View Related

OpenSUSE :: K3b Incapable Of Handling M4a?

May 13, 2010

just noticed when I went to burn a cd (just got a new car and at the moment the stereo does't have a auxiliary port and I'm not about to use a shotty fm transmitter) that k3b spikes the cpu through the roof an freezes when I write/burn/convert a m4a media file... I'm using k3b version 1.91.0.

View 3 Replies View Related

Programming :: C++: Getting And Handling Web Data?

Jan 29, 2010

I'm just starting out on a project relating to web search, to be done in C++. Which library should I use to help with downloading web pages into memory so that I can process them? The big thing is I want to be able to download the pages into variables/structures without actually putting them onto the hard disk.I googled and saw libcurl, but I was confused by some of the examples and wondering if this was really what I wanted.

View 2 Replies View Related

Programming :: How Error Handling Is Done In C

Jan 3, 2010

I wonder how error handling is done in C in real applications, by returning a error code when something goes wrong, or by using setjmp and longjmp, or something else?

View 10 Replies View Related

Programming :: Signal Handling In Pthread?

Mar 12, 2011

I have created a pthread, and installed a signal handler inside that, same way as we do in main( ) function. The thread's signal handler is a separate function. Surprisingly, it is not working, that is the thread's signal handler is not able to catch signals. Here is the code:

Code: #include <unistd.h>
#include <sys/types.h>
#include <stdio.h>
#include <signal.h>
typedef struct data

[Code]...

View 1 Replies View Related

Programming :: Exception Handling In Perl?

May 12, 2010

I writed Quote:

#!/usr/bin/perl -w
use Error qw(:try);
try {

[code]....

View 1 Replies View Related

Programming :: Try/except Error Handling In Bash?

Jun 30, 2011

I found, in bash, something similar to 'try/except' in python. I've been using something like this:

Code:
if ! 'command';then
echo 'damn, there was an error'

[code]....

View 4 Replies View Related

Programming :: Ways Of Handling The ADT Interface?

Nov 30, 2010

During my read, "Code Complete",the author described the different ways of handling the ADT interface.He has wrote this passage:

Quote:

Option 2: Explicitly provide the data used by the ADT services. In this approach, you declare the data that the ADT uses within each routine that uses an ADT service. In other words, you create a Font data type that you pass to each of the ADT service routines. You must design the ADT service routines so that they use the Font data that's passed to them each time they're called. The client code doesn't need a font ID if you use this approach because it keeps track of the font data itself. (Even though the data is available directly from the Font data type, you should access it only with the ADT service routines.This is called keeping the structure "closed.") The advantage of this approach is that the ADT service routines don't have to look up font information based on a font ID. The disadvantage is that it exposes font data to the rest of the program, which increases the likelihood that client code will make use of the
ADT's implementation details that should have remained hidden within the ADT.

The problem is that it is a bit subtle in terms of coding for me. Can anybody give more concrete example, in working codes, especially in Java?

View 2 Replies View Related

Debian :: Iptables - Netfilter Queue Handling

Jul 17, 2015

I have created a nfq handler via nfq_open() and using the returned qhandle to bind my application program to a specific queue number that is configured in iptables. when i invoke nfq_create_queue() my program is stuck there and the back trace shows it is blocked in recvfrom()

bt

in recvfrom () from /lib/x86_64-linux-gnu/libpthread.so.0
in nfnl_recv () from /usr/lib/libnfnetlink.so.0
in nfnl_catch () from /usr/lib/libnfnetlink.so.0

View 0 Replies View Related

Ubuntu :: Is X11 Or GDM/KDM/XDM Handling The Login Screen In K/X - What About GDM2

Jun 7, 2010

I really have tried Googling this over many, many hours, and I still can't make sense of it all, especially since I keep reading conflicting info.

In 9.10, the Usplash boot splash was replaced by XSplash, which is based on X11, and when we all realised something was up with GDM (when we couldn't find a way to customise the login anymore), I read it was not GDM controlling that anymore, but X11. So, the way I read it (on many different sites), XSplash in 9.10 controlled both the boot splash and the login, even though the hacks for customising the login involve commands with "gdm" in them.

Now, in 10.04, the short-lived XSplash has been replaced by "Plymouth", and I get all that... as far as the boot splash goes. What I don't understand is the login process.

There is talk of GDM2 coming out, and I've seen people asking when this will be implemented in Ubuntu, but if the move is away from GDM altogether towards a boot/login process totally based on X11, will this happen?

More importantly, what is controlling the login now? Is it still GDM, or is it X11 that gdm commands work on or something? (The hacks people used in 9.10 still work in 10.04)

Also, because I have Xubuntu and Kubuntu in the same system, and have had things like KDM taking over login happen after upgrades, I have to ask what is controlling the boot process and login for Ubuntu's siblings? (To me they now look almost identical, so wonder if they're all X11 based)

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved