Perhaps you need to use the at service to call a script that sends SIGUSR1
or SIGUSR2 to your process. Then write a signal handler that switches to a
new data file.
Also, for generating filenames based on timestamps, you probably will find
the strftime system call is helpful.
http://www.opengroup.org/onlinepubs/007908799/xsh/strftime.html
Good luck!
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Patel,
Nilesh M
Sent: Monday, February 21, 2005 8:29 AM
To: dev...@li...
Subject: [Dev-C++] new file creation
If there a way in c++ where I can have a data file being created everyday or
at a specific time/date.
Currently I am creating a new file after every 100th entry, which works
GREAT.
I have searched online for some help, but unable to. Is there any syntax or
algorithms for creating a new file, giving a specific time or date.
example, create a new file every month, year, etc. ?????
any help will be greatful.
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of
dev...@li...
Sent: Monday, February 21, 2005 10:52 AM
To: dev...@li...
Subject: Dev-cpp-users digest, Vol 1 #2324 - 6 msgs
Send Dev-cpp-users mailing list submissions to
dev...@li...
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
or, via email, send a message with subject or body 'help' to
dev...@li...
You can reach the person managing the list at
dev...@li...
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
___________________________________________________________________
The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure. If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof. Thank you.
|