So you have a script on the local machine and you want to run it remotely and pass arguments to it :
ssh user@remote 'cat | bash /dev/stdin param1 param2 .. paramN' < /usr/scripts/localscript.sh
😉 nJoy
So you have a script on the local machine and you want to run it remotely and pass arguments to it :
ssh user@remote 'cat | bash /dev/stdin param1 param2 .. paramN' < /usr/scripts/localscript.sh
😉 nJoy
aws iam update-user –user-name suse-dev –new-user-name sqs-dev
nJoy 😉
tcpdump -s 0 -l -w - dst port 3306 | strings
nJoy 😉
esxcli network ip neighbor list
njoy 😉
sudo yum --enablerepo epel-testing install s3cmd
njoy 😉
a=0;
for i in `cat $FOLDERLIST`
do
((a++))
percentage=`awk -v a=$a -v b=$NUMBEROFFOLDERS 'BEGIN {printf "%3.0f", a / b * 100; exit } '`
arrow=`printf '=%.0s' $(seq 1 $percentage)`
headed=`printf '%s%s' $arrow '>'`
paddedarrow=`printf '%-102s' $headed`
echo -ne "$paddedarrow $a/$NUMBEROFFOLDERS [$percentage] \r "
done
echo
njoy  😉