[Planetlab-devel] myplc stuck at 'PLC: Generating SSL
certificates for: PLC: WWW:' and does not continue
Sapan Bhatia
gwsapan at gmail.com
Tue Jun 30 18:34:32 EDT 2009
Hi Stephen,
The XML generator should check if stdout is connected to a terminal
before generating any ANSI formatting instructions. On Linux one might
do this by looking at the symbolic link /dev/fd/1.
E.g. try
ls -l /dev/fd/1
then
ls -l /dev/fd/1 > /tmp/foo
If you strace the program, then you might get some insight into why it
thinks stdout is a terminal.
I'm not sure of why its behavior changed with this build, though.
Sapan
On Tue, Jun 30, 2009 at 6:18 PM, Stephen
Soltesz<soltesz at cs.princeton.edu> wrote:
> In case anyone has any other clues while I'm looking into this, using:
>
> python -m trace --trace /usr/bin/plc-config --xml
> "/etc/planetlab/default_config.xml /etc/planetlab/configs/site.xml" > out.x
>
> I was able to identify that the weird character is output simply by loading
> the 'readline' module from plc_config.py
>
> Indeed, setting the TERM variable to something other than xterm resolves the
> issue, but the bigger question is *why* is this occurring now?
>
>
> On Jun 30, 2009, at 1:37 PM, Thierry Parmentelat wrote:
>
>> yep, and just a wild guess, it might be worth trying with some different
>> TERM env variable, like export TERM=dumb so see if that changes anything
>>
>> On Jun 30, 2009, at 6:35 PM, Chris Tracy wrote:
>>
>>> Looks like an ANSI escape code to me :-)
>>>
>>> -Chris
>>>
>>>
>>> On Tue, Jun 30, 2009 at 12:27:43PM -0400, Marc E. Fiuczynski wrote:
>>>>
>>>> This extract character stuff at the beginning of the file is odd!
>>>> On Jun 30, 2009, at 11:43 AM, Mingliang Ma wrote:
>>>>
>>>> ^[[?1034h<?xml version="1.0" encoding="utf-8"?>
>>>> <configuration>
>>>> <variables>
>>>> <category id="plc">
>>>
>>>> _______________________________________________
>>>> Devel mailing list
>>>> Devel at lists.planet-lab.org
>>>> https://lists.planet-lab.org/mailman/listinfo/devel
>>>
>>>
>>> --
>>> Chris Tracy
>>> Mid-Atlantic Crossroads (MAX)
>>> Office phone: 301.314.6655
>>> GPG key: 0xB3B9C93D
>>> _______________________________________________
>>> Devel mailing list
>>> Devel at lists.planet-lab.org
>>> https://lists.planet-lab.org/mailman/listinfo/devel
>>
>> _______________________________________________
>> Devel mailing list
>> Devel at lists.planet-lab.org
>> https://lists.planet-lab.org/mailman/listinfo/devel
>
> _______________________________________________
> Devel mailing list
> Devel at lists.planet-lab.org
> https://lists.planet-lab.org/mailman/listinfo/devel
>
More information about the Devel
mailing list