How to print python commands automatically?
Peng Yu
pengyu.ut at gmail.com
Thu Nov 8 18:12:58 EST 2012
Hi,
In bash, set -v will print the command executed. For example, the
following screen output shows that the "echo" command is printed
automatically. Is there a similar thing in python?
~/linux/test/bash/man/builtin/set/-v$ cat main.sh
#!/usr/bin/env bash
set -v
echo "Hello World!"
~/linux/test/bash/man/builtin/set/-v$ ./main.sh
echo "Hello World!"
Hello World!
Regards,
Peng
More information about the Python-list
mailing list