Ubuntu :: Send A Libnotify From A Cronjob?

Feb 24, 2011

Is it possible to send a libnotify from a cronjob? I'd like a notify message when my daily backup is done. When I run my script from terminal everything is working fine, when (ana)cron runs it, it works as well but the notify is surpressed. My Guess was, that it happens because the jobs are run as root. Nevertheless is it possible to get a notification message?

View 4 Replies


ADVERTISEMENT

General :: Cronjob Directory / Send An Email If Directory Contains More Than Ten Files?

Oct 13, 2010

I want to run a cronjob every 15 minutes that checks a directory for files. If the directory contains more than ten files I want it to send an email to me.

All I have is this...

*/15 * * * * ls -l | wc -l | [filename] | mail -s "This is just a test" [email address]

I would rather not write a bash script. Is there an easier way to do this? I was looking into some commands like find and grep.

View 6 Replies View Related

Ubuntu :: Use A Libnotify Plugin - On Synaptic

Mar 28, 2011

I'm using Emesene here and trying to use a libnotify plugin. But then, this annoying thing happens: But I'm pretty sure I have libnotify installed, saw that on Synaptic.

View 9 Replies View Related

Ubuntu :: Mail-notification Doesn't Use Libnotify

Apr 10, 2010

I have mail-notification installed (using Lucid beta) but for some reason it doesn't send notifications using libnotify, but instead shows a standard gtk pop-up. I have the evolution plugin for mail-notification installed, and in fact the issue is not related to evolution, since I tried setting up mail-notification directly for an IMAP account and got the same ugly pop-up.

View 9 Replies View Related

OpenSUSE :: Libnotify Not Working In GNOME (11.4)?

Mar 29, 2011

libnotify doesn't display anything, even when I test it with notify-send in the terminal. I recently installed KDE and XFCE to test them out, but uninstalled them later, and I think that may have caused something to break.

View 6 Replies View Related

Debian :: Libnotify Only Shows One Message At A Time?

Nov 13, 2010

Any time I watch a screencast dealing with notifications, there are always multiple of them on the screen. But when I have a program that uses them it always just allows one at a time.

View 10 Replies View Related

Software :: Detect Libnotify Popup Notification?

Apr 24, 2011

How to detect libnotify popup notification? I would like to set while loop that checks for notifications (from liferea rss reader) and play sound when notification is shown.. Have tryed:

[Code]....

View 1 Replies View Related

Fedora :: Compiling Programs - No Package Libnotify Found

Jul 26, 2011

I want to compile program. "./configure" giving :

Code:
[kuba@Kuba-fedora uget-1.8.0]$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executable .....

Configure: error: Package requirements (libnotify) were not met:
No package 'libnotify' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables LIBNOTIFY_CFLAGS
and LIBNOTIFY_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. But I have the newest version of libnotify.

View 2 Replies View Related

Ubuntu :: Cronjob Stops After Several Seconds?

Sep 13, 2010

I want to use a cronjob to start a script running streamripper to record radioshows when I'm not at home. I'm running 10.04 server 32 bit.

I've setup a cronjob via Webmin to start the recording. It runs the following script:

Code:
ORDNER=`date +%Y"_"%m"_"%d"-"%H"_"%M"(FM4)"` # 'ORDNER' means Folder and creates a folder with time/date to save the stream
streamripper http://mp3stream1.apasf.apa.at:8000/ -d /mnt/Samsung/Radio/$ORDNER --xs_padding=2000:500 -a -q -s

[Code]....

Is there any logfile or way to see why the script is killed or what stops the recording? When executing the script manually the recording runs just fine until I kill the process.

View 2 Replies View Related

Ubuntu :: Cronjob Not Starting Backupscript?

Apr 18, 2011

I wrote a little backupscript wich is working fine if i start it from the shell manualy. But I'm not able to let it start automaticaly via cron in ubuntu 10.10.

Here the bashscript:

#!/bin/sh
####################################
#
#
#
####################################

[Code]......

View 1 Replies View Related

Ubuntu :: Changing Fb Background Cronjob?

Jun 6, 2011

I'm trying to change my desktop background on my fluxbox desktop every minute using cronjob to a random picture within my Pictures folderthis is crontab -e file;

Code:
# Edit this file to introduce tasks to be run by cron.
#

[code]....

View 2 Replies View Related

Ubuntu :: Cronjob Results Filling Up / Directory?

