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
SESSIONHANDLERINTERFACE.READ(3) 1 SESSIONHANDLERINTERFACE.READ(3)
SessionHandlerInterface::read - Read session data
SYNOPSIS
abstractpublic string SessionHandlerInterface::read (string $session_id)
DESCRIPTION
Reads the session data from the session storage, and returns the results. Called right after the session starts or when session_start(3)
is called. Please note that before this method is called SessionHandlerInterface.open(3) is invoked.
This method is called by PHP itself when the session is started. This method should retrieve the session data from storage by the session
ID provided. The string returned by this method must be in the same serialized format as when originally passed to the SessionHandlerInter-
face.write(3) If the record was not found, return an empty string.
The data returned by this method will be decoded internally by PHP using the unserialization method specified in session.serialize_han-
dler. The resultig data will be used to populate the $_SESSION superglobal.
Note that the serialization scheme is not the same as unserialize(3) and can be accessed by session_decode(3).
PARAMETERS
o $session_id
- The session id.
RETURN VALUES
Returns an encoded string of the read data. If nothing was read, it must return an empty string. Note this value is returned internally to
PHP for processing.
SEE ALSO
The session.serialize_handler configuration directive. .
PHP Documentation Group SESSIONHANDLERINTERFACE.READ(3)