comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: submit idl job with AT command?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: submit idl job with AT command? [message #38946] Fri, 02 April 2004 13:15
Chad Bender is currently offline  Chad Bender
Messages: 21
Registered: July 2001
Junior Member
No Message Body
Re: submit idl job with AT command? [message #38958 is a reply to message #38946] Fri, 02 April 2004 00:05 Go to previous message
Pepijn Kenter is currently offline  Pepijn Kenter
Messages: 31
Registered: April 2002
Member
Kenneth P. Bowman wrote:
> In article <7f0cc27.0404011908.3562b15@posting.google.com>,
> tbeetz@yahoo.com (Tobi) wrote:
>
>
>> i am trying to run a calculation on a remote computer. since it takes
>> a long time for it to finish, i would like to submit it as a job and
>> then eventually even close the shell and not worry about it. here is
>> what i have been trying to do:
>
>
>
> Here is a short script called run_test that runs the IDL program TEST
> in the background:
>
>
> #!/bin/tcsh
>
> #To run use:
> #nohup run_test &
>
> (echo .run tes ; \
> echo TEST ; \
> echo exit) | \
> idl >>test.out

I always use:

echo TEST | idl >> test.out

This works for me since test.pro is compiled automatically and on my
system idl exits after running test when it is called this way.

But the main reason for me to reply is that you might be interested in
the 'screen' command. This can be used to log out while your programs
keep running. Unlike the nohup command, you can open the original shell
again later. So you could start an idl session at work, close the
terminal, go home and continue working sitting in your lazy chair.

I must admit I've never tried it, but I've read about it here:

http://www.kuro5hin.org/story/2004/3/9/16838/14935

Official home page is here:

http://www.gnu.org/software/screen/screen.html

Pepijn.
Re: submit idl job with AT command? [message #38960 is a reply to message #38958] Thu, 01 April 2004 21:23 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <7f0cc27.0404011908.3562b15@posting.google.com>,
tbeetz@yahoo.com (Tobi) wrote:

> i am trying to run a calculation on a remote computer. since it takes
> a long time for it to finish, i would like to submit it as a job and
> then eventually even close the shell and not worry about it. here is
> what i have been trying to do:


Here is a short script called run_test that runs the IDL program TEST
in the background:


#!/bin/tcsh

#To run use:
#nohup run_test &

(echo .run tes ; \
echo TEST ; \
echo exit) | \
idl >>test.out


This particular program uses t-shell, but similar things
work in other shells. You can queue up whatever IDl commands you
want with echo and then pipe them to idl. You can even pass
arguments to the IDL program from the command line
this way. Output is redirected to test.out. You can logout
after starting the job.

Ken Bowman
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Tabulated output
Next Topic: Re: Need help with value_locate and interpolation

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:35:08 PDT 2025

Total time taken to generate the page: 0.00566 seconds