08-15-2011
Hi birei,
Thank a lot for your help.
I Really appreciate your time and concern. Thank you very much for your help.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a 30 column tab delimited record file. I need to extract the first 10column. The following command to cut was not working
cut -f 1-10 -d "\t" filename.
Could any one keep on this .
Thanks in Advance (4 Replies)
Discussion started by: vinod.thayil
4 Replies
2. Shell Programming and Scripting
Hi everybody,
This time I am having one issue in perl.
I have to create comma separated file using the following type of information. The problem is the columns do not have any specific delimiter. So while using split I am getting different value. Some where it is space(S) and some where it is... (9 Replies)
Discussion started by: Amiya Rath
9 Replies
3. Shell Programming and Scripting
Hi,
I need to append the data in to a file by using tab delimiter.
eg:
echo "Data1" >> filename.txt
echo "\t" >> filename.txt (its not working)
echo "Data2" >> filename.txt.
the result sould be like this.
Data1 Data2 (6 Replies)
Discussion started by: Sharmila_P
6 Replies
4. UNIX for Advanced & Expert Users
hi every one
plz help me
i want to search for a line contains tabspace
This is a line The should be changed
see the above line is seperated with tab space i want to replace that tab space in to # as
This is a line#The should be changed
i have tried with... (4 Replies)
Discussion started by: kkraja
4 Replies
5. UNIX for Dummies Questions & Answers
Hello,
Is there a direct command to check if the delimiter in your file is a tab or a space? And how can they be converted from one to another.
Thanks,
G (4 Replies)
Discussion started by: Gussifinknottle
4 Replies
6. Shell Programming and Scripting
Hello experts,
I am new to this group and to 'SED' and 'AWK'. I have data (text file) with 5 columns (C_1-5) and 100s of lines (only 10 lines are shown below as an example). I have to find or select only the id numbers (C-1) of specific lines with '90' in the same line (of C_3) AND with '20' in... (6 Replies)
Discussion started by: kamskamu
6 Replies
7. UNIX for Dummies Questions & Answers
How can i make a tab delimiter file to a comma delimiter??? (13 Replies)
Discussion started by: saggiboy10
13 Replies
8. Shell Programming and Scripting
Hi,
I have two files like:
file1
chr1 40
chr1 50
chr2 10
chr2 60
file2
chr1 30
chr1 50
chr2 15
chr2 20
and want to get the difference of column 2 when column 1 is the same in both files. (4 Replies)
Discussion started by: linseyr
4 Replies
9. Shell Programming and Scripting
Hello,
I have some problem in inserting the space for the pairs of columns.
I have the input file :
I used this code below in replacing it using space in specific column (replace space in each two columns)
sed -e "s/,/ /2" -e "s/,/ /3" inputfile
Output showed :
However, I have many... (3 Replies)
Discussion started by: awil
3 Replies
10. Shell Programming and Scripting
Hi all ,
I have a file having 12 columns tab delimited .
I need to read this file and remove the column 3 and column 4 and insert a word in column 3 as "AVIALABLE "
Is there a way to do this . I am trying like below
Thanks
DJ
cat $FILENAME|awk -F"\t" '{ print $1 "\t... (3 Replies)
Discussion started by: Hypesslearner
3 Replies
LEARN ABOUT REDHAT
pam_close_session
PAM_OPEN_SESSION(3) App. Programmers' Manual PAM_OPEN_SESSION(3)
NAME
pam_open/close_session - PAM session management
SYNOPSIS
#include <security/pam_appl.h>
int pam_open_session(pam_handle_t *pamh, int flags);
int pam_close_session(pam_handle_t *pamh, int flags);
DESCRIPTION
PAM provides management-hooks for the initialization and termination of a session.
pam_open_session
Use this function to signal that an authenticated user session has begun. It should be called only after the user is properly iden-
tified and (where necessary) has been granted their credentials with pam_authenticate(3) and pam_setcred(3) respectively.
Some types of functions associated with session initialization are logging for the purposes of system-audit and mounting directories
(the user's home directory for example). These should not concern the application. It should be noted that the effective uid,
geteuid(2), of the application should be of sufficient privilege to perform such tasks.
pam_close_session
Use this function to signal that a user session has terminated. In general this function may not need to be located in the same
application as the initialization function, pam_open_session.
Typically, this function will undo the actions of pam_open_session. That is, log audit information concerning the end of the user
session or unmount the user's home directory. Apart from having sufficient privilege the details of the session termination should
not concern the calling application. It is good programming practice, however, to cease acting on behalf of the user on returning
from this call.
RETURN VALUE
A successful return from the session management functions will be indicated with PAM_SUCCESS.
The specific error indicating a failure to open or close a session is PAM_SESSION_ERR. In general other return values may be returned.
They should be treated as indicating failure.
ERRORS
May be translated to text with pam_strerror(3).
CONFORMING TO
OSF-RFC 86.0, October 1995.
BUGS
none known.
SEE ALSO
pam_start(3), pam_authenticate(3), pam_setcred(3), pam_get_item(3), pam_strerror(3) and pam(3).
Also, see the three Linux-PAM Guides, for System administrators, module developers, and application developers.
Linux-PAM 0.55 1997 Jan 4 PAM_OPEN_SESSION(3)