- https://github.com/Benjamin-Loison
- Joined on
2022-10-16
Block a user
Make my SSH
alias
es prefer LAN over Internet but with a single command
Bash script:
ssh_on_same_network_preferably()
{
...
alias sshCommand='ssh $reachableAddress "${@:2}"'
...
sshCommand
...
}
…
Make my SSH
alias
es prefer LAN over Internet but with a single command
Bash script:
my_test()
{
if [ -t 0 ]
then
echo 'Without stdin'
else
echo 'With stdin'
fi
}
echo test
Make my SSH
alias
es prefer LAN over Internet but with a single command
If do not pipe to the function, then it waits forever...
DuckDuckGo search Bash test if stdin.
Make my SSH
alias
es prefer LAN over Internet but with a single command
I corrected accordingly #issuecomment-3000 but I can't explain why it seemed to have worked sometimes despite using this Bash function and not ssh
.
Make my SSH
alias
es prefer LAN over Internet but with a single command
Bash script:
my_test()
{
myStdin=`cat`
echo "
Make my SSH
alias
es prefer LAN over Internet but with a single command
DuckDuckGo search Bash function delay stdin usage.
Make my SSH
```
test
```
alias
es prefer LAN over Internet but with a single command
Bash script:
my_test()
{
cat
cat
}
echo test
while for testing SSH connection passing stdin
does not…
Limit rights of programs
The person:
-----BEGIN PGP MESSAGE-----
hF4DTQa9Wom5MBgSAQdAiLznqw6nY2r8aPkAEOnzWgC/lDTqc6sZhSdMStOZHA4w
8ibuzUS1nzBeDLbU5vaLcfXfCKx+GT7iOGf2qYeo6NvNsVRuqH…
~/db/sessions/[0-9a-f]{32}
purpose?
As there has been no changes for hours, maybe just setting such a monitoring at computer start seems appropriate.
~/db/sessions/[0-9a-f]{32}
purpose?
FILE=~/db/sessions/2029240f6d1128be89ddc32729463129
inotifywait $FILE
send_tchap_message "Interacted with $FILE!"
~/db/sessions/[0-9a-f]{32}
purpose?
Could inotifywait
to be notified when it is read or written to try to figure out what special just happened.
~/db/sessions/[0-9a-f]{32}
purpose?
stat ~/db/sessions/2029240f6d1128be89ddc32729463129
Output:
File: /home/benjamin_loison/db/sessions/2029240f6d1128be89ddc32729463129
Size:…
~/db/sessions/[0-9a-f]{32}
purpose?
file ~/db/sessions/2029240f6d1128be89ddc32729463129
/home/benjamin_loison/db/sessions/2029240f6d1128be89ddc32729463129: data
xxd ~/db/sessions/2029240f6d1128be8…