Sponsored Content
Full Discussion: Creating a Daemon
Top Forums Programming Creating a Daemon Post 78232 by svh on Monday 18th of July 2005 02:55:43 AM
Old 07-18-2005
Daemon

thanks,

thanks a lot.

svh
 

9 More Discussions You Might Find Interesting

1. Programming

daemon

I want to write background running program. How to use daemon function. Please send me source code. Thanks. (1 Reply)
Discussion started by: bat_oyu
1 Replies

2. Shell Programming and Scripting

is this daemon effiecient???

I just wanted a script to touch my files once a day so they don't get removed once a day from cleaning, however I was wondering if it was the most effiecient method? comments are appreciated! command-prompt>nohup toucher.sh & Toucher.sh #!/usr/local/bin/bash while ((1)) do ... (2 Replies)
Discussion started by: Shakey21
2 Replies

3. Shell Programming and Scripting

Creating a Daemon??

How in the world do you create a daemon and get it to start with a startup script? could someone tell me in detail im going nuts...thanks (1 Reply)
Discussion started by: nmajin
1 Replies

4. Programming

Daemon

i want to write a daemon service which listens the 8080 port and write down all the details in one file. How can i do this ? (2 Replies)
Discussion started by: santosh123
2 Replies

5. Shell Programming and Scripting

créating a daemon under unix

hi i want to create a daemon under unix or linux but i don't really know how so i will be grateful if you provide me links with examples or /andx how to do it thanks (2 Replies)
Discussion started by: student00
2 Replies

6. Shell Programming and Scripting

help needed with creating challenging bash script with creating directories

Hi, Can someone help me with creating a bash shell script. I need to create a script that gets a positive number n as an argument. The script must create n directories in the current directory with names like map_1, map_2 etcetera. Each directory must be contained within its predecessor. So... (7 Replies)
Discussion started by: I-1
7 Replies

7. Shell Programming and Scripting

Creating a daemon to run in background

I am trying to create a service to always run and monitor a script that has a tendency to hang, we could not find what is causing it to hang so are in the process of completely reprogramming just about everything, however, that will take upto 6 months. So I need to create this to monitor the... (5 Replies)
Discussion started by: ukndoit
5 Replies

8. Homework & Coursework Questions

Creating a .profile, displaying system variables, and creating an alias

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Here is what I am supposed to do, word for word from my assignment page: 1. Create/modify and print a... (2 Replies)
Discussion started by: Jagst3r21
2 Replies

9. Programming

Daemon process

I wish to make a process run in the background, but only one instance of it, and not many, so when the program is loaded, it has to check whether another instance of the same program is running and if so to exit. How do I do this ? (4 Replies)
Discussion started by: sundaresh
4 Replies
Mail::SRS::Daemon(3pm)					User Contributed Perl Documentation				    Mail::SRS::Daemon(3pm)

NAME
Mail::SRS::Daemon - modular daemon for Mail::SRS SYNOPSIS
my $daemon = new Mail::SRS::Daemon( SecretFile => $secretfile, Separator => $separator, ); $daemon->run(); DESCRIPTION
The SRS daemon listens on a socket for SRS address transformation requests. It transforms the addresses and returns the new addresses on the socket. It may be invoked from exim using ${readsocket ...}, and probably from other MTAs as well. See http://www.anarres.org/projects/srs/ for examples. METHODS
$daemon = new Mail::SRS::Daemon(...) Construct a new Mail::SRS object and return it. All parameters which are valid for Mail::SRS are also valid for Mail::SRS::Daemon and will be passed to the constructor of Mail::SRS verbatim. The exception to this rule is the Secret parameter, which will be promoted to a list and will have all secrets from SecretFile included. New parameters are documented here. See Mail::SRS for the rest. SecretFile => $string A file to read for secrets. Secrets are specified once per line. The first specified secret is used for encoding. Secrets are written one per line. Blank lines and lines starting with a # are ignored. If Secret is not given, then the secret file must be nonempty. Secret will specify a primary secret and override SecretFile if both are specified. However, secrets read from SecretFile still be used for decoding if both are specified. Socket => $socket An instance of IO::Socket, presumed to be a listening socket. This may be provided in order to use a preexisting socket, rather than have Mail::SRS::Daemon construct a new socket. $daemon->run() Run the daemon. This method will never return. Errors and exceptions are caught, and error messages are returned down the socket. EXPORTS
Given :all, this module exports the following variables. $SRSSOCKET The filename of the default socket created by Mail::SRS::Daemon. PROTOCOL
The daemon waits for a single line of text from the client, and will respond with a single line. The lines are all of the form "COMMAND args...". Currently, two commands are supported: forward and reverse. A forward request looks like: FORWARD sender@source.com alias@forwarder.com A reverse request looks like: REVERSE srs0+HHH=TT=domain=local-part@forwarder.com In either case, the daemon will respond with either a translated address, or a line starting "ERROR ", followed by a message. TODO
Add more daemon-related options, such as path to socket, or inet socket address. SEE ALSO
Mail::SRS, srsd, http://www.anarres.org/projects/srs/ AUTHOR
Shevek CPAN ID: SHEVEK cpan@anarres.org http://www.anarres.org/projects/ COPYRIGHT
Copyright (c) 2004 Shevek. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2004-06-23 Mail::SRS::Daemon(3pm)
All times are GMT -4. The time now is 03:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy