Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Is there a qsub option for stdout?: msg#00111

clustering.torque.user

Subject: Re: Is there a qsub option for stdout?


> I have been trying to find an option so that when I run
> qsub it returns the stdout rather than putting it in a file.
> I have tried the -z, -I, -k, -j, and none of these seem to
> be what I am after. Any suggestions? Am I missing
> something in the man file?

I assume that you want to be able to script something like this:

qsub -I -l walltime=1:00:00,nodes=1:ppn=1 << EOF
command_1
command_2
command_3
EOF

You cannot do that, due to a limitation in the implementation.
You will get the error output:
qsub: standard input and output must be a terminal for
interactive job submission

Except for changing the implementation of 'qsub', I
suggest that you examine the tool 'expect' that is able
to automatically put commands into an interactive session
(as 'qsub -I'), so you can make command scripts and give them
to 'qsub' and still get all stdout output directly as stdout
rather than putting it in a file.

With the help of 'expect' you might be able to write a tool
that acts somewhat like what you are looking for.

BTW, I have answered similar questions previously:
http://www.supercluster.org/pipermail/torqueusers/2006-April/003598.html

Best regards,
-- Lennart Karlsson <Lennart.Karlsson@xxxxxxxxxx>
National Supercomputer Centre in Linkoping, Sweden
http://www.nsc.liu.se


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
user-groups.jax...    php.zend.framew...    os.solaris.open...    web.quixote.use...    java.openjdk.ho...    ietf.secmech/20...    gnu.glpk/2004-0...    recreation.cars...    network.smokepi...    linux.drivers.i...    cms.opencms.dev...    fonts.gfontview...    text.xml.soap.u...    voip.nist-sip/2...    debian.ports.hp...    xfree86.interna...    science.biology...    qnx.openqnx.dev...    mail.sylpheed.c...    busybox/bios/20...    emulators.kvm.s...    hardware.openco...    apple.fink.begi...    kde.german/2006...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation