add correct to for isg_order

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2010-09-08 17:10:30 +02:00
parent 623b1e2456
commit f7808b6c8e
8 changed files with 18 additions and 13 deletions

2
3xterm
View file

@ -5,3 +5,5 @@ XTERM=x-terminal-emulator
$XTERM -ls -title "--irst 0n3xx" & $XTERM -ls -title "--irst 0n3xx" &
$XTERM -ls -title ">>> 2nd <<<" & $XTERM -ls -title ">>> 2nd <<<" &
$XTERM -ls -title "www.3rd.xterm" & $XTERM -ls -title "www.3rd.xterm" &
sleep 0.5
i3-msg mh

View file

@ -55,7 +55,6 @@ fi
sendmail="/usr/sbin/sendmail" sendmail="/usr/sbin/sendmail"
to="support@inf.ethz.ch nicosc@ethz.ch" to="support@inf.ethz.ch nicosc@ethz.ch"
to="nicosc@ethz.ch"
from="${NETHZ_USERNAME}@ethz.ch" from="${NETHZ_USERNAME}@ethz.ch"
prof="$1"; shift prof="$1"; shift

View file

@ -8,8 +8,8 @@ if [ -z "$SLEEP" ]; then
fi fi
while true; do while true; do
fetchmail >/dev/null ; fetchmail >/dev/null
offlineimap # offlineimap
echo "Mails abgeholt, schlafe nun $SLEEP Sekunde(n)" echo "Mails abgeholt, schlafe nun $SLEEP Sekunde(n)"
sleep $SLEEP; sleep $SLEEP;
done done

View file

@ -19,6 +19,9 @@
# #
# Submit solution according to http://edu.panter.ch/FormelleBedingungenUebungenBetriebssysteme # Submit solution according to http://edu.panter.ch/FormelleBedingungenUebungenBetriebssysteme
# #
# Good information about shell/mail sending:
# http://www.shelldorado.com/articles/mailattachments.html
#
################################################################################ ################################################################################
@ -27,11 +30,11 @@ __pwd="$(pwd -P)"
__mydir="${0%/*}"; __abs_mydir="$(cd "$__mydir" && pwd -P)" __mydir="${0%/*}"; __abs_mydir="$(cd "$__mydir" && pwd -P)"
__myname=${0##*/}; __abs_myname="$__abs_mydir/$__myname" __myname=${0##*/}; __abs_myname="$__abs_mydir/$__myname"
set -x #set -x
if [ $# -ne 2 ]; then if [ $# -lt 2 ]; then
cat << eof cat << eof
$0: <subject> <srcdir> $0: <subject> <srcdir> [comments]
eof eof
exit 1 exit 1
@ -41,6 +44,7 @@ fi
subject_suff="$1"; shift subject_suff="$1"; shift
input="$1"; shift input="$1"; shift
input_base="${input##*/}" input_base="${input##*/}"
comments="$@"
self="nschotte" self="nschotte"
to="bseelige" to="bseelige"
@ -52,10 +56,9 @@ subject_pref="[Betriebssysteme]"
sendmail="/usr/sbin/sendmail" sendmail="/usr/sbin/sendmail"
to_all="${to_q} ${self_q}" to_all="${to_q} ${self_q}"
to_all="${self_q}" #to_all="${self_q}"
# check stuff before sending out # check stuff before sending out
( cd "${input}" && make test && make clean ); ret=$? ( cd "${input}" && make test && make clean ); ret=$?
if [ "${ret}" -ne 0 ]; then if [ "${ret}" -ne 0 ]; then
@ -70,8 +73,9 @@ To: $to_all
Subject: $subject_pref $subject_suff Subject: $subject_pref $subject_suff
From: $self_q From: $self_q
$comments
Gesendet mit ${__myname}. Gesendet mit ${__myname}.
eof eof
) )
cd "${input}/.." && tar c "${input_base}" | gzip -9 | uuencode "${subject_suff}.tar.gz" cd "${input}/.." && tar c "${input_base}" | gzip -9 | uuencode "${subject_suff}.tar.gz"

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
set -x set -x
BDIR=~/b/ikiwiki BDIR=~/temp/build/ikiwiki
( cd "${BDIR}" && git describe ) ( cd "${BDIR}" && git describe )

View file

@ -5,4 +5,4 @@
# Last Modified: - # Last Modified: -
# #
find "$1" -exec chmod og-rwx {} \; find "$1" -exec chmod u+rw,og-rwx {} \;

2
tmutt
View file

@ -1,2 +1,2 @@
#!/bin/sh #!/bin/sh
x-terminal-emulator -name mutt -e mutt x-terminal-emulator -name mutt -e mutt "$@"

View file

@ -2,4 +2,4 @@
[ -x /usr/bin/urxvtcd ] && exec /usr/bin/urxvtcd [ -x /usr/bin/urxvtcd ] && exec /usr/bin/urxvtcd
exec urxvtc exec urxvtc "$@"