Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-16-2012, 06:34 AM   #1
Registered: Apr 2012
Location: Bangalore,India
Posts: 41

Rep: Reputation: Disabled
Smile To create a pop up in linux when a file is created

Hi Sir,

I have a requirement , that is

I used to run big simulations in solvers.I used to submit say file name 'xyz.dat'...So Once a simulation is run ,a solution folder is created with xyz.aqs in the folder where we have submitted the file 'xyz.dat'.

I would like to get a notification such as pop up from linux when the solution is just written on system. How it could be done.

Thanks in advance
Old 07-16-2012, 06:50 AM   #2
Senior Member
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 2,943

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
Dear Sir, I think you could use inotify(2) in achieving this.
Old 07-16-2012, 08:13 AM   #3
Senior Member
Registered: Mar 2004
Location: england
Distribution: Debian, Mint, Puppy, Raspbian
Posts: 3,420

Rep: Reputation: 198Reputation: 198
xmessage and a while/sleep loop would be easy.
Old 07-16-2012, 07:42 PM   #4
Registered: Sep 2003
Location: Fort worth, TX
Distribution: Debian testing 64bit at home, EL5 32/64bit at work.
Posts: 190

Rep: Reputation: 30
Dear Sir or Madam,

I have been using a program called notify-send in scripts. Most commonly like so:

notify-send -u critical -t 0 'The process is DONE!' 'Check /mnt/BACKUPS/0day for a list of new items' | sndfile-play /usr/share/sounds/gnome/default/alerts/bark.ogg
I also enjoy having the desktop notification "bark" at me as well; thus, the addition of the pipe to sndfile-play and a moment of happy recollection of a puppy named Fluffy.

notify-send is found in the libnotify (rpm) or libnotify-bin (deb) package.

Yours with fond regards,

Last edited by tonyfreeman; 07-16-2012 at 07:48 PM. Reason: fluffy
Old 07-18-2012, 06:14 AM   #5
Registered: Apr 2012
Location: Bangalore,India
Posts: 41

Original Poster
Rep: Reputation: Disabled

Dear sir,

Could you please explain me this in detail....


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux created gpg file and Vista edhe1 Linux - Software 2 09-26-2010 12:36 AM
How do I create my own Live CD for my newly created Linux From Scratch? pluckypigeon Linux From Scratch 1 01-14-2009 01:57 PM
There is no core file created in radhat linux dina3e Linux - Newbie 2 03-30-2008 02:46 PM
Linux Executable File Help (created from a .c file) MattG1981 Linux - Newbie 7 06-06-2004 04:54 PM
Create file using 'touch ./tmp.$$', file tmp.3941 is created, why? huangyanfeng Linux - General 1 04-13-2004 03:36 AM

All times are GMT -5. The time now is 07:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration