 |
GuildFTPd Official Forums for GuildFTPd Server
|
| View previous topic :: View next topic |
| Author |
Message |
FTPServerTools Site Admin
Joined: 03 May 2005 Posts: 92
|
Posted: Oct 09 2007 07:56 am Post subject: |
|
|
In guildftpd in the menu under Admin there is an event manager. With that one you can trigger things to happen when an event occurs. That should be fairly simple.. My dll was basically build for servu that does not have such an event manager so I build it myself. Now there is anotehr way to catch events, that is via making your own dll, similar to servuevent.dll.
If you only want to do something special when an event occurs then all you need is the event manager. THen you dont need any dll or whatsoever. |
|
| Back to top |
|
 |
moviemaniac
Joined: 03 Oct 2007 Posts: 9
|
Posted: Oct 09 2007 05:48 pm Post subject: |
|
|
| FTPServerTools wrote: | In guildftpd in the menu under Admin there is an event manager. With that one you can trigger things to happen when an event occurs. That should be fairly simple.. My dll was basically build for servu that does not have such an event manager so I build it myself. Now there is anotehr way to catch events, that is via making your own dll, similar to servuevent.dll.
If you only want to do something special when an event occurs then all you need is the event manager. THen you dont need any dll or whatsoever. |
I see.
Now suppose that I want computer A to say to computer b that guildftp has "registered" the creation of a new folder.
All I need is a small app on computer A that is capable of sending a message to a small app running on computer B (listening to a given port).
Then I can configure the event manager so that it calls the small app on computer A passing the message to it.
That is all, right? So I just have to write down small app A and B
Please tell me that I've been able to catch the point
Thanks for your help |
|
| Back to top |
|
 |
FTPServerTools Site Admin
Joined: 03 May 2005 Posts: 92
|
Posted: Oct 10 2007 04:27 am Post subject: |
|
|
Ok you could do that in various ways.
Solution 1: you have the messenger service running....
NET SEND {name | * | /DOMAIN[:name] | /USERS} message
Sends messages to other users, computers, or messaging names on the network. The Messenger service must be running to receive messages.
You can send a message only to an name that is active on the network. If the message is sent to a username, that user must be logged on and running the Messenger service to receive the message.
name Is the username, computername, or messaging name to send the message to. If the name is a computername that contains blank characters, enclose the alias in quotation marks (" ").
* Sends the message to all the names in your group.
/DOMAIN[:name] Sends the message to all the names in the workstation domain. If name is specified, the message is sent to all the names in the specified domain or workgroup.
/USERS Sends the message to all users connected to the server.
message Is text to be sent as a message.
So simply use net send.
Solution 2:
you find some freeware messaging program, e.g. a chat program and you find a small program that can communicate with that chat program. They are out there.... You run that and let it chat.
Solution 3:
You do it via irc....
Solution 4: use something like popnote or so. I dont know if you can evoke it in a commandline but you have to find it out. go to www.download.com and check out the Download > Windows > Chat, VoIP & Email > Chat programs. You'll find hundreds, there should be some usefull ones in there. Alternatively you can check on www.sourceforge.net . |
|
| Back to top |
|
 |
