07-28-2005
My OS is RedHAT 9 kernel 2.6.10
what my problem is that i need to implement that [ OK ] like functionality in my script ..
so i refered the rc.sysinit so i found that its some command like "action" doing this..
If iam wrong,pls correct me...
esham
6 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I'm not sure in which category should I post in but I'll try in this one. Here is my problem, I'm trying to combine 2 scripts that I found useful to me. First one is this , what I'm trying to accomplish is dynamic user look up from my database. The other script is this one , this script... (0 Replies)
Discussion started by: c0mrade
0 Replies
2. UNIX for Dummies Questions & Answers
please delete and see other post.
Hi,
Im using awk to go through every line, but i have to use it twice as the first awk finds all the lines with a number in one field and the pipes it to wc, and the second does the same as the first but it has a extra pipe into sort and uniq that finds all... (2 Replies)
Discussion started by: fredted40x
2 Replies
3. Shell Programming and Scripting
in /etc/init.d/networking of an ubuntu computer, I found this code:
if ifdown -a --exclude=lo; then
log_action_end_msg $?
else
log_action_end_msg $?
fi
Shouldn't it be replace by
ifdown -a --exclude=lo
... (0 Replies)
Discussion started by: raphinou
0 Replies
4. Shell Programming and Scripting
I am writing a shell script that takes at least 2 arguments. The first is an octal representation of file permissions, the second is a command that is executed on all the files found with that permission.
#!/bin/sh
find . -perm $1 -exec $2 $3 $4 {} \;
invoked: ./script.sh 543 ls -la
what... (3 Replies)
Discussion started by: computethis
3 Replies
5. Shell Programming and Scripting
Hi All,
I need to create a script to monitor a dir for new files with ext .err and also it should b a non empty files. and perform a action or command .
We have a new ETL application that runs on a linux server, every times a etl fails it creates a .err file or updates the existing .err... (4 Replies)
Discussion started by: MAKHAN
4 Replies
6. Shell Programming and Scripting
lets explain it easy by showing the initial file and desired file:
I've a file such this that contains:
initial_file:
31/12/2011 23:46:08 38.6762 43.689 14.16 Ml 3.1
... (1 Reply)
Discussion started by: oreka18
1 Replies
LSNS(8) System Administration LSNS(8)
NAME
lsns - list namespaces
SYNOPSIS
lsns [options] [namespace]
DESCRIPTION
lsns lists information about all the currently accessible namespaces or about the given namespace. The namespace identifier is an inode
number.
The default output is subject to change. So whenever possible, you should avoid using default outputs in your scripts. Always explicitly
define expected columns by using the --output option together with a columns list in environments where a stable output is required.
Note that lsns reads information directly from the /proc filesystem and for non-root users it may return incomplete information. The cur-
rent /proc filesystem may be unshared and affected by a PID namespace (see unshare --mount-proc for more details). lsns is not able to see
persistent namespaces without processes where the namespace instance is held by a bind mount to /proc/pid/ns/type.
OPTIONS
-J, --json
Use JSON output format.
-l, --list
Use list output format.
-n, --noheadings
Do not print a header line.
-o, --output list
Specify which output columns to print. Use --help to get a list of all supported columns.
The default list of columns may be extended if list is specified in the format +list (e.g. lsns -o +PATH).
-p, --task pid
Display only the namespaces held by the process with this pid.
-r, --raw
Use the raw output format.
-t, --type type
Display the specified type of namespaces only. The supported types are mnt, net, ipc, user, pid, uts and cgroup. This option may
be given more than once.
-u, --notruncate
Do not truncate text in columns.
-V, --version
Display version information and exit.
-h, --help
Display help text and exit.
AUTHORS
Karel Zak <kzak@redhat.com>
SEE ALSO
nsenter(1), unshare(1), clone(2), namespaces(7)
AVAILABILITY
The lsns command is part of the util-linux package and is available from https://www.kernel.org/pub/linux/utils/util-linux/.
util-linux December 2015 LSNS(8)