equivalent of ptree command in zsh


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting equivalent of ptree command in zsh
# 1  
Old 09-11-2007
equivalent of ptree command in zsh

ptree command is not working in zsh. Could anyone let me know the equivalent of ptree command in zsh.
# 2  
Old 09-11-2007
'ptree' is not a shell built-in - it should work regardless of the calling shell.
pls define the 'not working in zsh' statement.
# 3  
Old 09-11-2007
when i tree ptree command with a PID, i am getting the command not found. Please find below the same.

<lnx30:data/serial>$ ps -ef | grep LMPE
lmp 21974 21963 0 17:05 ? 00:00:00 /bin/ksh /lmp/prod/bin/LMPExecuteGrpDriver.sh 4
lmp 21995 21974 0 17:05 ? 00:00:00 /bin/ksh /lmp/prod/bin/LMPExecuteGrpDriver.sh 4
lmp 22130 21974 0 17:06 ? 00:00:00 /bin/ksh /lmp/prod/bin/LMPExecuteGrpDriver.sh 4
ap90 30951 20826 0 18:00 pts/3 00:00:00 grep LMPE
<lnx30:data/serial>$ ptree 21995
zsh: command not found: ptree
# 4  
Old 09-11-2007
Most probably that is down to the environment "PATH" being different in different shells.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Run bash command inside zsh script

Hi, I would like to run following code in bash inside a zsh script. (In this case is output unfortunately very different if you run it in zsh). I tried to put "bash" in front of the code but I obtained following error message "bash: do: No such file or directory " eve though I merged the whole... (7 Replies)
Discussion started by: kamcamonty
7 Replies

2. UNIX for Dummies Questions & Answers

Create the equivalent of the command WC

hi all, i'm trying to do this exercise, i want to create a script that can substitute WC command in unix, can someone help me? (11 Replies)
Discussion started by: Marina2013
11 Replies

3. Shell Programming and Scripting

Banner command equivalent in Linux

Hi guys can i get banner equivalent command in linux. I am using Linux xcclx0619.target.com 2.6.18-308.11.1.el5xen #1 SMP Fri Jun 15 16:19:17 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux (1 Reply)
Discussion started by: mohanalakshmi
1 Replies

4. AIX

smitty equivalent command line command

i know after you do something in smitty via the gui, you can click something in smitty that will show you how to do the same thing via the command line, (not using the gui) can anyone tell me how (2 Replies)
Discussion started by: asyed123
2 Replies

5. Linux

similar command of ptree in linux

Hello guys, Is there any command to check the all child processes of a process like `ptree`? ptree is not working in Linux.. Regards, Raghu (3 Replies)
Discussion started by: raghu.iv85
3 Replies

6. Shell Programming and Scripting

running zsh command in tcsh

Hi all is there a way to run zsh commands in a tcsh shell thanks (3 Replies)
Discussion started by: ab52
3 Replies

7. Shell Programming and Scripting

ptree equivalent for IBM machine

Hi does anyone know of the equivalent of "ptree <PID>" command which can be used on IBM (AIX) machine. I was trying to use "ptref" but it produces too many lines of "unrelated " to the PID output. May be someone has this issue before. Thanks a lot -A (2 Replies)
Discussion started by: aoussenko
2 Replies

8. UNIX for Advanced & Expert Users

Need svcs equivalent command

Hi, I am new to HP-UX. Can someboby help me with the svcs equivalent command in HP-UX ??? svcs is command that we use in Solaris for service status. I need to get the status of services in HP-UX. Thanks in advance. (2 Replies)
Discussion started by: EmbedUX
2 Replies

9. Shell Programming and Scripting

Equivalent command to 'stat'

Can anyone tell me which is the equivalent command to 'stats' in ksh shell which discribes the file system? Thanks in advance Regards, Im_new (6 Replies)
Discussion started by: im_new
6 Replies

10. Shell Programming and Scripting

Running a String as a command, zsh.

I have a shell script that is building a string that consists of the parts of a command that I want run at the end of the string. So it looks like this: $PART1=/path/to/command $PART2="-arg1" $PART3="-arg2" and so on. At the end of the command is a list of files I get from a loop and... (2 Replies)
Discussion started by: drnkhmlck
2 Replies
Login or Register to Ask a Question