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 > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 06-24-2009
rithu rithu is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 1
Pushd commands features

Hi All,

im using pushd and popd as below , but im getting different results, it is not consistent.

pushd <DIR>
pkzip <ZIP FILE NAME> *
popd
echo " Hi"

it is going into the DIR as expected and while zipping it, in between it got suspended by itself and executed the remaining step "(echo "Hi") and then remaining zipping is happening, then it is executing popd command and again it is executing echo command also.

Pkzip should complete before executing the echo command and then popd should execute and then echo should execute.sometimes this is not happening.

if someone knows about this, please advise.

thansk!!