![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Unable to chmod a file/directory | lyonsd | SUN Solaris | 12 | 04-27-2009 06:08 AM |
| use a file to chmod | ruben.rodrigues | Shell Programming and Scripting | 3 | 01-15-2009 12:02 PM |
| chmod erased a directory(?) | SmooBG | UNIX for Dummies Questions & Answers | 1 | 11-14-2005 03:05 PM |
| what to chmod to write in a directory? | phonedog365 | UNIX for Dummies Questions & Answers | 2 | 05-30-2005 05:23 PM |
| directory permissions and CHMOD | ncarmstrong | UNIX for Dummies Questions & Answers | 3 | 08-14-2002 02:00 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
chmod:No such file or directory
Code:
sprintf(fname, "core.%d", pid);
(void) unlink(fname);
if (ttrace(TT_PROC_CORE, pid, 0, 0, 0, 0) != 0) {
perror("TT_PROC_CORE pass");
Fail();
}
if (chmod(fname, 0) != 0) {
perror("chmod");
Fail();
}
Hi, If i execute above code,everytime am getting below error.. =============== STANDARD OUTPUT: FAIL STANDARD ERROR: chmod: No such file or directory =============== Could you please let me know how to overcome that issue.. Is there anything wrong in the code.. Thanks in Advance, Mansa |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|