Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Is There A Way....
Stevey_G
post Nov 9 2004, 07:05 PM
Post #1


./configure
***

Group: Members
Posts: 58
Joined: 23-February 04
Member No.: 2,448



.. to send out a messgae when a directory gets written to? I have basically setup a "torrent server", whereby users on the network have a mapped share to the machine, they stick the torrent in the torrent directory, it queues it, downloads it, and then once finished moves the completed file to a directory called "complete". I would like a small app which detects when that directory is written to(ie when a torrent completes) and broadcasts a messgae telling all users this. Sounds a little ambitious perhaps, but would be a good thing to learn IMO.
Go to the top of the page
 
+Quote Post
Jim
post Nov 10 2004, 07:24 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,280
Joined: 19-November 03
From: University of Minnesota- TC
Member No.: 1,828



It should be possible with a shell script. But I couldn't tell you where to start. Sorry, but I just thought you might like to hear it from somebody that it should be possible.

Just as a thought, would it be possible to embed it into the script that moves it to the complete directory?


--------------------
--Jim Lester
jim@linuxhelp.net

Distro: Gentoo
System: AMD Athlon 3000+ XP 2.166 GHz
NVIDIA nForce2 IGP Chipset
1GB 333 MHz DDR SDRAM
NVIDIA nForce2 Dual Head 64 MB Graphics

Server Distro: CentOS
Go to the top of the page
 
+Quote Post
hughesjr
post Nov 11 2004, 05:10 AM
Post #3


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



I would think Jim is right ... you can probably use the script that copies the file to the final destination to generate a message if it copies a file. What is coping the files to the final destination.

A problem would be how to send that message to users. Do you need to send the message via e-mail to remote users ... or locally on a network.

If a local netowrk, are the clients on Linux or Windows machines? If Windows users, are they in a Domain (NT or ADS) or a workgroup ... and are they all in the same domain or workgroup?


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
Stevey_G
post Nov 11 2004, 06:14 AM
Post #4


./configure
***

Group: Members
Posts: 58
Joined: 23-February 04
Member No.: 2,448



Your quite right actually, it may be possible to embed it in the script to move the files, however it is programmed in Java(not by myself) and I really dont know enough about java to recode and recompile it!
The only people who need to know that something has downloaded are people on my local network. The machines are all Winblows machines and are on a workgroup named LAWSON. Hope this helps!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd October 2017 - 03:25 AM