Skip to content
oweidner edited this page Mar 22, 2012 · 28 revisions

PBS (over SSH) Plug-In

The PBS (over SSH) plug-in interfaces with a PBS, PBS Pro or TORQUE scheduler locally or remotely via SSH. The plug-in supports the job API. The adaptor supports custom security contexts of the type saga.context.SSH

URL schema to trigger the plug-in is: pbs+ssh:// (remote) and pbs:// (local)

Example usage:

ctx = saga.Context()
ctx.type = saga.Context.SSH
ctx.userid  = 'username' # like 'ssh username@host ...'
ctx.usercert = '/Users/username/.ssh/id_rsa_special' # like ssh -i ...'

session = saga.Session()
session.contexts.append(ctx)
 
# a pbs+ssh job service
js = saga.job.Service("pbs+ssh://alamo.futuregrid.org", session=session)

SGE (over SSH) Plug-In

The SGE (over SSH) plug-in interfaces with a Sun Grid Engine (SGE) scheduler locally or remotely via SSH. The plug-in supports the job API. The adaptor supports custom security contexts of the type saga.context.SSH

URL schema to trigger the plug-in is: sge+ssh:// (remote) and sge:// (local)

Example usage:

ctx = saga.Context()
ctx.type = saga.Context.SSH
ctx.userid  = 'username' # like 'ssh username@host ...'
ctx.usercert = '/Users/username/.ssh/id_rsa_special' # like ssh -i ...'

session = saga.Session()
session.contexts.append(ctx)
 
# an sge+ssh job service
js = saga.job.Service("sge+ssh://lonestar.tacc.utexas.edu", session=session)

SFTP Plug-In

The SFTP plug-in supports file transfer to and from remote hosts via SSH/SFTP. The plug-in supports the file API. The adaptor supports custom security contexts of the type saga.context.SSH

URL schema to trigger the plug-in is: sftp://

Example usage:

ctx = saga.Context()
ctx.type = saga.Context.SSH
ctx.userid  = 'username' # like 'ssh username@host ...'
ctx.usercert = '/Users/username/.ssh/id_rsa_special' # like ssh -i ...'

session = saga.Session()
session.contexts.append(ctx)
 
# an sftp remote directory service
dir = saga.file.Directory("sftp://alamo.futuregrid.org/home/username/myapp", session=session)
dir.make_dir("run_01")