[Labs-l] /data/project/repo?

Antoine Musso hashar+wmf at free.fr
Mon Dec 17 23:30:30 UTC 2012


Le 17/12/12 20:22, Petr Bena a écrit :
> or you can get this simple script and save it as /bin/log (chmod a+x) so
> that you can log from terminal:
> 
> 
> #!/bin/sh
> 
> project="project name"
> 
> if [ "$project" = "" ];then
>         echo "Undefined project"
>         exit 0
> fi
> if [ "$1" = "" ]; then
>         echo "No message was logged"
>         exit 1
> fi
> 
> echo "$project `whoami`: $*" | nc bots-labs 55252
> echo "`whomai` to SAL: $*" | wall
> echo "Message logged"

That script should probably be puppetized as 'labslog' or something so
everyone got it on their instances :-)

-- 
Antoine "hashar" Musso




More information about the Labs-l mailing list