Linux / UNIX Tech Support Forum
This is a discussion on using shell commands in C within the Coding in General forums, part of the Development/Scripting category; I program in C. while doing some operations, i created some temporary files in my harddisk. However after the execution ...
|
|||||||
| Coding in General Discussion on PHP/Perl/Python/Ruby/GNU C or C++. MySQL, PgSQL and (X)HTML or any other programming languages you want. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I program in C. while doing some operations, i created some temporary files in my harddisk. However after the execution of the programs, i would like to remove the files. How can i remove these files? I only thought if it was possible to use shell command "rm" within the C program.
How is it possible? |
| Sponsored Links | ||
|
|
|
||||
|
well monk has pointed you right direction, howerver you should use popen() function insted of system()/exec() if you need to call a rm or other shell script. It is bit secure to use popen() then system(), IMPO
Quote:
__________________
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| See what commands have been run on your Linux server | sweta | Getting started tutorials | 5 | 30-04-2008 03:38 AM |
| How to monitor RSH commands | mformit | Solaris/OpenSolaris | 0 | 11-04-2008 09:44 PM |
| basic commands? | seshaionline | Getting started tutorials | 7 | 24-03-2008 11:30 PM |
| Commands required to monitor a Solaris servers | ramrishie | Solaris/OpenSolaris | 2 | 22-01-2008 05:17 AM |
| Log all SSH commands at ssh-client | abhijith | Getting started tutorials | 4 | 24-11-2007 10:17 PM |