9 More Discussions You Might Find Interesting
1. UNIX and Linux Applications
Good evening, i need your help please
I will try to describe the scenario briefly: In a Telecom Production system application receives a certain files called CDRs(call detail records) to be processed by doing some operating systems operations and then database operations like creating indexes... (4 Replies)
Discussion started by: alexcol
4 Replies
2. Shell Programming and Scripting
Hello
I have created next scritpt to do the next: chekp if host is alive. When the host down, launch telnet other equip to do checks.
When execute the script the load average of the machines increase. For example:
Before launch script
top - 11:14:56 up 14 days, 18:06, 3 users, load... (3 Replies)
Discussion started by: capilla
3 Replies
3. Shell Programming and Scripting
Here we have concern. We have a IBM software installed in a server S1 in the location : /opt/IBM.
In this server S1, we have /opt file system in local disk. We don't have any option to increase the file system there.
We have created a separate /opt/IBM_NEW file system with 10GB in S1 server.... (1 Reply)
Discussion started by: mehimadri
1 Replies
4. Shell Programming and Scripting
I would like to affect an exploded string into an array.
one:two::fourinto an array:
a => one
a => two
a =>
a => four
Quite simple in other languages with functions like explode() or split().
The best I could come up with was this:
until
do
token=${string%%:*} # takes the... (8 Replies)
Discussion started by: ripat
8 Replies
5. Solaris
Hi,
I have a quick question with regards to creating symbolic links. Would creating a symbolic link from one directory to a file in another cause any issues for users that are currently logged into the box. I don't believe it will unless they are using the file in question, but I would like... (2 Replies)
Discussion started by: Chains
2 Replies
6. UNIX for Dummies Questions & Answers
I have modified the .profile in my profile and I don't see any effect.
Why the changes don't have effect?
I tried both on the account at a server where I have limited permissions as user and to my local pc (as user).
Is it the .profile overridden by some other file? It looks weird because I... (8 Replies)
Discussion started by: myle
8 Replies
7. Solaris
Hello gurus,
I have question. I have enabled ssh on the servers.
I am planning to change the oracle user's(os user) password. If I change the password will it affect the authorized_keys? Do I need to regenerate it.
Thanks, (2 Replies)
Discussion started by: oracleuser
2 Replies
8. Solaris
How do you make the changes take affect when you change the subnet masks or default router without rebooting? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies
9. UNIX for Advanced & Expert Users
Hello,
I have 2 sun servers. We are running Oracle apps. We have to apply patches to both servers whenever a patch needs to be applied for Oracle.
We use the same username eg. applmgr on both servers. We have a shared patch area which we can run the patch from on both boxes.
the uid for... (2 Replies)
Discussion started by: d__browne
2 Replies
APC_ADD(3) 1 APC_ADD(3)
apc_add - Cache a new variable in the data store
SYNOPSIS
bool apc_add (string $key, mixed $var, [int $ttl])
DESCRIPTION
array apc_add (array $values, [mixed $unused = NULL], [int $ttl])
Caches a variable in the data store, only if it's not already stored.
Note
Unlike many other mechanisms in PHP, variables stored using apc_add(3) will persist between requests (until the value is removed
from the cache).
PARAMETERS
o $key
- Store the variable using this name. $keys are cache-unique, so attempting to use apc_add(3) to store data with a key that
already exists will not overwrite the existing data, and will instead return FALSE. (This is the only difference between
apc_add(3) and apc_store(3).)
o $var
- The variable to store
o $ttl
- Time To Live; store $var in the cache for $ttl seconds. After the $ttl has passed, the stored variable will be expunged from the
cache (on the next request). If no $ttl is supplied (or if the $ttl is 0), the value will persist until it is removed from the
cache manually, or otherwise fails to exist in the cache (clear, restart, etc.).
o $values
- Names in key, variables in value.
RETURN VALUES
Returns TRUE if something has effectively been added into the cache, FALSE otherwise. Second syntax returns array with error keys.
EXAMPLES
Example #1
A apc_add(3) example
<?php
$bar = 'BAR';
apc_add('foo', $bar);
var_dump(apc_fetch('foo'));
echo "
";
$bar = 'NEVER GETS SET';
apc_add('foo', $bar);
var_dump(apc_fetch('foo'));
echo "
";
?>
The above example will output:
string(3) "BAR"
string(3) "BAR"
SEE ALSO
apc_store(3), apc_fetch(3), apc_delete(3).
PHP Documentation Group APC_ADD(3)