On the Linux box save the following script as "ptree":
Now run e.g.
ptree 586 or
ptree 9282 or
ptree 9283
and you'll get the relevant branch from the ps tree.
This User Gave Thanks to MadeInGermany For This Post:
Hi,
I want to find the total size of some directory trees in my solaris 9 machine.
Is there a command or utility I can use to do it. Please let me know if there is
any way.
Thanks
Akheel (1 Reply)
I m not able to copy the text present on the tree's node to terminal or other text editor in solaris. I m using <Shift><control> C and V comaand for the same but the text is not being copied and pasted on the text pad or the terminal window.
While the same is possible in windows OS using ctrl+c... (3 Replies)
In DOS, to get the complete directory structure, we use 'TREE' command..
can anyone tell me what is the equivalent command in Unix
I am using
SunOS ABC 5.8 Generic_117350-18 sun4u sparc SUNW,Sun-Fire-V240
thanks.. (1 Reply)
I'm an trying to install U6 on Xen in Opensolaris. I would like to make this VM para-virtualized to maximize performance but it requires an install tree. I'm not real familiar with an install tree. I can use full virtualization and use an .iso which I have without issues but I would like to use the... (1 Reply)
Hi Frndz,
I am new to the makefile generation.
I have a source code which contains makefiles in each sub-directories.
Previously we have used the entire source code in Dtbuild environment to get the executables. Now have to change the current Dtbuild environment to Linux build... (1 Reply)
How can i install tree command in ubundu without root ? I have found some shell script which does the same job as tree but i would like to get all the options in tree command
thanks (2 Replies)
Hi,
My apologies if my query is already available on this forum but I am new and could not find.
I need a script to list all directories/sub directories and files with permissions/groups/owners. The script would run from home directory and should capture every directory. How do I do this?
... (4 Replies)
I'd like to list all ports and the services allocated to them:
1) What commands will do this on Solaris 10 and Linux?
2) Is there a file containing the port/service mapping? (1 Reply)
Discussion started by: squrcles
1 Replies
LEARN ABOUT SUNOS
scrl
scrl(3XCURSES) X/Open Curses Library Functions scrl(3XCURSES)NAME
scrl, scroll, wscrl - scroll a window
SYNOPSIS
cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib
-R /usr/xpg4/lib -lcurses [ library... ]
c89 [ flag... ] file... -lcurses [ library... ]
#include <curses.h>
int scrl(int n);
int scroll(WINDOW *win);
int wscrl(WINDOW *win, int n);
PARAMETERS
n number and direction of lines to scroll
win pointer to the window in which to scroll
DESCRIPTION
The scroll() function scrolls the window win up one line. The current cursor position is not changed.
The scrl() and wscrl() functions scroll the window stdscr or win up or down n lines, where n is a positive (scroll up) or negative (scroll
down) integer.
The scrollok(3XCURSES) function must be enabled for these functions to work.
RETURN VALUES
On success, these functions return OK. Otherwise, they return ERR.
ERRORS
None.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO clearok(3XCURSES), libcurses(3XCURSES), attributes(5), standards(5)SunOS 5.10 5 Jun 2002 scrl(3XCURSES)