LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-23-2009, 06:17 PM   #1
beckettisdogg
Member
 
Registered: Mar 2009
Distribution: Slackware 13.0
Posts: 60

Rep: Reputation: 16
How can I write a C program or customize my Linux environment so...


I plan to write a c program. and the c program will create ascii text files each time it runs.

how can I write the C program, or customize my Linux environment so the text files get deleted exactly after an hour they are created?

thankx, linuxquestions!
 
Old 09-23-2009, 07:23 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
2 options
1.Put the create & remove programs in cron.
2. write a wrapper daemon that loops once an hr; see sleep cmd
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
steps to write, compile, and execute a C program in Linux environment arnoldschrewanger Programming 1 03-10-2009 10:17 AM
how to write a c-program in vector linux bluewing_linux Linux - Newbie 2 05-20-2008 10:25 AM
Customize desktop environment and theme uzee Linux - Newbie 5 03-26-2008 06:41 AM
how to execute a .exe file in linux environment from a c program? aakanksh_c Linux - General 1 09-18-2005 04:26 AM
How to customize the desktop environment for a user? UddUnderline Linux - General 2 08-04-2003 02:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration