Debian :: Crontab Records - Send Notifications Only In Case Of Some Error
Feb 23, 2016
I got some crontab records and everything works fine. I installed mail server recently and all cron notifications started to come into my inbox. I'd like to receive only notifications about cron errors. I would rather not filter all notifications off.
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
View 1 Replies
ADVERTISEMENT
Aug 10, 2009
Is the crontab saved in case of server restarts?
View 2 Replies
View Related
Mar 12, 2010
I tried to add my wife , and when I put in a password for her, this error comes up."Please set a valid user name consisting of a lower case letter followed by lower case letters and numbers." I did all that and I still can't set a password for her.
View 3 Replies
View Related
Sep 28, 2010
How to write to KDE's OSD or notification from console?
i want to send a notification to the kde4 notification area (in desktop panel) from a small script. Is there a program for? I cant find anything.
View 1 Replies
View Related
Oct 6, 2010
I've written a simple perl code to learn switches in perl.My code is pasted below,
#!/usr/bin/perl
$opt = 1;
switch($opt) {
[code]...
View 3 Replies
View Related
Mar 3, 2010
I'm trying to learn how to send my self an email reminder using crontab, this is what I tried but I'm not getting the email.# m h dom mon dow command 33 13 * * 3 mail -s "This is a test" joedwalker.email@gmail.com < /home/joe/email.
View 3 Replies
View Related
Aug 26, 2010
I have a question about using crontab with /etc/crontab...
I had a cron job that I needed to run as root. At the time I thought that sticking it in /etc/crontab would be a good idea. However, I used the crontab command to edit /etc/crontab, which I guess is not standard procedure? Specifically, I configured /etc/crontab as my local user's crontab (i.e. sudo crontab /etc/crontab) then added my cron job as I would a local user crontab (i.e. sudo crontab -e).
Originally, my cron job looked like this:
30 * * * * root /my/batch/script &> /dev/null
After adding the new cron job I started seeing errors. Something to the effect of "can't find command root" or something similar. So I removed the 'root' user definition from the cron job and the job started running fine. However, because this is /etc/crontab, there are other system related cron jobs that have been defined to run under the root account (e.g. "17 * * * * root cd / && run-parts --report /etc/cron.hourly" runs as root, etc.). So these pre-existing system cron jobs, which up until now have been running smoothly, are now generating "can't find command root" errors. But I think that the system cron jobs _are_ successfully being run someplace because logrotate seems to be working.
So what I _think_ is happening is that /etc/crontab is being run twice: once as the system crontab, and once as my sudoed local user's crontab. When I run crontab -l I see nothing, but when I run sudo crontab -l I can see the contents of /etc/crontab. I am reluctant to delete my sudoed local user's crontab, because then in the process I would be deleting the system crontab, and I do not know how I should restore the system crontab's contents. (I am still not sure as to the most appropriate way to edit the system crontab).
How can I get out of this mess? I want /etc/crontab to go back to the way it was before--running _once_ as the system crontab. As for my new cron job, I'm willing to reconfigure it anywhere so long as I am still able to run it as root. Any ideas? (I am using Ubuntu 8.04 Server LTE)
View 2 Replies
View Related
Oct 25, 2010
I use the following code to send make-up file dialy via sftp with expect. When I run it from command line, it has no problem sending to the remoteSERVER side, but when it is running via crontab task, it did not do the put, so did not execute the batch file defined in -b option.
#!/bin/bash
#!/usr/bin/expect
curDate=`date +%Y%m%d`
filename="$RESULTS/make-up.${curDate}.001"
newname="make-up.${curDate}.001"
remoteDirName="/Inbound/PPP"
tempcmd="$RESULTS/tempcmdFiles"
[Code]...
View 1 Replies
View Related
Jul 2, 2011
How to set crontab not send mail notification to the owner script if the script success running? because I'm monitoring mail server, and notification from cron is not necessary for me. I'm using ubuntu 10.04 server
View 4 Replies
View Related
Apr 27, 2010
I am using Linux 64 bit Redhat Linux. I am trying to setup simple crontab as follow...1. Edited crontab file using crontab -e2. Listed the file once to verify it using crontab -l. This will display as.. 18 5 * * 2-3 ksh $HOME/testScript.sh > $HOME/testscript.out3. Logged in a root and restarted cron deamon using "/etc/init.d/crond restart"As per my understanding now my testScript should start running at 5:18 am Thuesday
View 3 Replies
View Related
Jan 18, 2010
I have those notifications bubbles that appear right and top of my Screen.
Besides being RIDICULOUSLY big, i don't need them
I don't know if it is the same, but they look like this:
NOTE THIS PICTURE IS JUST AN EXAMPLE I FOUND ON THE INTERNETS - I WANT TO DISABLE ALL NOTIFICATIONS
View 14 Replies
View Related
Oct 28, 2010
Kernel 2.6, Slackware 12.0
mkisofs 2.01
I do 'mkisofs -iso-level 1 -o image John Smith.txt'. Only an example. When I mount image, ls outputs john_smi.txt. So it has shorten to 8.3 and translated ' ' into '_'. This is in accordance with the manual, although it doesn't say the conversion will be done.
Quote:
-iso-level level
.........................
With all iso9660 levels from 1..3, all filenames are restricted to upper case letters, numbers and the underscore (_).
...........................
However, as it did not reject the file name, it should have converted it to all upper case, it seems to me. And -iso-level 2|3 does the same thing.
Code:
root@darkstar:~# mkisofs -iso-level 1 -o image John Smith.txt
Total translation table size: 0
Total rockridge attributes bytes: 0
Total directory bytes: 0
[code]....
View 5 Replies
View Related
Jul 8, 2011
I need to monitor PHP errors / warnings on few of our servers. The idea is to send email to developers / admins when PHP error/warning occurs on the server. Currently we run very ugly shell script from cron to do this which I want to replace with something better.I was thinking would logwatch be a good candidate for this. Run logwatch from cron every 5 minutes to check php service logs for the last 5 minutes?I've tried to get logwatch to check logs for last x minutes but so far without luck. Anyone already done this or should I go some other route with this?I'm using SLES as my test machine. I've installed the logwatch rpm and configured the PHP settings as shown here.
Currently I can get php log output when specifying '--range All' but how to tell it to display last few minutes logs?I've tried lot of range variations but nothing seems to work.I also tested adding 'for that minute / for those minutes' to the range command but then it won't output anything at all.
View 4 Replies
View Related
May 9, 2011
I ,unlike some others, have sound. Videos and music (..... ,online adds ect) work fine as do cd's in the cd rom. My mic on the other hand sounds like a cat being killed while someone is blowing on the mic while scratching fingernails on cut glass!! sense i have good sound i can assume the sound card is ok, but im at a loss as to why the mic records so badly. its a built in mic on my toshiba laptop (two months old). sound was great from it on windows 7 so must be a driver?
Toshiba L645D ,AMD 64 duel core, 3 G ram, Linux Debian Squeeze 2.6.32-5-686. EDIT: ok i can set the mic (Genome>volume controls> Recording>Digital) and the sound on the mic is great. but if i close the window and look again, its reset to mute. how do i lock in the settings??
View 1 Replies
View Related
Feb 8, 2010
I'm using fwrite to write into a file stored in a normal USB flash drive. My question is: if for example a sector is damaged, does fwrite try with another one before getting me a result? If not, If I recall fwrite, will it try with a different one or with the same?
View 3 Replies
View Related
Jun 15, 2010
I have some files and directories (some mixed case, and some all uppercase) that I have copied on a FAT32 USB stick, and when I load this on FC11 all the files and directories that have/are less then 8 characters (ie that fit into the 8.3 format) all go to lowercase.
View 1 Replies
View Related
Jun 3, 2011
I've configured my dhcp server to update dynamically the DNS zones of BIND9 name server. Everything works ok, except for reverse nslookup:
nslookup 10.141.50.3
Server:127.0.0.1
Address:127.0.0.1#53
[code]....
View 2 Replies
View Related
Apr 15, 2011
I'm trying to manually install Squeeze/KDE - i.e. not the whole kitchen sink that comes with the DVDs but a cut-down version suited to my needs. Since it's a custom install, and since I'm no expert, I can't be sure (even after reading TFM, and browsing forums) wehether the problem I'm having is to do with KDE/debian, or with my install method. Anyway, the jist of the matter is that after several attempts to install debian/kde, each time using slightly different sets of packages, I either have sound in KDE notifications, but not elsewhere, or else everything starts okay, but after some untraced post-install tweak I lose sound to everthing except KDE notifications.
I'm certain that it's not simply a matter of not setting the sound levels high enough, as Wesnoth (one of the packages not making sounds) cannot be set in the preferences dialog to enable sounds (i.e. cannot place check marks in the sound preferences dialog). Other games are also without sound, and so are flash videos in iceweasel. Also, when I start systemsettings>multimedia all of the tests come up positive with the nice kde sound being made.I've installed all the phonon packages I can think of, with and without alsabase. I've also tried to use a different backend apart from xine, but other than that I'm stumped.
View 11 Replies
View Related
Jun 23, 2011
is it possible disabling a crontab job without deleting the crontab description entry (by crontab -e)?I could also accept to change the entry itself. Now it's:0 0 * * 0-6 /home/me/cron/script.csh
View 4 Replies
View Related
May 26, 2011
There is a notifications-daemon, which shows sometimes infos like "5 updates, 5 security issues". It is represented by "i" in the system tray bar.Unfortunately, I cannot read the whole text of the messages there. I tried to click on it, right click, drag and what ever...Right now I have a line there "In order to complete this upgrade,...". And I cannot read it completely. How do I work with these notifications? Btw, KDE is running.
View 4 Replies
View Related
Jan 25, 2011
What package provides the utility found in the gnome-control-center for changing the notification themes? There is a gconf key that says slider, so it's possible it can be changed there, but I'm not certain what themes are available/valid
View 2 Replies
View Related
Jul 9, 2011
I've used the backport described on the debian news to switch from Open Office to Libre Office. It didn't work with Synaptic, but without any complications when I used "apt-get" on the command line.
Unfortunately this left me with a confused synaptic package management:
My former Open Office is gone, but I get notifications for an Open Office update. I tried to solve the problem by deleting the backport-ressource from my sources list, but the notification won't vanish.
Except Libre Office I'm using a clean squeeze installation without anything I couldn'd find on the main sources list...
Does anybody know how I can get rid of this useless notification?
View 8 Replies
View Related
Feb 16, 2010
Either no error and it doesn't run (The scripts all run fine manually and in the cron.daily, cron.hourly, etc. directories.) If it does try to run it, it shows this: Feb 16 12:59:01 buddha crond[3638]: (*system*) BAD FILE MODE (/etc/crontab). Here's my crontab:
[code]...
View 11 Replies
View Related
Nov 30, 2010
I've observed that if I copy a directory containing some files to an USB stick, files whose names are all upper-case are copied with all lowercase names. Is this expected behavior? The USB stick is shared with a Windows box.
View 13 Replies
View Related
May 15, 2015
Is there any way to get update notifications for security patches on debian jessie. I was using update-manager and update-notifier and wheezy and that worked good, Update-notifier on jessie doesn't seem like its working...
View 12 Replies
View Related
May 15, 2010
I'm running newest pidgin on sid and i have few problems. First of all notifications doesn't work (plugin is of course turned on), also even when i turn on blinking icon it's not blinking. Oh and why the tray icon is so small now?
View 1 Replies
View Related
Apr 6, 2011
I am using Kde 4.5 in Debian and I get some notifications after start that I need to update something. How can I disable it (I often don't want to waste bandwidth for such things)? I am using Debian Wheezy and Kde 4.5
View 1 Replies
View Related
Sep 3, 2011
I just reinstalled opensuse 11.4 on a lenovo ideapad. The install went well and afterwards I was installing other packages. In the midst of this I started getting a error both from the gui software management package and zypper.(I tried zypper to see what would happen). I thought at first a simple refresh of the repos or a reboot would probably solve this but it did not.All attempts to do any software manage failsnow.The basic error is ( tail of a long list from zypper)error: error(-30987) getting "" records from Requireversion index error: db3 error(-30987) from dbcursor->c_get: DB_PAGE_NOTFOUND: Requested page not found error: error(-30987) getting "" records from Requireversion index error: db3 error(-30987) from dbcursor->c_get: DB_PAGE_NOTFOUND: Requested page not found error: error(-30987) getting "" records from Provideversion index from a zypper update and something about the same from the gui. How can I solve this?
View 5 Replies
View Related
Jun 15, 2010
I am scheduling a command for a specific time every day.
Linux crontab format which I am using :- MIN HOUR DOM MON DOW CMD
30 08 10 06 * /home/mach/script.sh
Some presetting is required?
View 13 Replies
View Related
Mar 24, 2010
i tried to install banshee media player using zypper but it gives me this problem
[Code]...
Second problem my cd writer is kinda out of order so i followed this guide (Live USB stick - openSUSE) to make a live usb stick to try out other distros...... everything went well....dd wrote everything properly.....but when i try to boot, it says thats it is a non-system disk and says to replace it strike again....so basically its not working.....
i think i followed all the instructions in the guide properly....but still i am pasting it over here (the drive was given as sdb...i checked using ls -l) umount /dev/sdb dd if=/home/arkadeep/LinuxMint-8.iso of=/dev/sdb bs=4M;sync i used linuxmint..... yeah so dd writes everything and the size is also correct. so now i can't figure out what to do...
View 5 Replies
View Related