Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Aug 2001 21:47:48 +0200
From:      "Alfatrion" <alfatrion@cybertron.tmfweb.nl>
To:        "Richard Smith" <rdls@satamatics.com>
Cc:        <freebsd-questions@freebsd.org>
Subject:   Re: ssh and background processes
Message-ID:  <023901c12367$c7941960$231fa8c0@kruijff>
References:  <20010810185605.7142.qmail@web11703.mail.yahoo.com> <20010811231559.C733@gaia.home.rdls.net>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
> On Fri, Aug 10, 2001 at 11:56:05AM -0700, Tim Erlin wrote:
> > Two questions:
> >
> > 1. I keep getting booted from SSH. On windows (putty),
> > I get a 'host key check failed' error (or something
> > similar. On Linux I get 'dispatch_protocol_error:
> > rekeying is not supported.' The box I'm connecting to
> > is FreeBSD -STABLE. Can I/Should I change this?
>
> I don't understand this. My ssh sessions stay up for ever,
> admittedly they're FreeBSD -> FreeBSD :-)
>
>
> > 2. The reason this is a problem is that I'm trying to
> > update my sources, but the SSH terminal doesn't stay
> > open long enough to complete 'make buildworld.' How do
> > I send this process into the background so that I can
> > logout and let it run?
>
> Depends on which shell you're using. The shell I use
> (zsh) suspends the foreground process with a Ctrl-Z
> then the 'bg' command moves it to the background.
> You would need the 'disown' command to allow you to
> log out. Of course, you could always start it off in
> the background/disowned:
>
> # make buildworld >logfile 2&>1 &!
>
> Time to buy a good unix book I think ;-)
>
>
> >
> > TIA, as always...
> >
> > --Tim Erlin
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Send instant messages & get email alerts with Yahoo! Messenger.
> > http://im.yahoo.com/
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message
>
> --
> Richard Smith
> Network Systems Director
> Satamatics Ltd
> Green Lane, Tewkesbury, GL20 8HD, United Kingdom
> Tel: +44 1684 278610
> Fax: +44 1684 278611
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>
First of all: I have no clue what to do!

But you could try to update your machine and see if it still happens. I
includes some of my script i use for this. I call update from my crontab. It
will call 1) cvs and then 2) build. One this is complete you can run install
from a single user mode. Afster each step it send a mail reporting it is
done with that step. The mails are in dutch, but are summaries from the
engles handbook.

Alex
It send mails after each


[-- Attachment #2 --]
logfile=/root/install.log
errfile=/root/install.err
date=`date +'%b %d %k:%M:%S'`

cd /usr/src
make installkernel KERNCONF=KERNELFILE > $logfile 1> $errfile
make installworld >> $logfile 1>> $errfile
cp -Rp /etc /etc.old
mergemaster -ai >> $logfile 1>> $errfile
cd /usr/src/release/sysinstall
make all install

(	echo 'install cycle compleet op KERNELFILE'
	echo 'Zie de logfiles voor meer info'
	echo 'logfile:	' $logfile
	echo 'errfile:	' $errfile
	echo 'start:	' $date
	date=`date +'%b %d %k:%M:%S'`
	echo 'stop:	' $date
) | mail -s 'build KERNELFILE' mail@adress.com
reboot

[-- Attachment #3 --]
#!/bin/sh

cvs="/home/alex/cvs/"
logfile="/root/cvs.log"
errfile="/root/cvs.err"
supfile="/root/supfile"
date=`date +'%b %d %k:%M:%S'`

/usr/local/bin/cvsup /root/supfile > $logfile 2> $errfile

(	echo 'cvs cycle compleet op KERNELFILE'
	echo 'Zie de logfiles voor meer info'
	echo 'logfile:	' $logfile
	echo 'errfile:	' $errfile
        echo 'start:	' $date
	date=`date +'%b %d %k:%M:%S'`
	echo 'stop:	' $date
) | mail -s 'cvs KERNELFILE' mail@adress.com

[-- Attachment #4 --]
#!/bin/sh

logfile="/root/build.log"
errfile="/root/build.err"
date=`date +'%b %d %k:%M:%S'`

cd /usr/src
rm -rf /usr/obj/*
make buildworld > $logfile 2> $errfile
make buildkernel KERNCONF=KERNELFILE >> $logfile 2i>> $errfile

(	echo 'build cycle compleet op KERNELFILE'
	echo 'Zie de logfiles voor meer info'
	echo 'logfile:	' $logfile
	echo 'errfile:	' $errfile
	echo 'start:	' $date
	date=`date +'%b %d %k:%M:%S'`
	echo 'stop:	' $date
) | mail -s 'build KERNELFILE' mail@adress.com

[-- Attachment #5 --]
notefile=/root/install.note

(       echo "Begin van FreeBSD update cycle op KERNELFILE"
	echo ""
	echo "Dit prosess bevat drie stappen. De eerst twee worden automaties"
	echo "uitgevoert. Hier na moet men de log files controleren. Daarna"
	echo "moet men met de hand zelf de laaste stap in single mode uitvoeren."
	echo "Na iedere stap word er een email verstuurt aan jou. Stap drie word"
	echo "terzijne tijd nog uitvoerig beschreven."
	echo ""
	echo "De stappen:"
	echo " 1. cvs"
	echo " 2. build"
	echo " 3. install (in single mode met de hand)"
	echo ""
	echo "Veel succes,"
	echo "Charlie Root"
) | mail -s 'update KERNELFILE' mail@adress.com

/root/bin/cvs.sh
/root/bin/build.sh

(       echo "Laaste stap van de Begin van FreeBSD update cycle op KERNELFILE"
	echo " 3. install"
	echo ""
	echo "Na dat men de logfiles heeft gecontroleer op controle, kan men door"
	echo "gaan met deze stap. Indien men dit nog nooit gedaan heeft doet men"
	echo "er goed aan om de volgende pagina te bekijken uit het handboek van"
	echo "FreeBSD: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html"
	echo "De stappen die in dit emailtje beschreven staan worden daar"
	echo "uitvoerig uitgelecht."
	echo ""
	echo " 1. (20.4.1) Lees /usr/src/UPDATING"
	echo " 2. (20.4.2) Controleer de bestanden /etc/defaults/make.conf en /etc/make.conf."
	echo " 3. (20.4.3) Update de file /etc/group"
	echo " 4. (20.4.4) Ga de single mode in door het commando 'shutdown now' uit tevoeren."
	echo " 5. Voer de shell install.sh uit. Midden in dit process is uw aandacht nodig."
	echo ""
	echo "Groetjes,"
	echo "Charlie Root"
	echo ""
	echo "P.S. Dit bericht staat ook " $notefile " hier."
) > $notefile

mail -s 'update KERNELFILE' mail@adress.com < $notefile
cat $nodefile

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?023901c12367$c7941960$231fa8c0>