[IPython-dev] 0.11rc1 : problem with tutorial for PBS in http://ipython.org/ipython-doc/dev/parallel/parallel_process.html
Johann Cohen-Tanugi
johann.cohentanugi at gmail.com
Wed Jul 6 09:55:42 EDT 2011
hmmm isn't it :
def find_args(self):
return self.submit_command + [self.batch_file]
in BatchSystemLauncher that I need to overwrite?
Johann
On 07/06/2011 03:32 PM, Johann Cohen-Tanugi wrote:
>
>
> On 07/06/2011 03:16 PM, Thomas Kluyver wrote:
>> On 6 July 2011 13:33, Johann Cohen-Tanugi
>> <johann.cohentanugi at gmail.com <mailto:johann.cohentanugi at gmail.com>>
>> wrote:
>>
>> class LSFLauncher(BatchSystemLauncher):
>> """A BatchSystemLauncher subclass for LSF."""
>>
>> submit_command = List(['bsub >'], config=True,<....>
>>
> first of all of course I meant "bsub <"
>>
>> These args end up being passed to Popen, which will only handle
>> shell-style piping if called with shell=True. Looking at the code, I
>> think you need to override the .start() method. You can either send
>> the file to the subprocess' stdin yourself (see
>> http://docs.python.org/library/subprocess.html#replacing-shell-pipeline
>> ), or you can use Popen with shell=True (and pass the command as a
>> string).
>>
> I will have to digest that, but that is a start!
> thanks!
> Johann
>> Hope that helps,
>> Thomas
>>
>> --
>> This message has been scanned for viruses and
>> dangerous content by *MailScanner* <http://www.mailscanner.info/>,
>> and is
>> believed to be clean.
>
> --
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20110706/301e9c1e/attachment.html>
More information about the IPython-dev
mailing list