I was wondering if i can run a dll (c#) with crontab ? The dll is compile with mono.
thx 🙂
— EDIT —
Well it can be a .exe. I was looking at daemons on mac and linux, do you think I can run .exe as a daemon.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Why not write a mono-based exe that takes the DLL path and entry point method as parameters? The exe would then use reflection to load the DLL and execute the specified method. (You could opt for convention-over-configuration by specifying something like a DllMain method in your DLL which the exe would know to call automatically. Then just one parameter would be required and the intent of your code more obvious.)
Implementing such an applet would give you a utility similar to RunDll in Windows and allow you to run mono DLLs from cron.