PS > $exp = "python -c `"import json, datetime; print(json.dumps({'date': datetime.datetime.now().strftime('%Y%m%d')}))`""
PS > Invoke-Expression $exp | % { convertfrom-json $_ }
date
----
20210222
PS >
This file contains hidden or 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
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 |
install openssh
$ pkg install openssh
run sshd (default port is 8033 not 22)
$ sshd
create a script named greet.ps1
$ vi greet.ps1
#/usr/bin/env pwsh
write-host "🤡"