|
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!!
|