[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tcf-dev] TCF Python interface and capabilities
|
Thanks, its working for me !
-----Original Message-----
From: tcf-dev-bounces@xxxxxxxxxxx [mailto:tcf-dev-bounces@xxxxxxxxxxx] On Behalf Of Frederic LEGER
Sent: Tuesday, May 23, 2017 12:54 AM
To: tcf-dev@xxxxxxxxxxx
Subject: Re: [tcf-dev] TCF Python interface and capabilities
Prasad,
went ok for me. From scratch, here is what I did :
mkdir -p ~/tmp/tcf
cd ~/tmp/tcf
git clone git://git.eclipse.org/gitroot/tcf/org.eclipse.tcf.agent.git
git clone git://git.eclipse.org/gitroot/tcf/org.eclipse.tcf.git
cd org.eclipse.tcf.agent/agent
make
./obj/GNU/Linux/x86_64/Debug/agent &
cd ../../org.eclipse.tcf/python/src
export PYTHONPATH=`pwd`:${PATH}
python tcf/tests/ProcessStart.py
And got the awaited output:
Runcontrol context is a container: True
Context state : (True, 140605502808544, u'Suspended', {u'Signal': 5,
u'SignalDescription': u'Trace/breakpoint trap', u'SignalName': u'SIGTRAP'}) Context state : (False, 0, None, {}) total 419316
dr-xr-xr-x. 2 root root 77824 May 22 18:00 .
drwxr-xr-x. 15 root root 4096 Dec 21 18:58 ..
...
Hope this helps
DERF
On 05/22/2017 07:38 PM, Nair, Prasad wrote:
> The tcf module cannot be imported.
> Can I pip install the tcf module. From where to get that module ?
>
> Thanks,
>
> Prasad
>
> -----Original Message-----
> From: tcf-dev-bounces@xxxxxxxxxxx [mailto:tcf-dev-bounces@xxxxxxxxxxx]
> On Behalf Of Frederic LEGER
> Sent: Monday, May 22, 2017 12:42 AM
> To: tcf-dev@xxxxxxxxxxx
> Subject: Re: [tcf-dev] TCF Python interface and capabilities
>
> Hello,
>
>> I was looking for python interface for TCF. How can I install it. Can
>> I install it using pip ?
>
> Nope, for now, you may download it an add it in your PYTHONPATH if you want.
>
>> I would like to know if I can use a python program to communicate
>> with a target device running
>
> Yes.
>
>> Tcf agent. I am not looking for any debug info from target, but I
>> would like to provision the device
>>
>> Or say transfer files between host and target , run command or
>> programs available in the Target etc.
>>
>> Is that possible thru TCF ?
>
> In the TCF python folder, you'll find the tests/ProcessStatrt.py module.
> This module give a full example on how to run and get IOs of an 'ls -l'
> on the remote target. You may want to use it as a first help.
>
> Hope this helps
>
> DERF
> _______________________________________________
> tcf-dev mailing list
> tcf-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or
> unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/tcf-dev
> _______________________________________________
> tcf-dev mailing list
> tcf-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or
> unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/tcf-dev
>
_______________________________________________
tcf-dev mailing list
tcf-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/tcf-dev