10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi, i am on AIX 5.3. I would like to write scripts that initiate or reattach to a screen session to run some commands either from unix or Universe. Can anyone assist me with a with a wuick primer on this. I can attach or initiate a screen manually and then run the commands but I would like to... (6 Replies)
Discussion started by: dustytina
6 Replies
2. Shell Programming and Scripting
Hi All,
I want to capture all the operations performed in the terminal. So to achieve this I used “script” command. This works as I expected. But this command captures all the standard output which is redirected to terminal. For example if i “tail” a file, even the tail output is getting... (2 Replies)
Discussion started by: kalpeer
2 Replies
3. Shell Programming and Scripting
Hi - i have an unix application which receives user input and prints certain details. the problem is i am trying to automate it and i don't know how to pass a list of commands to the application using shell script. here documents don't work as well - if i use the here document when i am opening... (3 Replies)
Discussion started by: azzazin007
3 Replies
4. AIX
We recently moved servers to a new data center, and now we're experiencing user sessions timing out after non-activity. We didnt experience this before, or know of any timeout settings that may have been changed.
Any things I can check out on the server? (3 Replies)
Discussion started by: NycUnxer
3 Replies
5. Solaris
I am not able to login in gnome session and java session in Sun solaris 9& 10 respectively through xmanager as a nis user, I am able to login in common desktop , but gnome session its not allowing , when I have given login credentials, its coming back to login screen, what shoul I do to allow nis... (0 Replies)
Discussion started by: durgaprasadr13
0 Replies
6. UNIX for Dummies Questions & Answers
Hi
Is there any way whilst in a telnet session you can view your client machine name that you are using to connect to the Unix box ? :eek: (2 Replies)
Discussion started by: mlucas
2 Replies
7. Shell Programming and Scripting
Hi there.
How do I make the DB connection see the parameter variables passed to the unix script ? The code snippet below isn't working properly.
sqlplus << EOF
user1@db1/pass1
BEGIN
PACKAGE1.perform_updates($1,$2,$3);
END;
EOF
Thanks in advance,
Abrahao. (2 Replies)
Discussion started by: 435 Gavea
2 Replies
8. Shell Programming and Scripting
Hi,
we have our shell sessions timing out after every 5 minutes , if there is no activity.
Is there any way i can keep my session for longer than 5 minutes or untill i end the session.
may be any dummy program that runs background and doesn't take up lot of resources or any ideas.
... (6 Replies)
Discussion started by: thomaso
6 Replies
9. Shell Programming and Scripting
Hi all,
Hope that we are all familiar with the "script" command, which helps us to record the session into any file, until we give "exit".
Can anyone help me, how to do this process from a shell script!? I face problem while ending the script using "exit" which comes out of the program. This... (3 Replies)
Discussion started by: mohanprabu
3 Replies
10. UNIX for Advanced & Expert Users
Hi All,
I've login to Unix using login name guest and I'm working on it,
I need another session to run some script hence tried to login
but password invalid it says here my question is :
Since I'm in working in one session can I set the password without knowing old password? is there any... (1 Reply)
Discussion started by: krishna
1 Replies
CGI::Session::Driver::file(3pm) User Contributed Perl Documentation CGI::Session::Driver::file(3pm)
NAME
CGI::Session::Driver::file - Default CGI::Session driver
SYNOPSIS
$s = CGI::Session->new();
$s = CGI::Session->new("driver:file", $sid);
$s = CGI::Session->new("driver:file", $sid, {Directory=>'/tmp'});
DESCRIPTION
When CGI::Session object is created without explicitly setting driver, file will be assumed. file - driver will store session data in
plain files, where each session will be stored in a separate file.
Naming conventions of session files are defined by $CGI::Session::Driver::file::FileName global variable. Default value of this variable
is cgisess_%s, where %s will be replaced with respective session ID. Should you wish to set your own FileName template, do so before
requesting for session object:
use CGI::Session::Driver::file; # This line is mandatory.
# Time passes...
$CGI::Session::Driver::file::FileName = "%s.dat";
$s = CGI::Session->new();
For backwards compatibility with 3.x, you can also use the variable name $CGI::Session::File::FileName, which will override the one above.
DRIVER ARGUMENTS
If you wish to specify a session directory, use the Directory option, which denotes location of the directory where session ids are to be
kept. If Directory is not set, defaults to whatever File::Spec->tmpdir() returns. So all the three lines in the SYNOPSIS section of this
manual produce the same result on a UNIX machine.
If specified Directory does not exist, all necessary directory hierarchy will be created.
By default, sessions are created with a umask of 0660. If you wish to change the umask for a session, pass a UMask option with an octal
representation of the umask you would like for said session.
NOTES
If your OS doesn't support flock, you should understand the risks of going without locking the session files. Since sessions tend to be
used in environments where race conditions may occur due to concurrent access of files by different processes, locking tends to be seen as
a good and very necessary thing. If you still want to use this driver but don't want flock, set $CGI::Session::Driver::file::NoFlock to 1
or pass "NoFlock => 1" and this driver will operate without locks.
LICENSING
For support and licensing see CGI::Session
perl v5.12.4 2011-07-08 CGI::Session::Driver::file(3pm)