12-23-2008
Display parent of certain device ?
Hi,
For example I can display clildren devices of "device_name" device by issuing:
lsdev -p device_name
How do I display parent device given certain child device ?
thanks
Vilius
5 More Discussions You Might Find Interesting
1. Programming
Hi , Could you tell me if I am right
1. Using fork(), pipe(), execlp() and dup() (see man 2 dup), write a C program executing the command ps -j in a parent process, displaying the result in a child process.
#include <unistd.h>
#include <errno.h>
#include <stdio.h>
#include <unistd.h>... (7 Replies)
Discussion started by: remid1985
7 Replies
2. Shell Programming and Scripting
hi experts(novice people can stay away as it is no child's game),
i am developing a script which works like recycle bin of windows.
the problem i am facing is that when ever i am trying to delete a file which is situated in parent directory or parent's parent directory i am unable to... (1 Reply)
Discussion started by: yahoo!
1 Replies
3. AIX
I need upgrade firmware for the device of p570, when I go to IBM FIX download website, there are a lot of device of p570 listed. How can I know what device I have on my p570? (4 Replies)
Discussion started by: rainbow_bean
4 Replies
4. Red Hat
Hi All,
Could anyone please help to resolve the below problem.
I installed RHEL5.5 in my desktop.But when i try to activate the ethernet connection then it gives me the error.
I spent 2 days for the above and go through with several suggestion found by googling. But no luck.
... (0 Replies)
Discussion started by: Tanmoy
0 Replies
5. HP-UX
Hi,
Unable to make tape backup, please help.
/opt/ignite/bin/make_tape_recovery -a /dev/rmt/?mn -I -v -m tar -x inc_entire=vg00
* Creating local directories for configuration files and archive.
======= 04/25/16 16:28:08 IST Started /opt/ignite/bin/make_tape_recovery.
(Mon... (4 Replies)
Discussion started by: anuragr
4 Replies
locks(4) Kernel Interfaces Manual locks(4)
NAME
locks - A directory that contains lock files for communication devices and remote systems that prevent multiple attempts to use the same
device or contact a remote system
SYNOPSIS
/var/spool/locks
DESCRIPTION
Lock files are created by the uucico daemon, the cu command, the tip command, and the uugetty command in the /var/spool/locks directory.
The files are created when the utility opens the serial line for communication.
The lock file locks the device or remote system so that another process cannot access it while it is in use. The file name of the lock file
uses one of the following forms: LCK..device_name LCK..system_name Where device_name is the name of the device (such as ttyd0) and sys-
tem_name is the name of the system (such as hera).
Normally, the process that creates a lock file will remove it when the process has finished using the line. However, it is possible for
lock files to be left behind (for example: system crash, phone line disconnects unexpectedly). This situation has been accounted for and
the commands that use lock files can handle the situation and overwrite these files, if appropriate.
Lock files contains the process ID (PID) of the process that created the lock. The lock file is a data file; to see its contents, use the
following command:
od -d lockfile
Where lockfile is the name of the file. For example: % od -d /var/spool/locks/LCK..ttyd0 0000000 06854 00000 0000004
In this example, the lock file (LCK..ttyd0) was created by the process with PID 6854.
FILES
Contains the uucico daemon and uugetty program. Contains the uucp, cu, and tip programs.
RELATED INFORMATION
Commands: cu(1), od(1), tip(1), uucp(1), uugetty(8)
Daemons: uucico(8) delim off
locks(4)