Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Chattr recursive exclude directory Post 303043171 by carnagel on Monday 20th of January 2020 04:23:24 PM
Old 01-20-2020
Thankyou, flawless execution.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Tar directory but exclude other

OS: SunOS perfs01 5.8 Generic_117350-23 sun4u sparc SUNW,UltraAX-i2 I want to tar a directory, but there are subdirectoires I want to exclude. Does anyone know how to do it? Please help. thanks. (1 Reply)
Discussion started by: leemjesse
1 Replies

2. Programming

recursive copy of the directory

I want to copy a directory recursively ( it again has directories) and the directory is on windows and is nfsmounted in vxWorks, i am using unix to develop the code for this, can any one suggest me how to copy the directories recursively. (7 Replies)
Discussion started by: deepthi.s
7 Replies

3. UNIX for Dummies Questions & Answers

Exclude a directory to tar

If use tar file from a directory , how to exclude a sub-directory in this directory ? ll drw-r--r-- 1 root root 4096 Oct 12 11:58 b drw-r--r-- 1 root root 4096 Oct 12 10:54 c drwxr-xr-x 2 root root 4096 Oct 12 11:57 d drw-r--r-- 1 root root 4096 Oct 12 10:54 d eg . I want to tar all files... (2 Replies)
Discussion started by: ust
2 Replies

4. UNIX and Linux Applications

CVS recursive diff -- how to exclude specific directories?

I think I've seen out there that there is a command to ignore specific files within a directory when doing a (-R) recursive diff. I've never used this so I was wondering if there was anyone who could provide an example how I would run this. My thoughts are something like: cvs diff -i <fileName1>... (2 Replies)
Discussion started by: airon23bball
2 Replies

5. Programming

Recursive remove directory.

What is the best way to completely remove dir with it's content ??? rmdir deletes only EMPTY dirs as i know. The man page of remove function says "remove() deletes a name from the file system." Can it remove any dir recursively ??? :rolleyes: (7 Replies)
Discussion started by: Trump
7 Replies

6. UNIX for Dummies Questions & Answers

recursive wc on a directory?

Hi all, I need to count the number of lines in all the files under a directory (several levels deep). I am feeling extremely dumb, but I don't know how to do that. Needless to say, I am not a shell script wiz... Any advice? thanks in advance! (13 Replies)
Discussion started by: bimba17
13 Replies

7. Shell Programming and Scripting

Exclude a directory in 'find'

Hi, I'm in the process of writing a shell script which will be ran under cron hourly and will check for files of specific age in my ftp folder, then moves those over inside a folder called "old" (which is within the ftp dir). But, I'm unable to figure out how to exclude the "old" folder when... (1 Reply)
Discussion started by: mutex1
1 Replies

8. UNIX for Advanced & Expert Users

Recursive directory search using ls instead of find

I was working on a shell script and found that the find command took too long, especially when I had to execute it multiple times. After some thought and research I came up with two functions. fileScan() filescan will cd into a directory and perform any operations you would like from within... (8 Replies)
Discussion started by: newreverie
8 Replies

9. UNIX for Dummies Questions & Answers

recursive copy into a directory and all its subdirectories...

I want to copy a file from the top directory into all the sub-folders and all of the sub-folders of those sub-folder etc. Does anyone have any idea how to do this? Thanks in advance of any help you can give. (3 Replies)
Discussion started by: EinsteinMcfly
3 Replies

10. Cybersecurity

Alternative for chattr

Hello im working on "remover script" which try to remove "kthrotlds MINER VIRUS" in next part of my remover script i have to work on files that it destroyed, virus use chattr to open and lock files and replace them with malicious content im looking for a solution to remove chattr and disable... (9 Replies)
Discussion started by: nimafire
9 Replies
sigsetjmp(3)						     Library Functions Manual						      sigsetjmp(3)

NAME
sigsetjmp, siglongjmp - Saves and restores the current execution context LIBRARY
Standard C Library (libc.a, libc.so) SYNOPSIS
#include <setjmp.h> int sigsetjmp( sigjmp_buf environment , int savemask); void siglongjmp( sigjmp_buf environment, int value); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: siglongjmp(), sigsetjmp(): XPG4, XPG4-UNIX Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Specifies an address for a sigjmp_buf structure. Specifies whether the current signal mask should be saved. If this parameter contains a 0 (zero) value, sigsetjmp() does not save the signal mask. Otherwise, the function saves the signal mask. Specifies the value you want written to the execution context as the return value of the sigsetjmp() function. If you specify 0 (zero) in this parameter, the execution context contains a value of 1 as the sigsetjmp() return value. See the RETURN VALUES section for more information. DESCRIPTION
The sigsetjmp() and siglongjmp() functions are useful when handling errors and interrupts encountered in low-level functions of a program. The sigsetjmp() function saves the current stack context in the buffer specified by the environment parameter. If the value of the save- mask parameter is not 0 (zero), the sigsetjmp() function also saves the process' current signal mask as part of the calling environment. You use the buffer specified by the environment parameter in a later call to the siglongjmp() function. The siglongjmp() function restores the stack context and (optionally) signal mask that were saved by the sigsetjmp() function. After the siglongjmp() function runs, program execution continues as if the corresponding call to the sigsetjmp() function had just returned the value of the value parameter. The function that called the sigsetjmp() function must not have returned before the completion of the siglongjmp() function. Because it bypasses the usual function call and return mechanisms, the siglongjmp() function executes correctly in contexts of interrupts, signals, and any of their associated functions. However, if the siglongjmp() function is invoked from a nested signal handler (that is, from a function invoked as a result of a signal raised during the handling of another signal), the behavior is undefined. CAUTION
The results of the siglongjmp() function are undefined if one of the following is true: The siglongjmp() function is called with an envi- ronment parameter that was not previously set by the sigsetjmp() function The function that made the corresponding call to the sigsetjmp() function has already returned. If the siglongjmp() function detects one of these conditions, it calls the longjmperror() function. If longjmperror() returns, the program is aborted. The default version of longjmperror() displays an error message to standard error and returns. If you want your program to exit more gracefully, you can write your own version of the longjmperror() program. RETURN VALUES
After the siglongjmp() function is finished executing, program execution continues as if the corresponding call of the sigsetjmp() function just returned. In other words, the execution context saved by the corresponding sigsetjmp() function is in place and execution continues at the statement immediately following the call to the sigsetjmp() function. Part of that execution context is the return value from the sigsetjmp() function. When the sigsetjmp() function actually returns (before the call to the siglongjmp() function), that return value is 0 (zero). When the siglongjmp() function returns, the execution context con- tains a non-zero value as the return value from the sigsetjmp() function. The value you specify in the value parameter to the siglongjmp() function is written to the execution context as the return value for the sigsetjmp() function. You cannot cause the execution context to contain a 0 (zero) value for the sigsetjmp() return value. If you specify 0 in the value parameter, the execution context contains a 1 as the sigsetjmp() return value. RELATED INFORMATION
Routines: setjmp(3) Standards: standards(5) delim off sigsetjmp(3)
All times are GMT -4. The time now is 04:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy