Hi Patrick,

I tried the script. It connects to CdC and there is some activity but 
then CdC hangs and the scripts exits:

 >perl cdc-tcp-2.pl
[Connected to 127.0.0.1:3292]
OK! id=1 chart=Chart_1
 We are connected as client 1 , the active chart is Chart_1
 Send CMD : newchart test
Command failed: +Failed!
+

Any idea what's going on?

I am using the 1/21 version.

Thanks,

    Sander

Patrick Chevalley wrote:
>
> Hi,
>
> CdC 3 use tcp/ip instead of dde, this is probably much more easy to 
> interface.
>
> You can find script example in the source package or here:
> http://skychart.svn.sourceforge.net/viewvc/skychart/trunk/skychart/scripts/ 
> <http://skychart.svn.sourceforge.net/viewvc/skychart/trunk/skychart/scripts/>
>
> There is java and perl example, tcpclient2.pl show how to produce a 
> jpeg image
> of M37.
> To know all the available command search for "cmdlist" in the source file
> u_constant.pas.
> A command you need that is not in the example is "setdate 
> yyyy-mm-ddThh:mm:ss"
>
> I think with this command it is easy to do a script that read your 
> date and
> target star and produce a list of chart.
>
> Beware I just correct tcpclient2.pl to work with the last version, it is
> possible there is other bug because I not often test for all the 
> change I do
> to the program. BTW "gettz" work but I need to adapt "settz" for the new
> timezone system.
>
> Patrick
>
>  

Reply via email to