|
Re: submit idl job with AT command? [message #38958 is a reply to message #38946] |
Fri, 02 April 2004 00:05  |
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  |
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
|
|
|