It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I´m try to write a small daemon in c++ than run in linux.
I like that the daemon parse a iptables log file every minute.
What is the best way to structure the code, maybe a while true with sleep, threads, or another things?
Thanks
Do you need a daemon ? i.e. do you need a process running all the time ?
From the description above, I would be tempted to invoke a script to parse the log every minute via cron.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Is there a piece of C++ code which allows me to delete files in a specific directory which is like 30 days old? or when the drive which stores them is full? Thanks!
See
unlink - to delete files
stat - to find out times
readdir - to list files
use crontab to run the program once a day.
Alternatively use find and avoid the hassle.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I've written a program to generate a fractal, but my computer would take a week to compute it. Is there any online or otherwise, solution where I can run my code and have it compute quickly?
No, not to be rude and don't take this wrong. Nobody is going to let people use there full computer's resources over the web to let you run code, it will always be slower online. For free.
However VPS and Cloud-Computing options are available. They will be expensive for a really fast computer.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I use Nant to run the test with Nunit.
Is it possible to set the time in the Nant .build file,
and let the test run in the time as I set.
And if it can be execute ,how can I write the build file?
It sounds like you're talking about setting up a continuous integration environment.
I highly recommend you look into Jenkins as it's extremely easy to get up and running, and will do exactly what you want.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I have to create a simple application for accademic use, where I have to instantiate an authentication run using diffie hellman and other stuff. I need to know how I can create a connection between two instance of the program. Can I create some type of connection (maybe TCP) with c++ function?? There's some libraries to do the networking?
You can use boost, here are some examples:
http://www.boost.org/doc/libs/1_36_0/doc/html/boost_asio/examples.html
The term for such communication is Inter Process Communication (IPC)... you might start by reading http://en.wikipedia.org/wiki/Inter-process_communication
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
i m running a website from a global webserver and a wants to store a data from a form to my localhost (like wamp) too........ is it possible.....
Use cookie.
You will need to explain a lot more if you want anyone to be able to help you.
What is a "global webserver"? What kind of site or web application are you running on it? What does your form do? What data do you want to save? And what do you want to do with it?
To get you started, here's some advice on how to ask questions in technical forums. It's a bit long, and somewhat harsh, but still recommended reading.
http://catb.org/esr/faqs/smart-questions.html