Subject: Re: [vserver] running vserver in cron: stty: standard input: Inappropriate ioctl for device
From: Raphael Bauduin <rblists@gmail.com>
Date: Wed, 24 Aug 2011 13:53:54 +0200

 Wed, 24 Aug 2011 13:53:54 +0200
On Wed, Aug 24, 2011 at 1:34 PM, Herbert Poetzl <herbert@13thfloor.at> wrote:
> On Wed, Aug 24, 2011 at 12:16:33PM +0200, Raphael Bauduin wrote:
>> Hi,
>
>> To backup my vservers, I run a script from cron, and this
>> script stop, backups up and starts each vserver.
>> The vserver command however outputs this error:
>
>>   stty: standard input: Inappropriate ioctl for device
>
> please show us the script and the crontab invocation

Here's the script

#!/bin/bash

. ./backup vars.sh
for d in /var/lib/vservers/* ; do
  vserver=$(basename $d)
  vserver --silent $vserver stop
  ./vs time machine.sh $d
  vserver --silent $vserver start
done

And cron invocation:

00 04   * * *   root    cd /usr/local/shbackup/ && ./sync vservers.sh >/dev/null

>
>> Any idea how I can avoir this error message?
>
>> I'm running on debian:
>> ii  util-vserver                        0.30.216~r2772-6
>>      user-space tools for Linux-VServer virtual private servers
>
> better update to a more recent version
>
>> ii  vserver-debiantools                 0.6.3
>>      Tools to manage debian virtual servers
>
> better get rid of that completely before it does
> some real damage (but maybe it already did)

I wans't aware of that. Can you point me to some docs about it (a
quick google and search on the website didn't return info about the
dangers)


Thanks

Raph
>
> best,
> Herbert
>
>> Thx
>> Raph
>



-- 
Web database: http://www.myowndb.com
Free Software Developers Meeting: http://www.fosdem.org