← Back to team overview

sslug-teknik team mailing list archive

Re: Fejl i script, find den...

 

Verner Kjærsgaard <vk@xxxxxxxxxxxxx> writes:

> vk@dell102:~/Pgms/scripts> cat -A kill-a-user.sh
> #!/bin/sh$
> # script to logoff a student$
> #$
> if [ $1 != "root" ]$
> then$
> M-BM-  M-BM-  for i in $(pgrep -u $1)$
> M-BM-  M-BM-  do$
> M-BM-  M-BM-  M-BM-  M-BM- kill -9 $i$
> M-BM-  M-BM-  done$
> else$
> M-BM-  M-BM-  clear$
> M-BM-  M-BM-  echo "Can't kill the root!!"$

Det er utf8 non-breaking spaces. Hvilke editor har du skrevet den fil
i? Den lader ikke til at være god at kode i.

//Peter Makholm


Follow ups

References