On Sat, Apr 20, 2002 at 12:00:14PM +0530, Binand Raj S. wrote:
> On Saturday 20 Apr 2002 09:54, USM Bish wrote:
> >
> > An update for LOST snippets have been placed at:
> > http://lost.sourceforge.net
> 
> #278 is wrong/incomplete. Control-z doesn't put a program
> into background. It stops it. You need to type bg in bash
> to put it in background. Also, in bash2, you can disown
> the process :-)
> 
> Binand
> 
---end quoted text---

Binand, thanks for the prompt response. Technically, you are
dead right. This is incomplete, and you  need to use 'bg' to
push the process in the background. I would be re-wording it
for technical correctness ...

Never used bash2, so cannot comment ...

In practical usage though, the 'bg' is not that critical, and
one may start another process immediately after the 'Ctrl-z'.
At any later stage you can bring  the old  process  back with 
'fg'. I have never faced any  problem at any stage because of
the omission of 'bg' command after Ctrl-z. 

The script output below confirms:

Script started on Sat Apr 20 23:30:15 2002

usmbish@aedes:~$less pgptxt
----------------------------------------------------------------
Summary of commands PGP and gnupg
----------------------------------------------------------------

1. Generate a key

   PGP] pgp --kg
   
   gnupg] gpg --gen-key
   
2. Copy public key to a file

   PGP] pgp -kx  (asks for a filename to copy to)

   gnupg] gpg --armor --output filename --export <userid>

   [Rest snipped]      
---<Comment: This was the place where Ctrl-Z was pressed>---
        
pgp.txt
[1]+  Stopped                 less pgp.txt
usmbish@aedes:~$cat 044.others

:       _ /~\'_
         (o o)
=====oooO==U==Oooo================[USM Bish]===============

The most effective way to remember your  wife's birthday is 
to forget it once.

======================[URL:http://geocities.com/usmbish/]==
:
usmbish@aedes:~$fg
less pgp.txt
----------------------------------------------------------------
Summary of commands PGP and gnupg
----------------------------------------------------------------

Generate a key

   PGP] pgp --kg

   gnupg] gpg --gen-key

   Copy public key to a file

   PGP] pgp -kx  (asks for a filename to copy to)

   gnupg] gpg --armor --output filename --export <userid>

   [Rest snipped]
usmbish@aedes:~$exit
exit

Script done on Sat Apr 20 23:31:07 2002


Just my point of view.

Bish

--
:
####[ Linux One Stanza Tip (LOST) ]###########################

Sub : Pushing process into background (bash)         LOST #278

To push a running process to the background, press Ctrl-z. To
bring it back to foreground, on the bash shell prompt, type:
$fg <program>
 
####<[EMAIL PROTECTED]>#####################
:


_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to