I am a new paramiko user and am having difficulty running commands on a remote server with paramiko. I want to export the path, and also run a program called tophatin the background. I can log in using paramiko.sshclient(), but my code exec_commandhas no results.
stdin, stdout, sterr = ssh.exec_command('export PATH=$PATH:/proj/genome/programs
/tophat-1.3.0/bin:/proj/genome/programs/cufflinks-1.0.3/bin:/proj/genome/programs/
bowtie-0.12.7:/proj/genome/programs/samtools-0.1.16')
stdin, stdout, sterr = ssh.exec_command('nohup tophat -o /output/path/directory -I
10000 -p 8 --microexon-search -r 50 /proj/genome/programs/bowtie-0.12.7/indexes
/ce9 /input/path/1 /input/path/2 &')
there is no file nohup.out, and python just moves on to the next line without error messages. I tried without nohup, and the result is the same. I tried to follow this paramic textbook .
Am I using it wrong exec_command?
source
share