10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi Team,
I have a requirement. We are processing 100s of thousands of files and had to tar 10K files each
The problem I face is, I would need to add the file into tar only when the write operation in the file is complete. How would I achieve this.
OS : Sun Solaris 5.8
Shell : KSH
... (7 Replies)
Discussion started by: mr_manii
7 Replies
2. Programming
HI team
Is it possible to track DB2 table on the data insertion,deletion and updates on daily basis . Do we have any inbuilt feature to handle audit analysis ?
Any help appreciated (1 Reply)
Discussion started by: Perlbaby
1 Replies
3. UNIX for Advanced & Expert Users
Hello Unix Gurus,
I am in the need to capture the terminal info a command was executed from in the history. Currently history lists only the time and command, but does not list the terminal that can help associate the command to an individual.
So my ask is - is there a way to capture/append... (3 Replies)
Discussion started by: abby007
3 Replies
4. Shell Programming and Scripting
Hi folks,
I have the basic query that there are 3 unix boxes having their individual access now in my team there are 4 members who are using the same credentials to access those 3 boxes through putty ssh from their windows desktop , now if i want to check which 4 members have executed the... (1 Reply)
Discussion started by: punpun66
1 Replies
5. Red Hat
Dear All,
I want to display the command related to current session in Redhat Linux 5.
Below history command display all the command in ~/.bash_history file.
$history
My requirement is the command executed in my current session.I mean to say.
Suppose after log in as root i executed
... (1 Reply)
Discussion started by: monojcool
1 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
My need is :
1. To know who , when , which command used.
2. Local user should not delete this information.
I mean , with an example , i can say
i have a user user1
i need to give all the following permissions to user1, :
a. A specific directory other than his home... (1 Reply)
Discussion started by: sriky86
1 Replies
7. UNIX for Advanced & Expert Users
Hi all,
My need is :
1. To know who , when , which command used.
2. Local user should not delete this information.
I mean , with an example , i can say
i have a user user1
i need to give all the following permissions to user1, :
a. A specific directory other than his home... (3 Replies)
Discussion started by: linuxadmin
3 Replies
8. UNIX for Dummies Questions & Answers
Hello
How to configure, or where to have each session history in different file
Example: someone is connecting as root and at this time is creating file in which we have history of executed command
to server is connecting another user and is created another file with command executed by... (1 Reply)
Discussion started by: vikus
1 Replies
9. Shell Programming and Scripting
Hi ,
I am pretty new to scripting, and I trying to write a script which is not working as I expect to ....
I am trying to write a script which starts from top directory and tracks all the folders and sub-folders till it reaches a file and gives the list of files as output for a given... (2 Replies)
Discussion started by: Rahul00000
2 Replies
10. IP Networking
could anyone Explain me with how the linux o/s keeps track of file
updates in network environment? for example, assume that more than one
computer is connected to network (with linux in all of them). if an
user say 'X' logged into terminal 1 and created a file with the name
of 'temp.txt'. The... (1 Reply)
Discussion started by: pjchoudary
1 Replies
SESSION_NAME(3) 1 SESSION_NAME(3)
session_name - Get and/or set the current session name
SYNOPSIS
string session_name ([string $name])
DESCRIPTION
session_name(3) returns the name of the current session. If $name is given, session_name(3) will update the session name and return the old
session name.
The session name is reset to the default value stored in session.name at request startup time. Thus, you need to call session_name(3) for
every request (and before session_start(3) or session_register(3) are called).
PARAMETERS
o $name
- The session name references the name of the session, which is used in cookies and URLs (e.g. PHPSESSID). It should contain only
alphanumeric characters; it should be short and descriptive (i.e. for users with enabled cookie warnings). If $name is specified,
the name of the current session is changed to its value.
Warning
The session name can't consist of digits only, at least one letter must be present. Otherwise a new session id is generated
every time.
RETURN VALUES
Returns the name of the current session. If $name is given and function updates the session name, name of the old session is returned.
EXAMPLES
Example #1
session_name(3) example
<?php
/* set the session name to WebsiteID */
$previous_name = session_name("WebsiteID");
echo "The previous session name was $previous_name<br />";
?>
SEE ALSO
The session.name configuration directive .
PHP Documentation Group SESSION_NAME(3)