01-26-2012
Permanent Dynamic “View”
Is there a way to make a permanent pseudo-file, whose contents may dynamically change? I'm thinking of something like an SQL view here. I've been trying to do this with pipes, but I haven't been able to crack it.
For example, I have two files, “half1” and “half2”, which are subject to change at any time. I need a permanent file, “whole”, that always contains the concatenation of the current “half1” and “half2” files. And “whole” must appear to be a file (I can't just pipe it in on a command line) for this particular application.
I can obviously do a one-time concatenation (cat half1 half2 > whole) but subsequent changes in “half1” or “half2” won't be reflected in “whole”. Is there some way to make this live/dynamic?
I'm on SunOS 5.10
10 More Discussions You Might Find Interesting
1. IP Networking
I am trying to add a permanent route on my server, but whenever i reboot it dissapears.
Please does anyone know the correct command to use.
route add XXX.XXX.XXX.XXX DDD.DDD.DDD.DDD
the above is what i have done.
ednut:)
using IRIX SGI software. (2 Replies)
Discussion started by: Ednut
2 Replies
2. Solaris
How do I make a route permanent, other than default route on a Solaris server? (1 Reply)
Discussion started by: jontom
1 Replies
3. UNIX for Dummies Questions & Answers
On AIX 5.2 as root, installed Seamonkey and have to type
#/seakey/seamonkey/seamonkey to get it to run, which it does okay.
To set up a permanent alias, I did the following
(1) In a text editor
alias seamk='/seakey/seamonkey/seamonkey'
and saved it to /home/alias_file
(2) In a text editor... (7 Replies)
Discussion started by: farl
7 Replies
4. Solaris
Hi guys,
I'm running Solars 8 on a V100 server at home for testing.
If I switch user to root and do:
# echo $PATH
This is the output:
/usr/sbin:/usr/bin
I'm using rsync over ssh and need to add /usr/local/bin and /user/local/sbin.
I do this by running the line:
#... (3 Replies)
Discussion started by: Stin
3 Replies
5. AIX
I set my TERM variable to work with SMIT and everything works fine but when I logged out and log in again I have to set the variable again.
How can I set a permanent variable into the system so it will be as I wish even if a reboot is needed?
I set variables this way:
export VAR=value (7 Replies)
Discussion started by: agasamapetilon
7 Replies
6. UNIX for Dummies Questions & Answers
Hi mates, I want to make an alias permanent for a KShell, does someone knows how to do that?
Thanks! (4 Replies)
Discussion started by: agasamapetilon
4 Replies
7. UNIX for Advanced & Expert Users
I have a file that reads File (X.txt)
Contents of record 1:
rdrDESTINATION_ADDRESS (String) "91 971502573813"
rdrDESTINATION_IMSI (String) "000000000000000"
rdrORIGINATING_ADDRESS (String) "d0 movies"
rdrORIGINATING_IMSI (String) "000000000000000"
rdrTRAFFIC_EVENT_TIME... (0 Replies)
Discussion started by: magedfawzy
0 Replies
8. UNIX for Advanced & Expert Users
I read this article as a way to do a non-permanent of something.
I saw 2 problems. The first that my rm is located at /bin/rm. I would assume I would change the location to /bin/rm. The second my rm is a executable file and not a text file. So will replacing my rm file with the shellscript... (3 Replies)
Discussion started by: cokedude
3 Replies
9. UNIX for Dummies Questions & Answers
I try to understand the meaning of an inode. I wonder whether
an inode is unique (I'm pretty sure it is) and
whether it remains the same inode regardless of whatever happens to the file, dir or whatever?
I read somewhere that an inode stores info about the file, size... so changing the... (4 Replies)
Discussion started by: dakke
4 Replies
10. What is on Your Mind?
See attached video for a demo on how to move back and forth from the desktop view to the mobile view.
Currently this only works for the home page, but I will work on some new PHP code in the future to make this work with the page we are currently on.
Edit: The issue with making every page ... (2 Replies)
Discussion started by: Neo
2 Replies
LEARN ABOUT DEBIAN
nischttl
nischttl(1) User Commands nischttl(1)
NAME
nischttl - change the time to live value of a NIS+ object
SYNOPSIS
nischttl [-AfLP] time name...
DESCRIPTION
nischttl changes the time to live value (ttl) of the NIS+ objects or entries specified by name to time. Entries are specified using indexed
names (see nismatch(1)).
The time to live value is used by object caches to expire objects within their cache. When an object is read into the cache, this value is
added to the current time in seconds yielding the time when the cached object would expire. The object may be returned from the cache until
the current time is earlier than the calculated expiration time. When the expiration time has been reached, the object will be flushed
from the cache.
The time to live time may be specified in seconds or in days, hours, minutes, seconds format. The latter format uses a suffix letter of d,
h, m, or s to identify the units of time. See the examples below for usage.
The command will fail if the master NIS+ server is not running.
Setting a high ttl value allows objects to stay persistent in caches for a longer period of time and can improve performance. However,
when an object changes, in the worst case, the number of seconds in this attribute must pass before that change is visible to all clients.
Setting a ttl value of 0 means that the object should not be cached at all.
A high ttl value is a week, a low value is less than a minute. Password entries should have ttl values of about 12 hours (easily allows
one password change per day), entries in the RPC table can have ttl values of several weeks (this information is effectively unchanging).
Only directory and group objects are cached in this implementation.
OPTIONS
The following options are supported:
-A Modify all tables in the concatenation path that match the search criterion specified in name. This option implies the -P switch.
-f Force the operation and fail silently if it does not succeed.
-L Follow links and change the time to live of the linked object or entries rather than the time to live of the link itself.
-P Follow the concatenation path within a named table. This option only makes sense when either name is an indexed name or the -L
switch is also specified and the named object is a link pointing to entries.
EXAMPLES
Example 1: Changing the ttl of an Object
The following example shows how to change the ttl of an object using the seconds format and the days, hours, minutes, seconds format. The
ttl of the second object is set to 1 day and 12 hours.
example% nischttl 184000 object
example% nischttl 1d12h object
Example 2: Changing the ttl for a password Entry
This example shows how to change the ttl for a password entry.
example% nischttl 1h30m '[uid=99],passwd.org_dir'
Example 3: Changing the ttl of Entries Pointed to by a Link
The next two examples change the ttl of the object or entries pointed to by a link, and the ttl of all entries in the hobbies table.
example% nischttl -L 12h linkname
example% nischttl 3600 '[],hobbies'
ENVIRONMENT VARIABLES
NIS_PATH If this variable is set, and the NIS+ name is not fully qualified, each directory specified will be searched until
the object is found. See nisdefaults(1).
EXIT STATUS
The following exit values are returned:
0 Successful operation.
1 Operation failed.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWnisu |
+-----------------------------+-----------------------------+
SEE ALSO
nis+(1), nischgrp(1), nischmod(1), nischown(1), nisdefaults(1), nismatch(1), nis_objects(3NSL), attributes(5)
NOTES
NIS+ might not be supported in future releases of the SolarisTM Operating Environment. Tools to aid the migration from NIS+ to LDAP are
available in the Solaris 9 operating environment. For more information, visit http://www.sun.com/directory/nisplus/transition.html.
SunOS 5.10 10 Dec 2001 nischttl(1)