Feb 22, 2011

Some of my cronjobs are filling up files in my / directory. How do I make this stop? One of my cron jobs uses wget:[URL].. The bexcb0.php file writes a file and then echos a result if it is sucsesfull. These echo results are being put into bexcb0.php files in my /root folder and are piling up.

My / folder is filling up with files bexcb0.php etc bexcb0.php bexcb0.php.1 bexcb0.php.2 bexcb0.php.3 bexcb0.php.4 bexcb0.php.5 etc How do I make this stop? If I just remove the echo will they stop writing to the / folder?

View 1 Replies View Related

Ubuntu :: Root Cronjob Not Working On Schedule

Jun 27, 2011

I have added "@daily shutdown -r now" to my root crontab (sudo crontab -e) but it does not seem to ever run. When I look at the chron log using webmin I can see that it tried to run and there was no error. Also when I run it manually using webmin the system reboots fine. I also tried using reboot -f in the crontab instead and that also worked when manually run but not on schedule. The reason I know it didn't run is on webmin it shows the system uptime. This is the output of the chron log:

Code:
Jun 26 21:17:02 GrantLaptop CRON[3467]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Jun 26 22:17:01 GrantLaptop CRON[3873]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Jun 26 23:17:01 GrantLaptop CRON[4269]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Jun 27 00:00:01 GrantLaptop CRON[4530]: (root) CMD (shutdown -r now)
Jun 27 00:17:01 GrantLaptop CRON[4630]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Jun 27 01:17:01 GrantLaptop CRON[5005]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Jun 27 02:17:01 GrantLaptop CRON[5416]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)

View 5 Replies View Related

General :: How To Set Cronjob In /etc/crontab

Apr 10, 2011

I know crontab -e sets a cronjob in /var/spool/cron but how do I set a cronjob to run from /etc/crontab? Is there a command used for this or would I have to manually edit a certain file?

View 2 Replies View Related

Server :: Run Cronjob Once Every Three Months?

Apr 30, 2010

I am trying to run the following only once every three months but looks like it runs every day. I edited crontab -e and added the following:

Code:

0 23 * jul,oct,jan,apr * /path/to/script > /var/log/script.log 2>&1

View 2 Replies View Related

General :: Cronjob / Run The Files Everyday At 11.00 Pm?

Apr 23, 2010

I need to run the files everyday at 11.00 pm (Monday to Friday).

How would I put on cronjob? I have files ready.

View 5 Replies View Related

General :: Configure Cronjob To Run Every 45 Days

Nov 19, 2010

we have requirement like we need to run the sql script, which needs to be executed for every 45 days.

View 1 Replies View Related

General :: Pop Up Message From Cronjob Run Script?

Dec 22, 2010

I'm working on a bash script that will be run regularly via a cronjob. As there is no easy way for the user to see if it's running in the background, I'd like a have some kind of pop up window what say's something like "Process started" and "Process finished" when it's complete. Ive read though some similar threads and came across xmessage. It kind of does what I want, with the exception of:-Id like the message Process started to stay up for the whole process, but it looks like the script wont continue until the xmessage window is closed. I cant get any xmessages to appear when the script is run from a cronjob. It only appears if I run the script manually from a terminal window. Which is no good for me. If anyone has any suggestions that would be great and just to add, it's doesn't have to be xmessage, any text box would do. I'm working with Redhat 4 and 5, if that makes a difference. Chuck Norris destroyed the periodic table, because he only recognises the element of surprise.

View 2 Replies View Related

General :: Return Value Of Tftp Is Always Zero In Cronjob?

May 15, 2010

I have called an script in cronjob named get_mac.sh as follows:

#!/bin/sh
MAC=`ifconfig eth0 |sed -n 1p|awk '{print $5}'|awk -F : '{print $1$2$3$4$5$6}'`
ARG_FILE="/etc/asterisk/scripts/server.params"

[code]....

View 1 Replies View Related

Server :: Way To Setup Cronjob For Configuration?

May 27, 2010

I'm trying to setup a cronjob that needs to run every 40 minutes between 10am and 3.30pm.I generally used cronjob for simple configuration, but now I'm a bit lost.There is a way to setup cronjob for that configuration? (better if all in one line of code, not multilines).

View 4 Replies View Related

Server :: Email Myself Output Of Cronjob?

May 10, 2010

