Exemple #1
0
'''
Created on Jan 14, 2011

@author: Administrator
'''

import os
import rpyc
from rpycutil import rcopy
from s60util import install

HOST = '172.16.0.2'
FNS = 'amx.jad', 'amx.jar'
APP = 'Aportuj'
DIR = r'E:\installs'

conn = rpyc.classic.connect(HOST)
for fn in FNS:
    rcopy(fn, DIR, dst=conn)
install(conn, os.path.join(DIR, FNS[0]))
conn.modules.midlet.run(APP)
Exemple #2
0
def copy(src, dst):
    shost, srcfn = split_path(src)
    dhost, dstfn = split_path(dst)
    src_conn = init_conn(shost) if shost else None
    dst_conn = init_conn(dhost) if dhost else None
    rpycutil.rcopy(srcfn, dstfn, src=src_conn, dst=dst_conn)
Exemple #3
0
def copy(src, dst):
    shost, srcfn = split_path(src)
    dhost, dstfn = split_path(dst)
    src_conn = init_conn(shost) if shost else None
    dst_conn = init_conn(dhost) if dhost else None
    rpycutil.rcopy(srcfn, dstfn, src=src_conn, dst=dst_conn)