LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 07-16-2012, 06:34 AM   #1
bal_nair1
Member
 
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
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,618

Rep: Reputation: 484Reputation: 484Reputation: 484Reputation: 484Reputation: 484
Dear Sir, I think you could use inotify(2) in achieving this.
http://www.linuxforu.com/2011/04/get...-with-inotify/
 
Old 07-16-2012, 08:13 AM   #3
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,284

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

Rep: Reputation: 30
Dear Sir or Madam,

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

Code:
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
bal_nair1
Member
 
Registered: Apr 2012
Location: Bangalore,India
Posts: 41

Original Poster
Rep: Reputation: Disabled
Smile

Dear sir,


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


Reply


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 04:42 PM.

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