The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 and shell scripting languages 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 6 01-15-2009 10:04 AM
export equivalent command in PERL ammu Shell Programming and Scripting 1 09-17-2007 03:46 PM
Equivalent command for setlocal in Unix sonaluphale UNIX for Advanced & Expert Users 7 05-17-2007 07:10 AM
Command equivalent to DOS mode for SCO 5.0.6 jgt UNIX for Advanced & Expert Users 3 05-11-2007 07:10 AM
SQL Spool equivalent command in DOS stevefox Windows & DOS: Issues & Discussions 2 01-17-2006 09:18 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-11-2007
dhams dhams is offline
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.
  #2 (permalink)  
Old 09-11-2007
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,119
'ptree' is not a shell built-in - it should work regardless of the calling shell.
pls define the 'not working in zsh' statement.
  #3 (permalink)  
Old 09-11-2007
dhams dhams is offline
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
  #4 (permalink)  
Old 09-11-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Most probably that is down to the environment "PATH" being different in different shells.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:26 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0