06-08-2005
Thanks Pressy
Thanks Pressy. That was a very useful link.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello there,
i just want to know what are the different type of shells and the main difference betwee them. The problem is that if you try to search over the net you will find a lot of information and hence you will have no enough time to read all of them.....Anyone can help with this?? (1 Reply)
Discussion started by: charbel
1 Replies
2. Shell Programming and Scripting
Hi all,
New to shell scripting, I would like to know if it is possible to pass commands to a shell, which has been launched by a parent shell.
Example:
#!/bin/ksh
#
# Launch and command shells
#
. mySecondShell.ksh #this launches a sub-shell
#now is something like this possible?... (7 Replies)
Discussion started by: MarkZWEERS
7 Replies
3. UNIX for Dummies Questions & Answers
Hi
How do I direct the output from ls to for example grep a in C. I am not asking for the whole shell implementation.
If I write ls|grep myfile in the shell. How is the output sent from ls to the input grep. whit int pipe(pipe); We create the pipe. I and I guess we use dup2(old... (4 Replies)
Discussion started by: isato
4 Replies
4. UNIX for Advanced & Expert Users
Can you pls. tell me, why we have different shells in UNIX OS ( Eg. SunOs) and also I would like to know what is the specific difference b/w SVR and BSD ?
Thanks. (2 Replies)
Discussion started by: shahnazurs
2 Replies
5. Shell Programming and Scripting
To find all of the available shells in your system we can use
cat /etc/shells
but i dont find shells in my system where else i can look for same info?? (4 Replies)
Discussion started by: Deepak Dutt
4 Replies
6. Shell Programming and Scripting
What is the practical difference among the different shell like
csh , ksh , bash etc.:confused::confused:
Please use descriptive subjects instead of single words (2 Replies)
Discussion started by: hiten.r.chauhan
2 Replies
7. Shell Programming and Scripting
ple tell me What is the diff between ksh,sh,bash and csh (1 Reply)
Discussion started by: Boby120677
1 Replies
8. UNIX for Dummies Questions & Answers
Lets say my default shell is bash and then i load up csh and then ksh. How would i exit csh without exiting ksh?
so basically i gone from bash > csh > ksh and i wish to close csh (2 Replies)
Discussion started by: Bill Thompson
2 Replies
9. UNIX for Dummies Questions & Answers
I'm taking a LINUX and UNIX class and we are using bash as the shell in terminal. On my mac-book I use zsh only because my professor had a pretty cool start-up file for it.
It has benefited me in becoming familiar with different shells. However, I'm having a hard time understanding the purpose... (4 Replies)
Discussion started by: syregnar86
4 Replies
10. UNIX for Dummies Questions & Answers
I mean like this: http://shells.red-pill.eu/
Can anyone explain how this works? I hope my post is not spam. I think its related to linux. Thank you (1 Reply)
Discussion started by: postcd
1 Replies
LEARN ABOUT OPENSOLARIS
di_link_next_by_node
di_link_next_by_node(3DEVINFO) Device Information Library Functions di_link_next_by_node(3DEVINFO)
NAME
di_link_next_by_node, di_link_next_by_lnode - libdevinfo link traversal functions
SYNOPSIS
cc [ flag... ] file... -ldevinfo [ library... ]
#include <libdevinfo.h>
di_link_t di_link_next_by_node(di_lnode_t node, di_link_t link,
uint_t endpoint);
di_link_t di_link_next_by_lnode(di_node_t lnode, di_link_t link,
uint_t endpoint);
PARAMETERS
link The handle to the current the link or DI_LINK_NIL.
endpoint Specify which endpoint of the link the node or lnode should correspond to, either DI_LINK_TGT or DI_LINK_SRC.
node The device node with which the link is associated.
lnode The lnode with which the link is associated.
DESCRIPTION
The di_link_next_by_node() function returns a handle to the next link that has the same endpoint node as link. If link is DI_LINK_NIL, a
handle is returned to the first link whose endpoint specified by endpoint matches the node specified by node.
The di_link_next_by_lnode() function returns a handle to the next link that has the same endpoint lnode as link. If link is DI_LINK_NIL, a
handle is returned to the first link whose endpoint specified by endpoint matches the lnode specified by lnode.
RETURN VALUES
Upon successful completion, a handle to the next link is returned. Otherwise, DI_LINK_NIL is returned and errno is set to indicate the
error.
ERRORS
The di_link_next_by_node() and di_link_next_by_lnode() functions will fail if:
EINVAL An argument is invalid.
ENXIO The end of the link list has been reached.
The di_link_next_by_node() function will fail if:
ENOTSUP Device usage information is not available in snapshot.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
SEE ALSO
di_init(3DEVINFO), libdevinfo(3LIB), attributes(5)
SunOS 5.11 12 Jul 2004 di_link_next_by_node(3DEVINFO)