So I spent a little time the other day applying what little I know of Python to the concept of picking Powerball lottery numbers because I had nothing much else to do that the time. ┬áIn the interest of not only content put putting more of my terrible code out there for people to laugh…

read more

Had to do a quick crontab job at work to grab user details out of /etc/passwd and email the details in a report, here is the resulting script #!/bin/bash > account-report.txt date > account-report.txt echo -e “=== Account Report ===n” >> account-report.txt Nlist=${1:-nodelist.txt} hName=( $(awk ‘{print $1}’ $Nlist) ); for name in “${hName[@]}”; do users=$(cat…

read more
Close Bitnami banner
Bitnami