MultiSchedulerTest exec rsync&scp testΒΆ

Note

You can find these scripts inside the folder pmis/STND_PMIS/test/console/example.
If you want to execute them, you can use the Jython Console from the devtool menu.

filename => ex16.py

import jarray
from java.lang import *
from test import MultiSchedulerTest

#envps = jarray.array(['sh','/opt/temp/rsync'], String )
#envps = jarray.array(['rsync','-avz', '-e', 'ssh -i /home/disco/mirror.key  -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null', '[email protected]:/home/sangah/edms/STND_PMIS/', '/opt/edms/STND_PMIS/'], String )
envps = jarray.array(['scp','-i', '/home/disco/mirror.key', '-o StrictHostKeyChecking=no', '-o UserKnownHostsFile=/dev/null', '[email protected]:/home/sangah/edms/STND_PMIS/201407/1407182674737531.png', '/opt/edms/STND_PMIS/201407/'], String )

print type(envps)

MultiSchedulerTest.getExecuteCommand(envps);
#MultiSchedulerTest.getExecuteCommand('rsync -h')
#MultiSchedulerTest.getExecuteCommand('scp -i /home/disco/mirror.key  -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null [email protected]:/home/sangah/edms/STND_PMIS/201407/1407294135657256.wmv /opt/edms/STND_PMIS/201407');

print "end"