6 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
greetings,
to be clear, i have a solution but i'm wondering if anyone has a cleaner way to accomplish the following:
the variable:
LSB_MCPU_HOSTS='t70c7n120 16 t70c7n121 16 t70c7n122 16 t70c7n123 16 t70c7n124 16 t70c7n125 16 t70c7n126 16 t70c7n127 16 t70c7n128 16 t70c7n129 16 t70c7n130 16... (2 Replies)
Discussion started by: crimso
2 Replies
2. Shell Programming and Scripting
Hello,
I have some tab delimited text data,
index name chg_p chg_m
1 name,1 1 0
2 name,2 1 1
3 name,3 1 0
4 name,4 1 0
5 name,5 1 1
I need to duplicate the "index" column, call it "id" and insert it after the... (8 Replies)
Discussion started by: LMHmedchem
8 Replies
3. Shell Programming and Scripting
$ cat data
Do NOT print me
START_MARKER
Print Me
END_MARKER
Do NOT print me
$ cat awk.sh
start=START_MARKER
end=END_MARKER
echo; echo Is this ugly syntax the only way?
awk '/'"$start"'/,/'"$end"'/ { print }' data
echo; echo Is there some modification of this that would work?
awk... (2 Replies)
Discussion started by: hanson44
2 Replies
4. Shell Programming and Scripting
I have a script that runs once per month. It performs a certain task ONLY if the month is January, April, July, or October.
MONTH=`date +%m`
if || || || ; then
do something
else
do a different thing
fi
Is there a neater way of doing it than my four separate "or" comparisons? That... (2 Replies)
Discussion started by: lupin..the..3rd
2 Replies
5. Shell Programming and Scripting
Greetings,
I'm doing a process whereby I need to search for all filenames containing a given bit of text and grab the newest file from what may be 20 results. In a script I'm writing,
i've got a monster line to do the sort as follows:
find /opt/work/reports/input -name "*$searchtarget*" |... (4 Replies)
Discussion started by: Karunamon
4 Replies
6. Shell Programming and Scripting
Sirs,
How can i set the session.gc_maxlifetime value by php coding.
Thanks
ArunKumar (4 Replies)
Discussion started by: arunkumar_mca
4 Replies
SESSION_SET_COOKIE_PARAMS(3) 1 SESSION_SET_COOKIE_PARAMS(3)
session_set_cookie_params - Set the session cookie parameters
SYNOPSIS
void session_set_cookie_params (int $lifetime, [string $path], [string $domain], [bool $secure = false], [bool $httponly = false])
DESCRIPTION
Set cookie parameters defined in the php.ini file. The effect of this function only lasts for the duration of the script. Thus, you need
to call session_set_cookie_params(3) for every request and before session_start(3) is called.
This function updates the runtime ini values of the corresponding PHP ini configuration keys which can be retrieved with the ini_get(3).
PARAMETERS
o $lifetime
-Lifetime of the session cookie, defined in seconds.
o $path
-Path on the domain where the cookie will work. Use a single slash ('/') for all paths on the domain.
o $domain
- Cookie domain, for example 'www.php.net'. To make cookies visible on all subdomains then the domain must be prefixed with a dot
like '.php.net'.
o $secure
- If TRUE cookie will only be sent over secure connections.
o $httponly
- If set to TRUE then PHP will attempt to send the httponly flag when setting the session cookie.
RETURN VALUES
No value is returned.
CHANGELOG
+--------+-------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+-------------------------------------+
| 5.2.0 | |
| | |
| | The $httponly parameter was added. |
| | |
+--------+-------------------------------------+
SEE ALSO
session.cookie_lifetime, session.cookie_path, session.cookie_domain, session.cookie_secure, session.cookie_httponly, ses-
sion_get_cookie_params(3).
PHP Documentation Group SESSION_SET_COOKIE_PARAMS(3)