I'm setting up a logging script to track utilization on our deployed systems. I'm running it every minute using cron. Each time it runs, I get an entry in /var/log/messages telling me it ran. That is a lot of useless information. Is there a way to prevent the creation of these log entries?
I put in my cron entries to run my backup script which rsyncs my data to my 2nd drive, however on a hunch I checked my backup drive which mounts automatically via fstab and I realize it had not ran in a while. I checked cron and there were no entries for it. I got to wondering if I should ever be worried about a cron update coming down and over-writing my existing cron file with the backup entries in it to run.
I am using ubuntu 10.04 and I would like to keep only the main menu,and i have to disable all the other options including recovery and memtest in the GRUB menu..How to do this..?
I have so many entries in GRUB and have to actually scroll down so much to see windows entry. How do I remove unwanted entries in GRUB? Also How can I make a background picture appear when grub manager comes up?
I'm trying to add several cron jobs. I have a folder (/etc/cron.myapp) with several subfolders in it (30minute, 3minute, daily, hourly). Each of these folders contains a script.Runnng/usr/bin/run-parts /etc/cron.myapp/3minute/will execute the contents of that folder.I have tried adding the following entries to /etc/crontab with no luck, and nothing is showing up in /var/log/cron
All, i am receiving numerous entries for programs such as snmpd in my messages file. Is there a way to add a rule somewhere to have these and other annoying unimportant entries go to /dev/null or something?
I tried adding an entry to /etc/syslog.conf, but that hosed any logging into the messages file, so maybe i added it wrong?
I want to try and do this with out installing anything additional.
The system crontab (/etc/crontab) uses the same format, except that the username for the command is specified after the time and date fields and before the command.
[code]...
Every hour, I get an e-mail complaining about the first line of the crontab:
[code]...
I get the same complaint from the other entries: It looks to me as if cron, or anacron, is trying to execute the user (root) as a command. Predictably, the shell doesn't like it, so barfs and triggers an e-mail about it. Why is this not doing what the man page says it should do? The 2nd problem I believe is related to exim, not cron. The e-mails I'm getting above are being bounced from my ISP because they are directed to root@myisp.com, rather than my regular e-mail address. When the message bounces, it bounces to my regular e-mail address. In /etc/aliases, I have root: [URL]... and in etc/email-addresses I have root: [URL]... Adding the entry to /etc/email-addresses allowed the bounce to find me because the sender's address is [URL]... but how can I get cron to send these messages to me in the first place, instead of root?
I'm getting the following messages sent to my root account mailbox. It appears to be reporting an issue finding ntpdate, however when running the following command:
aptitude show ntpdate | grep State
It shows as installed and any ntpdate commands work with no issues, so I have no idea why this is getting regularly reported?
From root@mydomain.co.uk Wed Feb 03 18:20:01 2010 Return-path: <root@mydomain.co.uk> Envelope-to: root@mydomain.co.uk Delivery-date: Wed, 03 Feb 2010 18:20:01 +0000
I run in a script a mailx command like this:cat logfile | mailx -s'the logfile' to-me@..This works most of the time, but in some cases mailx automagically turns logfile into an attachment called 'attachment.bin'.I think this may be because 'logfile' contains a few control characters or escape codes?How can I tell mailx to be less intelligent and treat it as an ASCII text file?
I am working on Red Hat Linux since last six months and learning it steps by steps. like configurating ftp server,NSF ,DNS and then email server. I want to learn squid server but technically before going into it what you suggest me that may I first learn to configure Linux as a router,Firewall machine or do IP masquerading on a server. Because all these things are directly or indirectly involve in squid.So guide me because going to start squid i may understand Linux IP table ,how to add entries in it,how to delete entries ,I think you understand my point which i want to ask for guidence.
I have to hide Unix partitions to succeed in installing Linux and the winner is Ubuntu 10.10! I had to remove whole partitions entries. DOS based primary/logical partitions are now called (hd0,msdos1), (hd0,msdos2), etc. And BSD slices would have been (hd0, bsd1) (hd0,bsd2). I guess I saw those names during installation. update-grub failed in three attempts in a row on 2 machines (32 and 64 bit). Everything went fine after I removed the Unix partitions (which are going to be restored by openSUSE legacy Grub)
been searching google and forums for about 5 hours now, and can't figure this one out, I have a server running opensuse 11.2 sharing various NFS directories, I have one laptop that is running 11.2 and I have no problem getting my NFS shares from the server.On my other laptop that is running 11.3, I had the shares working at one point, but changed things around and added a new HD to the server, now I can NOT get this thing to work, I have tried everything I could find to read on it. Started and stopped the NFS server and exportfs -a, and checked /var/logs/messages on server and nothing about this laptop (192.168.0.102 suse 11.3) trying to connect.On this laptop, I have deleted all the shares, and tried to re-add them but still get this error everytime.on server /etc/export:
I just installed kde 4.4 and I noted that a filter I had built before does not work as before. The filter classified incoming mail into a "unknown" folder if the "From" and "To" fields matched "is not in address book". Some messages go to the unknown folder that did not before. Has anybody seen anything related to this? I has a look a kde bugs but could not find this described. The addresses are present in kaddressbook, it seems that kmail does not see them?
As every time when a new OpenSuse Version arrives, I tried to install 11.4 (I have 11.2 ans 11.3 on separate partitions, + a Windows 7 that already was there when I bought my computer). Previous versions always recognized existing installations and added them to the Grub list, 11.4 doesen't... it merely recognizes the Windows. This is blocking me from testing it before adopting, as I always do, as I don't know how to add these entries manually; I'm too afraid not to be able to add the entries once installed, and not being able to use my older versions in case I have troubles. What went wrong in this release that developers forgot this important part? How I could manually add my entries for 11.2 and 11.3?
I have a syslog-ng running and kernel build of 2.6.34.8 I use a syslog API in my program with facility LOG_LOCAL5 and and levels debug err and crit and info. when I ran on the older syslog facility I had everything logged fine as I intended. now I have written these rules into the syslog-ng.conf:
I have added some executable scripts to /etc/cron.daily but don't get the stdout/stderr output from them as mail (or anywhere else I have found). At least one of them is running (because I can see that it has added a file to the disk).
The peculiar thing is that I do get the output from /etc/cron.daily/0logwatch (part of the logwatch package) as an email each day.
The MAILTO line in /etc/crontab is "MAILTO=root" (unchanged from default). Same for /etc/anacrontab.
I do have an alias at the end of /etc/aliases which redirects root's mail to my own account, but this alias works fine for mail I send manually. (It also appears to work fine for the output from the file /etc/cron.daily/0logwatch.)
I've recently switched over to gnome desktop environment with gnome-shell preview as my compositing manager.Everything is good except for this process xfce4-notifyd which autostarts somehow..
The problem with this process is it acts as the default notification daemon over-riding gnome-shell's built-in notification support and tends to display balloon popups on the top right corner....If i kill this process everything is good.... But on restart it autostarts again somehow..I looked through the items in gnome-session-properties and also in these places:
Code:
/usr/share/autostart /etc/xdg/autostart
But couldn't find any entries related to xfce4-notifyd.
I just started using Kontact and have imported all my contact details from Thunderbird.This worked OK, but I find that when I start a new email and begin to type the recipient's name, the email address is not automatically pulled from the contact list as I would expect.I also noticed that there doesn't appear to be a 'Send Email' option in the Contact screen once an entry has been selected.Kmail seems to be collecting email addresses from any emails I send, and if I start typing one of these, then it does auto-complete
The only MS program I need on my computer is Word 2007 for the equation editor to write/edit files from work. So after installing Wine I installed MSOffice2007. Excel worked OK (although I don't need it - I am perfectly happy with the Libre Office spreadsheet). Word however froze each time so I tried to uninstall and reinstall it. However I always got an error message when trying to uninstall with Wine. So I followed the advice of some strands in this forum and deleted the Program Files folder from the ~.wine directory. However the menus are still in Wine/Programs/Microsoft Office even though they lead to nowhere. I tried to reinstall but still I nothing happened. I presume the old entries still lead to the position where previously the .exe files were located. Now my question is either how can I remove these menu entries and try installing again - or even better - is there a Linux programme that can read/edit the equations written in Word 2007?
I have a relatively stock OpenSuse 11.3 install with only the Packman and VLC additional repositories enabled. When I insert a DVD into the DVD drive, it shows up as TWO identical entries in the notifier applet and in Dolphin. I am unable to eject the DVD; as soon as it opens it immediately closes. Once the drive closes again,KNotify crashes with the following stack trace:Application: KNotify (knotify4), signal: Segmentation fault [Current thread is 1 (Thread 0x7f05cb8e1760 (LWP 4197))]
Thread 2 (Thread 0x7f05bc2ff710 (LWP 4198)):
#0 0x00007f05c8b686b3 in poll () from /lib64/libc.so.6 #1 0x00007f05c611ffd4 in ?? () from /usr/lib64/libglib-2.0.so.0 #2 0x00007f05c6120510 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0