• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 600
  • Last Modified:

ksh use set -x to enable trace but how can it be disable and re-enable in a ksh program

I may have ksh program like this:

#/usr/bin/ksh

sub_a()
{
}

sub_b()
{
}

sub_c
{
}

set -x
sub_a
#command to disable set -x
# I want to disable set -x afte sub_a has been executed
# following active from sub_b should not be display
sub_b
sub_c
0
tindavid
Asked:
tindavid
1 Solution
 
pritamduttCommented:
You can use
set +x

Open in new window

right before you want to disable trace.

Hope this helps.

Regards,
0
 
tindavidAuthor Commented:
good
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now