Software :: Logging To Two Log Files Simultaneously?
Oct 28, 2010
I'm looking for a way to use klogd and/or syslogd to log all the default message levels to the standard /var/log/messages. I also want all kernel (and possibly user) error messages to also be logged to a second file. Is this even possible?
I'm still learning about bash scripting. Not too long ago, with a lot of help from folks on this forum, I developed the following script to keep Slackware -stable up-to-date:
Ubuntu Lucid 32-bit desktop machine. I run "aptitude update" and "aptitude safe-upgrade" manually from the command-line regularly to upgrade my machine. I usually don't pay that much attention to the downloading, but I noticed yesterday that aptitude appeared to be downloading four files simultaneously, rather than the one at a time that I've always seen. Would this be correct? How can I change that? I can't say I've ever noticed it before.
When using the "Files & Folders" search from the Unity launcher I can set what to search for. There are several options like "All files", "Folders" etc. I would prefer to be able to search files /and/ folders at the same time (The unity label is after all "Files & Folders, not Files or Folders). Is there a way I can get it to work like that which to me would be much more efficient?
I have just tried XFCE4. Everything is cool except that when i select, let's say, 5 files on Desktop i can't move them simultaneously. I can move just one file. Is this normal behavior of XFCE?
i want to copy one or more files or directory from one drive to multiple drive simultaneously. It like a cloning a disk. But i dont like clone entire disk. i want to copy/clone only certine files or folder. if any one can know how to copy one source to multiple destination simultaneously.
I have a machine with 8 cores. I have a directory of input files that I need to process using a non-parallelized program. I would like to write a script that works its way through a list of commands executing 8 commans (i.e., instances of this program; each with specific flags having to do with the current input file) until the list of commands has been exhausted. Is there an easy way to do this?
Whether I use ufw or firestarter to populate my iptables, my firewall logs get written to 3 different log files:/var/log/messages/var/log/kern.log/var/log/syslogI want to keep the logging turned on, but I'd rather it not log to syslog, as it's obscuring other events in syslog that I'd like to see. I'm using rsyslog on Ubuntu. I looked around online and found one person suggesting I add this to the top of rsyslog.conf:kern.* -/var/log/kern.logkern.* ~I did that and restarted rsyslog, but it's still logging to the same 3 files.
I'm deleting logs after they are backed up. The line below in a script is doing it but I'd like to print the list of files that are deleted into a log file. I tried printf at the end but can't seem to get it to work. I'm not sure how to output that at the end of the string. Also I was looking at man find man and the difference btween -exec and -execdir. I don't understand what it's saying. Is -execdir executing rm m within the /opt/temp/logs directory the difference?
I want to write a shell script which will simultaneously collect OS user information and write in an individual text files.Can anyone tell me the syntax of the script.N.B. The user name will be mentioned in an array within the shell script.
After reading this pdf on top 5 things to log for security, ive decided to attempt this for my webserver. how i might setup some logging systems to do these tasks. Basic things i need to be able to do: Record things like password attempts on htaccess files, from what IP address, and how many attempts there were. Any useful links anyone can think of to get me started? Im a student programmer at university so any programming i should be able to cope fine.
I am unable to find the syslogd files. Ubuntu 9.1 installed. Logging is taking place. I want to redirect logging to central location. Do I need to install syslogd in order to control this service or is it controled via a different name/service?
I am currently using gnome on Fedora 11 and English is the default language on the system. I was able to figure out how to make it possible to add Spanish characters when I type (likeetcetera). I also figured out how to install Spanish dictionaries for the software I use that commonly does spell checking. how to have two default dictionaries in use at the same time. For example if I am using OpenOffice to write something, I would like to be able to write in either Spanish or English and not have worry about changing the dictionary in use. Is it possible to have two dictionaries set up at the same time?
I have a USB mouse and a USB audio DAC. Both work fine separately with linux. The problem is when I try using both simultaneously. The first-plugged device will work fine, but not the second-plugged device. That is, if I plug the mouse first and the DAC second, then the mouse works and the DAC doesn't work. And conversely.
When I say that the second-plugged device doesn't work, here's what I mean: the USB device is detected by the system, but gets "reset" every 2 seconds and can't be actually used at all. Here are some log messages. Here I'm working in the case where I have plugged the mouse first and am plugging the DAC second.
Code: $ lsusb | egrep -i mouse|texas Bus 002 Device 009: ID 08bb:2704 Texas Instruments Japan Bus 002 Device 007: ID 046d:c526 Logitech, Inc. MX Revolution Cordless Mouse "Texas Instruments" is my DAC. So, at the level of lsusb, all is well.
is it possible to use two dvd burners simultaneously to burn an image ? Reason i ask,i have two dvd burners & wish to utilize both at the same time,so i can burn multiple dvd's for the school i work at.If it's possible, how & what software do i use ?
I have two networks on a server. One being my internal network, and the other being an external IP address. This is on Debian Lenny. Here is my /etc/network/interfaces file:
I can reboot my system and sometimes eth1 is accessible from SSH, and other times eth0 is accessible. Then sometimes eth1 will just stop being pingable alltogether. This is a fairly fresh install of Debian, and the only thing I have running is VMWare Server 2.0, bridged to both of my network connections.
I'm tring to download an iso image that's over 3GB. The file is hosted at several ftp mirrors. Is there a way to download the file from several of these mirrors simultaneously so that I can reduce the D/L time? Presently, it's will take close to 24hrs to D/L from just one mirror. I have a 25Mbps connection so my bandwidth is not an issue.
I want to copy data from one source drive to three or more destination drive simultaneously. I tried with dd command. But it copy entire Hard disk. Its take long time to copy entire disk. i need the utility or software to copy one source to multi destination simultaneously and fast manner
I have two ISP Connections from different Providers BSNL and Sify. Both are 1MBps. In my Office Now we are using Sify for Only one Machine and BSNL is configured in wifi router. But Often BSNL network is in problem. So we have planned to use both Sify and BSNL simultaneously. what we have to do is to Make some arrangements either in cabling or in configuring we have to use both the connections simultaneously. without hassle so that the employees will always be on-line. and they may not know in which ISP they are browsing. But the internet should be available always.
We have two servers which has running Redhat 5.5 with two Onboard Ethernet card so totally Four Ethernet cards. And we are using Only linux such as fedora, ubuntu and CentOS in our Office and not windows. And all are connecting to internet by wireless. So please give some ideas to use any linux machine as router or something else that would balance the two ISPs equally, that is if one ISP is down then the other should take up automatically without doing any manual configuration and without buying any proprietary software or any hardware.
I want to use the two huawei 3G modem card simultaneously.Now by using pppd,I can got the PPP connection separately.but when I did them simultaneously,only one can successfully establish the ppp connection,the other will be blocked.If i kill the pppd process which already establish the ppp connection,the blocked one could then connect to the ISP and establish a ppp connection successfully. If I want to use them simultaneously,how should I do.I think maybe my linux only support only one pppinterface
what i want to do is run two commands (nautilus and gedit) from the command line/shell script at the same time. i can obviously do && between them, but this requires the first app to close before moving on to the second one. i want to run both apps at the same time so i can run gedit with some project files open on it, and nautilus to browse those files/other files.
It's easy to have multiple user accounts on one computer and even switch between accounts without logging off. It is also possible to have more than one display connected to a single computer. Is it possible to have one multi-core computer be used simultaneously by two users in their own accounts? Is there specific hardware required (to allow keyboard and mouse distinction for each user) and software configuration?
I know you can setup remote connections on windows that allow you to open and use a second user account without bothering the first user, but how about working locally on the same machine, essentially removing the network delay of remote desktops? What OS supports this? Linux Ubuntu? Windows 7?
I made a script for batch processing brain scans (with FreeSurfer). I have a batch file stored on an NFS server that looks something like this:
Code:
subject1 subject2 subject3 subject4
now my script is performed on several computers at a time, first it marks an item to be in use (with sed -i 's/.../...'), then processes it (it gets the actual subject files from elsewhere on the server, then puts them back), then marks it to be finished in the list. so during action the batch file should look something like this:
Code:
subject1 finished subject2 inprogress on host1 subject3 inprogress on host2 subject4
so i tried a run and watched the batch file, now i observed something like this:
Code:
subject1 finished subject2 inprogress on host1 subject3 inprogress on host2
[code]....
there was only one script running on host1. the subjects never got marked as finished, although i know for a fact that they were finished. also, the script sometimes seemed to hang for moments.
I started a new x session on tty8. This is display 1. The first session is tty7 display 0.
I can switch between them easily enough. CTRL ALT F7 goes to tty7. CTRL ALT F8 goes to tty8.
But if I try to run, say, the "import" command for screenshots on tty8, while switched to tty7, all it gives is a black screen.
The reason being, I think, because only one session is actually outputting at any given time. How do I make both of them output, so I can take a screenshot on 1 session, but use the other session to do other stuff?
I recently purchased a set of three professional mics and converters for them (they are XLR mics, so i bought three icicles to convert into the USB port)The computer sees all three microphones, but I can figure out how to be able to record on all three at the same time.Is this at all possible, or did I just waste a ton of money on converters?EDIT: I would like to add that these mics are identical, and I'm wondering if nothing else if it's possible to merge the two mount points so that it appears as one micEDIT AGAIN: I have also just installed Pulse Audio Volume Control, and it picks up both mics. How can i tell audacity to use this?
I'm planning on getting an HDTV soon, and I'd like to be able to hook it up to my computer so that I can watch movies on it through my computer. I don't want to have dual monitors in the traditional sense where my desktop is spread across two screens. Rather, I just want my desktop to appear exactly the same on both my monitor and TV.
Is this possible? And if so, what would be the best way to go about doing this? My video card has two DVI ports, so I was planning on running a cable from the unused port to my TV and using a DVI-VGA adapter. Or would I be better off getting a TV with an S-video port, which I also have on my card, and connecting it that way
Where I work we use almost exclusively Ubuntu 8.04 in command-line only form. I need to know if it is possible to configure one of these devices to use DHCP and a given Static IP at the same time. I know how to do one, or the other, but not both. #1. Is this possible? #2. If so, how?P.S. Yes, I did look around before I asked this, but I could not find anything. Maybe I suck at searching?
I have a Lucid server with several external (eSATA) NTFS formatted drives. Right now, I'm sharing everything through Samba and administered through Webmin. Partly because I'd like to play with it and learn more and partly to see if there's any appreciable difference in overhead and speed, I'd like to try out NFS.
My question is, can the two sharing schemes (NFS and Samba) coexist on the same box peacefully?If not, I can rid of Samba and go with NFS, but I'd rather give it a shot first.Plus, some of the clients are Windows machines, so I'd have to install the SFU tools in order to get an NFS client on them.