[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 242
  • Last Modified:

Shell Scripting question

how do I echo the commands used in a script (ksh)

(If I use ls, it lists the files, but I want the 'ls' to be echoed to the screen as well)
0
Los Angeles1
Asked:
Los Angeles1
1 Solution
 
woolmilkporcCommented:
If you want to see the commands as they're executed try

set -x

in your script.

For debugging, try "set -xv"

wmp

0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

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