Duke-UNC Brain Imaging and Analysis Center
BIAC Forums | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Support Forums
 Unix Support
 Unix multiple terminals

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
wang Posted - Jul 03 2007 : 11:41:29 AM

It occurs to me several times recently that when I open multiple terminals in golgi, and run jobs in background, only the one which I currently work on will keep alive, all those terminals that I've set up jobs but did not touch for while will become decay (lose connections). This morning I had two jobs in kaze/data/GSK.01, they became disconnected again. Even I set up the jobs to work in background using "&", it seems the jobs stopped at around 10:13am anyway.This does not seem to be a connection problem because I can get access to it if I open a new terminal. Does anyone know how to keep multiple terminals alive? Thanks.

Lihong
2   L A T E S T    R E P L I E S    (Newest First)
syam.gadde Posted - Aug 28 2007 : 1:49:06 PM
Here's an additional trick:

./NAMEofJOB >& output.log &

The ">&" will redirect standard output and standard error to the file output.log. So if the program (or programs that it calls) produce error messages on standard error, they will go into output.log too. (This works for most shells, including bash and tcsh).
petty Posted - Aug 28 2007 : 11:56:41 AM
this has nothing to do with keeping a terminal alive, but if you run your processes with "nohup" = no hang ups, they will run even if the terminal connection is lost.

ie: nohup ./NAMEofJOB > output.log &

this will run "NAMEofJOB" and will pipe anything that would be displayed in the terminal to "output.log", and it will run in the background

BIAC Forums © 2000-2010 Brain Imaging and Analysis Center Go To Top Of Page
This page was generated in 0.34 seconds. Snitz Forums 2000