🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.ultrix
Article #8903

Re: suspend a progr.,logout,login&restart it again

#8903
From: Yasushi Kuno
Date: Fri, 10 Sep 1993 04:04
35 lines
1968 bytes
rsl11@kuhub.cc.ukans.edu writes:

>Hello there,

  Hello,

>	I would like to do the following in UNIX and I am wondering whther 
>this is is feasible.

  It is.

>1. I would like to run a program using the nohup command so that even if
>I logout the program can still be running.

  All right.

>2. Then I would like to suspend it so that the program won't be running.
>Note that I do not want the process to be killed.

  Use 'ps' command and memorize your program's PID.  Then, you
can suspend the program by 'kill -STOP <PID>'.

>3. Then I want to logout and when I log in again I would like to be able to
>restart the program, i.e. continue it from the point where it was before.

  Just do 'kill -CONT <PID>' and you can unfreeze the program.
I understand that the program is not doing any terminal I/O,
its output being written to some file(s).  If you need terminal
I/O, you can use a free software called 'pty.'

>	I would appreciate any relevasnt response.

  Hope this helps,

						Yasushi Kuno
Technical Details
Message-ID: <1993Sep10.040405.22917@gssm.otsuka.tsukuba.ac.jp>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!ccut!news.u-tokyo.ac.jp!s.u-tokyo!kekux!crimson!ume!gama!lab!utogw!kuno
References: <1993Sep9.163846.53426@kuhub.cc.ukans.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10f9b1,b19a2b207f328863
X-Google-Attributes: gid10f9b1,public
X-Google-Thread: faae6,b19a2b207f328863
X-Google-Attributes: gidfaae6,public
X-Google-Thread: 10b612,b19a2b207f328863
X-Google-Attributes: gid10b612,public
X-Google-ArrivalTime: 1993-09-10 08:22:43 PST
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!ccut!news.u-tokyo.ac.jp!s.u-tokyo!kekux!crimson!ume!gama!lab!utogw!kuno
From: kuno@gssm.otsuka.tsukuba.ac.jp (Yasushi Kuno)
Newsgroups: comp.unix.ultrix,comp.unix.wizards,fj.questions.unix
Subject: Re: suspend a progr.,logout,login&restart it again
Message-ID: <1993Sep10.040405.22917@gssm.otsuka.tsukuba.ac.jp>
Date: 10 Sep 93 04:04:05 GMT
References: <1993Sep9.163846.53426@kuhub.cc.ukans.edu>
Sender: news@gssm.otsuka.tsukuba.ac.jp
Organization: GSSM Otsuka, Univ. of TSUKUBA, Tokyo, Japan
Lines: 35