I have the following Cron job scheduled on my Postfix mail server: Code: 00 18 * * * /usr/bin/clamscan -r --remove /home/.This is just running a scan on my entire /home/ directory and removing any infected files it finds. My question is since this is being ran at 6pm via Cron, how can I get the results of this job emailed to me via text? Does anyone recommend a command I can add to the end which will dump the results into a file or email and send it to a specific email address? This server is my company Postfix MTA for everyone.

View 14 Replies View Related

Software :: Cronjob And Feh / When Its Run Via Cron It Fails?

Aug 21, 2010

I wrote a small bash script to use feh to change my background every time its called. I use a cron job to have it execute every 5 minutes.

When I run the script manually it works perfectly, however for some reason when its run via cron it fails. I can see that it is executing but it seems to error for some reason.

Its kind of a drag to have a working script that when run as a cron job suddenly no longer works.

View 7 Replies View Related

Software :: Not Able To Open Web Browser With Cronjob

Jan 4, 2010

I have to run one testcase which opens a web_browser on Linux machine. When a run with cygwin it works but I can't always keep it open. I want to schedule a cronjob to run this testcase.

View 1 Replies View Related

Ubuntu :: CronJob - Alarm Clock Setup With Snooze Function

Feb 4, 2011

I need to set up an alarm to start at 7:30am and run every 5 seconds until I stop it. How would I acheive this in cron tab?

View 2 Replies View Related

Debian Multimedia :: Cronjob No Longer Running

Aug 4, 2015

I am running Debian 8 with the Xfce Desktop Environment.

A few weeks ago I created a cronjob which randomly changed my desktop wallpaper every two minutes. Here is that cronjob:

Code: Select all*/2 * * * * DISPLAY=:0 /home/alessandro/bin/random_wallpaper

Today, however, this cronjob stopped working. (The random_wallpaper script still works as intended.) The only changes I made to my system were

1) I modified my compton configuration settings; and
2) I installed a new display manager, SLiM.

I'm not sure why any of these changes would prevent my cronjob from running though.

View 0 Replies View Related

General :: Change Rsyn Cronjob Via PHP Script ?

Apr 13, 2010

Currently we have to comment out an rsync task every now and then. Is there a way to have a PHP script on the server so we can simply browse to it to uncomment the rsync task and another one to comment it out again ?

The rsync job is the only job in crontab so even if it means deleting / re-creating the job wouldn't be a problem. I just want to avoid connecting via SSH and VPN every time I am asked to disable it

View 1 Replies View Related

General :: Cronjob / Execute At 4:30 Pm On 2nd Monday Of Each Month?

May 10, 2010

Cron setup for execute at 4:30 pm on 2nd monday of each month.

50 16 8-14 * mon /home/user/script.sh

It seems to be ignoring the date range 8-14?

View 1 Replies View Related

General :: Receive Emails About A Cronjob Execution?

Jun 15, 2011

how I can receive emails about a cronjob execution or where to go to read about that? I am using CentOS 5.4.

View 2 Replies View Related

General :: Setup A Cronjob It Only Runs If Logged In?

May 6, 2010

I wrote this little script and it runs very well, however when I setup a cronjob it only runs if I am logged in. I would like to have this script running even when I am not logged in. At the moment it runs but only when I am logged in. I logged as denis and in terminal (su root) and edited crontab as shown below, what do I need to change or setup to have this script run when no-one is logged in the computer. I run Fedora 12 (64 bit)

backup script:

cd /home/denis/Documents
tar -czvPf /home/denis/Backups/docsbackups_$(date +%Y%b%d_%HH%MM).tar.gz /home/denis/Documents
# above line will produce file with name in this format "docsbackups_date&time.tar.gz" in the /home/denis/Backups folder

[Code].....

View 4 Replies View Related

General :: LAMP Set Up In Ubuntu10.04 Rev189 And CRONJOB?

Jul 12, 2010

I am a PHP developer.I have always used XAAMP(in Windows7) for development purpose. I am driven to turn to Linux now . I have installed Ubuntu10.04-rev189(Wubi) in Windows7 recently. I have a PHP script which require the following tasks to be performed.

1. Give permissions "777" to the following files and folders:_cache media images /configs.php mages/config_photo_preview.jpg

2. Set up cron jobs on your site like this: /usr/local/bin/php -q /your-site-root-dir/cron/index.php I need to get an environment like XAAMP and perform the above mentioned tasks.

View 1 Replies View Related







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