explain_remove_or_die(3) Library Functions Manual explain_remove_or_die(3)NAME
explain_remove_or_die - delete a file and report errors
SYNOPSIS
#include <libexplain/remove.h>
void explain_remove_or_die(const char *pathname);
DESCRIPTION
The explain_remove_or_die function is used to call the remove(2) system call. On failure an explanation will be printed to stderr,
obtained from explain_remove(3), and then the process terminates by calling exit(EXIT_FAILURE).
This function is intended to be used in a fashion similar to the following example:
explain_remove_or_die(pathname);
pathname
The pathname, exactly as to be passed to the remove(2) system call.
Returns:
This function only returns on success. On failure, prints an explanation and exits.
SEE ALSO remove(2)
delete a name and possibly the file it refers to
explain_remove(3)
explain remove(2) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2008 Peter Miller
explain_remove_or_die(3)
Check Out this Related Man Page
explain_mkdir_or_die(3) Library Functions Manual explain_mkdir_or_die(3)NAME
explain_mkdir_or_die - create a directory and report errors
SYNOPSIS
#include <libexplain/mkdir.h>
void explain_mkdir_or_die(const char *pathname);
DESCRIPTION
The explain_mkdir_or_die function is used to call the mkdir(2) system call. On failure an explanation will be printed to stderr, obtained
from explain_mkdir(3), and then the process terminates by calling exit(EXIT_FAILURE).
This function is intended to be used in a fashion similar to the following example:
explain_mkdir_or_die(pathname);
pathname
The pathname, exactly as to be passed to the mkdir(2) system call.
Returns:
This function only returns on success. On failure, prints an explanation and exits.
SEE ALSO mkdir(2)
create a directory
explain_mkdir(3)
explain mkdir(2) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2008 Peter Miller
explain_mkdir_or_die(3)
I have a file with which i must remove the last line of the file (the footer). I know how to copy and redirect with tail -1 etc, but how do i delete it permanentely (4 Replies)
Hi,
I am having a file which contains records as follows:
DETAIL_KEY~12344|ACTIVE_PASSIVE~Y|AVG_SIZE_OF_RESPONSE~123123131
DETAIL_KEY~12344|ACTIVE_PASSIVE~Y|AVG_SIZE_OF_RESPONSE~123123131
DETAIL_KEY~12344|ACTIVE_PASSIVE~Y|AVG_SIZE_OF_RESPONSE~123123131... (4 Replies)
How can remove string contains / in a file
for example my input like
<dgjfgjdgfjsdg/kdfhgdhgjkhdfjkg/jkdfjhdk/kjfdhgkdjh=kjfh:"dfjgdjfg"><dfjvgdjgvdjgfvjdgfjgdjfgjkdg><jdfgvjdgfjgbdjfgbj>
i would like to remove
<dgjfgjdgfjsdg/kdfhgdhgjkhdfjkg/jkdfjhdk/kjfdhgkdjh=kjfh:"dfjgdjfg">... (2 Replies)
I wanted to remove junk char in my csv. :mad:
Input file format:
"17","9986782190","0","D","2"
"17","9900918331","0","D","2"
"13","9986782194","0","A","2"
Output file format
9986782190
9900918331
9986782194
And one more thing all the time "13"," this will be different Ex: . (2 Replies)
Dear Team,
Please find the screen shot , which shows the attacked page of
of my website, people saying using the webmaster tool only we
can remove this malicious code.
but is it possible to remove the malicious code directly login in
to the server , its a dedicated server and... (2 Replies)
Hello Friends,
I am stuck with the below problem.Any help will be appreciated.
I have a file which has say 100 lines.
On the second last line I have a line from which i want to remove certain characters..
e.g
CAST(CAST( A as varchar(50)) || ',' ||
CAST(CAST( B as varchar(50)) || ',' ||... (8 Replies)
Hi,
I am trying to remove 1 VTD from VIOS, its not able to remove and throwing the following error.
VIOS1$rmdev -dev xxx334.xxxxAs
Some error messages may contain invalid information
for the Virtual I/O Server environment.
rmdev: 0514-519 The following device was not found in the... (5 Replies)