Lista dei packages da aggiornare via mailList of the packages to update by email

I have written this small shell script in order to obtain via email the directory of the packages to update, I hope can be useful to some FreeBSD user!

1
2
3
4
5
#!/usr/local/bin/bash
FILE=`ruby -e 'print Time.now.to_i'`
pkg_version -l "< " > ${FILE}
cat ${FILE} | mail -s 'Pacchetti da aggiornare' user@server.tld
rm ${FILE}



Probabilmente correlato...

  • Nessun post correlato

Leave a comment