The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Equivalent command to 'stat' im_new Shell Programming and Scripting 3 12-27-2007 02:28 AM
export equivalent command in PERL ammu Shell Programming and Scripting 1 09-17-2007 12:46 PM
Equivalent command for setlocal in Unix sonaluphale UNIX for Advanced & Expert Users 7 05-17-2007 04:10 AM
Command equivalent to DOS mode for SCO 5.0.6 jgt UNIX for Advanced & Expert Users 3 05-11-2007 04:10 AM
SQL Spool equivalent command in DOS stevefox Windows & DOS: Issues & Discussions 2 01-17-2006 05:18 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-11-2007
Registered User
 

Join Date: Aug 2007
Posts: 12
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.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 09-11-2007
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 2,999
'ptree' is not a shell built-in - it should work regardless of the calling shell.
pls define the 'not working in zsh' statement.
Reply With Quote
  #3 (permalink)  
Old 09-11-2007
Registered User
 

Join Date: Aug 2007
Posts: 12
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
Reply With Quote
  #4 (permalink)  
Old 09-11-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Most probably that is down to the environment "PATH" being different in different shells.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:13 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0