diff options
Diffstat (limited to 'cgi-bin/activities.py')
-rwxr-xr-x | cgi-bin/activities.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cgi-bin/activities.py b/cgi-bin/activities.py index c0fc829..8a36e79 100755 --- a/cgi-bin/activities.py +++ b/cgi-bin/activities.py @@ -183,6 +183,8 @@ def getFile(filepth,filename): log = open('/tmp/loggetfile','w') pth = filepth / filename tgtpth = path('content') / filepth + print >> log, 'filepth',filepth,'tgtpth',tgtpth,'filename',filename + log.close() if USB.exists(): #get from usb drive pth = USB / srcpth cmd = 'cp -r ' + pth + ' ' + tgtpth @@ -190,6 +192,8 @@ def getFile(filepth,filename): subprocess.call(cmd,shell=True) else: #get from schoolserver pth = SS / filepth + log = open('/tmp/loggetfile1','w') + print >> log, 'pth',pth if filename.find('*') > -1: script = 'cd ' + str(pth) + '\nmget ' + filename else: |