-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Hsin Yuan Yeh
authored and
Hsin Yuan Yeh
committed
Oct 27, 2023
1 parent
4c7a1df
commit 37eb0c6
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# SSHScript v2.0 Recipes | ||
|
||
Last Updated on 2023/10/20 | ||
|
||
<div style="text-align:right;position:relative;top:-140px"><a href="./index">Back to Index</a></div> | ||
|
||
## Topics | ||
|
||
* [Execute commands: one-dollar ($)](#one-dolar) | ||
* [Execute shell commands: two-dollars($$)](#two-dolars) | ||
* [Invoke an interactive console: with-dollar(with $)](#with-dollar) | ||
|
||
## 🔵 <a name="one-dollar"></a>Setup Logger | ||
``` | ||
import logging | ||
logger = logging.getLogger('mylogger') | ||
## ... do whatever you want to do with the logger ... | ||
import sshscript | ||
sshscript.setupLogger(logger) | ||
``` | ||
|
||
|