-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
70 lines (37 loc) · 1.21 KB
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <markdowncell>
# Testing the chromebook
# <codecell>
import os
# <codecell>
lisfir = ('/home/wcmckee/index.xcf')
# <codecell>
lisfir
# <codecell>
def lisfire(localfile, remotehost, remotefile):
return os.system('scp "%s" "%s:%s"' % (localfile, remotehost, remotefile) )
def refzem(remotehost, remotefolder):
return os.system('scp "%s":"%s" ls -R' % (remotehost, remotefolder))
def rsyzmpush(localfile, remotehost, remotefile):
return os.system('rsync -azP "%s" "%s:%s"' % (localfile, remotehost, remotefile))
def rsyzmpull(remotehost, remotefile, localfile):
return os.system('rsync -azP "%s:%s": "%s"' % (localfile, remotehost, remotefile))
def rsyzmloc(localfile, dilocfil):
return os.system('rsync -a "%s" "%s' % (localfile, dilocfil))
# <codecell>
rsyzmloc('/home/wcmckee', '/media/removable/USB Drive/')
# <codecell>
lisfire('/home/wcmckee/Documents/getsdrawn-line.png', 'wcmckee@getsdrawn.com', '/home/wcmckee/getsdrawn-line.png')
# <codecell>
checkred = refzem('wcmckee', 'wcmckee.com')
# <codecell>
checkred.real
# <codecell>
chrez = checkred.conjugate
# <codecell>
checkred.imag
# <codecell>
chrez()
# <codecell>
# <codecell>