[95272] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: ps, jobs, and bg jobs

daemon@ATHENA.MIT.EDU (Michael Ghens)
Fri Oct 16 12:19:20 1998

Date: Fri, 16 Oct 1998 09:18:41 -0700 (PDT)
From: Michael Ghens <michael@spconnect.com>
To: Rick Ingersoll <rci2@cornell.edu>
cc: redhat-list@redhat.com
In-Reply-To: <3.0.3.32.19981016115622.00906440@postoffice2.mail.cornell.edu>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

This would be my sugguestion.

Have the user run screen. When the job starts, do a 

<ctrl>-a d

This will detach the screen. 

The person can log out then come back on and type in screen -r  to
reattach it.

Or do a 

<ctrl>-a c

This will create two windows over the telnet session. By pressing <ctrl-a>
twice, it will toggle between screens.

I am not familiar with matlab, but if it either runs a job and puts it to
screen or writes it out to disk, (it is not interactive), you may want to
make use of the batch command.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Michael Ghens                       Small Planet Connections
Internet: michael@spconnect.com     Santa Barbara, CA 
			            http://www.spconnect.com/~michael    
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Unix is user friendly. It's just selective about who its friends are.

On Fri, 16 Oct 1998, Rick Ingersoll wrote:

> Date: Fri, 16 Oct 1998 11:56:22 -0400
> From: Rick Ingersoll <rci2@cornell.edu>
> Reply-To: redhat-list@redhat.com
> To: redhat-list@redhat.com
> Subject: <OFF> ps, jobs, and bg jobs
> Resent-Date: 16 Oct 1998 16:07:09 -0000
> Resent-From: redhat-list@redhat.com
> Resent-cc: recipient list not shown: ;
> 
> This a pretty basic question that I hope someone can answer.
> 
> I have several users who must run pretty big (CPU intensive, lengthy)
> Matlab jobs on a RH5.1 box. In order to eliminate the need to have open
> console or telnet sessions while one or more of these jobs is running,
> we've figured out (actually got the info off the Matlab site) how to run
> these jobs in the background so that the user can logout and then login
> later to examine the output.
> 
> The problem is that we can't seem to get these background jobs to show up
> in any output from either the 'ps' or 'jobs' command. According to the man
> pages and other folks we've talked to, we should be able to do this. I'm
> not sure whether or not this is a case of the man pages not "keeping up"
> with the command (seems like a common complaint) or whether we've just
> overlooked something.
> 
> Any enlightenment appreciated.
> 
> Rick.
> *********************************************************
> Rick Ingersoll                Phone: 607-255-9847
> Computer Support Specialist   FAX:   607-255-4698
> Department of Biometrics      rci2@cornell.edu
> Cornell University
>       www.biom.cornell.edu/Homepages/Rick_Ingersoll
> *********************************************************
> 
> 
> -- 
>   PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> 		http://www.redhat.com http://archive.redhat.com
>          To unsubscribe: mail redhat-list-request@redhat.com with 
>                        "unsubscribe" as the Subject.
> 


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post