jgood4u
Joined: 05 Oct 2005 Posts: 33 Location: California
|
Posted: Oct 12 2007 02:20 am Post subject: just what I said: use the event manager |
|
|
| moviemaniac wrote: | | FTPServerTools wrote: | In guildftpd in the menu under Admin there is an event manager. With that one you can trigger things to happen when an event occurs. That should be fairly simple.. My dll was basically build for servu that does not have such an event manager so I build it myself. Now there is anotehr way to catch events, that is via making your own dll, similar to servuevent.dll.
If you only want to do something special when an event occurs then all you need is the event manager. THen you dont need any dll or whatsoever. |
I see.
Now suppose that I want computer A to say to computer b that guildftp has "registered" the creation of a new folder.
All I need is a small app on computer A that is capable of sending a message to a small app running on computer B (listening to a given port).
Then I can configure the event manager so that it calls the small app on computer A passing the message to it.
That is all, right? So I just have to write down small app A and B
Please tell me that I've been able to catch the point
Thanks for your help |
In my first reply to your original question on 5 Oct, I said exactly this. I'm beginning to understand that you have never read the Gftp help for Event Manager that comes build into Gftp. please start by reading this carefully - it's really short, and if you follow this whole page, you come to a hyperlink at the bottom "CHART". When you click the link, you get another page with a chart of all the variables, and which events use them, and an example of code of how to used them with further descriptions.
Presently, I am using this approach to both launch a process that is unique to the event, but further by sending the username and filename to the external file, it further processes that differently according to the user and they file being sent or received. Within that process file, I sent a message to my Instant Message application, so I can see what is happening on my screen anywhere in the world I'm logged in that IM service. the moderator has given you several other ways to pass messages, but this worked for me and is as simple as anything I could think of. Beyond what we've just told you, the only thing left is for us to actually write all the code for you, and the detailed instructions for how to implement it, and frankly, I see that as beyond the scope of this forum's charter. I've even posted code examples that does exactly this concept elsewhere in this forum. |
|
| Back to top |
|
 |
moviemaniac
Joined: 03 Oct 2007 Posts: 9
|
Posted: Oct 15 2007 04:54 am Post subject: Re: just what I said: use the event manager |
|
|
| jgood4u wrote: | | moviemaniac wrote: | | FTPServerTools wrote: | In guildftpd in the menu under Admin there is an event manager. With that one you can trigger things to happen when an event occurs. That should be fairly simple.. My dll was basically build for servu that does not have such an event manager so I build it myself. Now there is anotehr way to catch events, that is via making your own dll, similar to servuevent.dll.
If you only want to do something special when an event occurs then all you need is the event manager. THen you dont need any dll or whatsoever. |
I see.
Now suppose that I want computer A to say to computer b that guildftp has "registered" the creation of a new folder.
All I need is a small app on computer A that is capable of sending a message to a small app running on computer B (listening to a given port).
Then I can configure the event manager so that it calls the small app on computer A passing the message to it.
That is all, right? So I just have to write down small app A and B
Please tell me that I've been able to catch the point
Thanks for your help |
In my first reply to your original question on 5 Oct, I said exactly this. I'm beginning to understand that you have never read the Gftp help for Event Manager that comes build into Gftp. please start by reading this carefully - it's really short, and if you follow this whole page, you come to a hyperlink at the bottom "CHART". When you click the link, you get another page with a chart of all the variables, and which events use them, and an example of code of how to used them with further descriptions.
Presently, I am using this approach to both launch a process that is unique to the event, but further by sending the username and filename to the external file, it further processes that differently according to the user and they file being sent or received. Within that process file, I sent a message to my Instant Message application, so I can see what is happening on my screen anywhere in the world I'm logged in that IM service. the moderator has given you several other ways to pass messages, but this worked for me and is as simple as anything I could think of. Beyond what we've just told you, the only thing left is for us to actually write all the code for you, and the detailed instructions for how to implement it, and frankly, I see that as beyond the scope of this forum's charter. I've even posted code examples that does exactly this concept elsewhere in this forum. |
I've not asked you to write down any code for me.
All I've asked in my last message is for someone more skilled than me to simply answer "yes" or "no" to my question.
I had no idea on how to reach my goal, and thanks to all the posts here I've been able to realize what should I do. So I've exposed my conclusions asking for an opinion: "did I understand everything"? I do ot think that this can be equiparated to something like: "can you write down the code for me"?
After posting my last message, I've just wrote a simple server (a command line app)/client (a gui that runs in systray) app that should do what I am looking for. There is only one thing that I can't understand at this point. How can I let the server understand what event has occurred. I will solve this issue with a trick: I will pass a custom string for each event via the command line, and I will recognize the event simply by parsing this string.
i will post my results, with all the source code, as soon as I'm able to have the whole things working.
bye |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|