multiple -cmds for external application
I would like to send multiple cmds when I lunch kitty using the "Open session in Putty". This is what I have:
D:\Dropbox\pAPPS\ssh\kitty.exe -load winSCp -cmd "cd '!/'" !U@!@ -cmd "qsub -I -X -l nodes=2:ppn=4,walltime=2:00:00"
This works fine but after grabbing a queue I would like it to return to the current directory and load some modules like so:
D:\Dropbox\pAPPS\ssh\kitty.exe -load winSCp -cmd "cd '!/'" !U@!@ ; "qsub -I -X -l nodes=2:ppn=4,walltime=2:00:00" ; cd "cd '!/'" ; "module load matlab"
I have tried adding semicolons (like above) and -cmd to the different commands but none seem to work.
Thank you.