Re: [vserver] running vserver in cron: stty: standard input: Inappropriate ioctl for device

From: Raphael Bauduin <rblists_at_gmail.com>
Date: Wed 24 Aug 2011 - 12:53:54 BST
Message-ID: <CAONrwUGaJ8aLZTFEPp0Z03KO902MfhqwTsJJAu6X=khQM0kNEQ@mail.gmail.com>

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
Received on Wed Aug 24 12:54:06 2011
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 24 Aug 2011 - 12:54:06 BST by hypermail 2.1.8