Antwort: Rely to a process running nohup in background

From: Peter Wuestefeld (Peter.Wuestefeld@SYSVA.DE)
Date: Thu May 22 2003 - 09:48:23 EDT


Have a look at the freeware package "screen" - it should be able to do what
you want.

You ca find it here:

ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/aix
/freeSoftware/aixtoolbox/RPMS/ppc/screen/screen-3.9.8-1.aix4.3.ppc.rpm

HTH,
Peter

Peter Wuestefeld M.A.

sysva GmbH - ein Unternehmen der SVA
Niederlassung Stuttgart
Wilhelm-Haas-Straße 6
70771 Leinfelden-Echterdingen

Büro: 0711 758595-40
Fax: 0711 758595-44
Mobil: 0151 12524406
SMTP: Peter.Wuestefeld@sysva.de

Somewhere found on the 'net:
=> Airconditioned. DO NOT open Windows. <=

                      Edward Soldanels
                      <ed.soldanels@KCM An: aix-l@Princeton.EDU
                      ETRO.EDU> Kopie:
                      Gesendet von: IBM Thema: Rely to a process running nohup in background
                      AIX Discussion
                      List
                      <aix-l@Princeton.
                      EDU>

                      22.05.2003 14:38
                      Bitte antworten
                      an IBM AIX
                      Discussion List

Can anyone tell me if there is a way to reply to a system prompt for a
shell
script that is running under nohup and in the background where the stdout
and stderr are redirected to a log file. Once you log out and back in
again
as the same user, the jobs that you started in the first session do not
show
when you execute the 'jobs' command; so it appears that you cannot use the
'fg' command to bring a background job into the foreground to reply to the
system prompt.
What I am attempting to do is run some backups from a shell script that I
run with nohup in the background. What I want to be able to do is submit
the script, logout, then log back in again from a different time and/or
place to check the log file, and reply to any prompts for tape media that
have come up. The prompt is expecting me to hit the enter key to
acknowledge that the tape media has been mounted in the tape drive, but I
do
not know how to accomplish this for a job running in background. Some of
my
backups span multiple tape volumes, so the -q flag of the backup command is
not useful in this scenario. I typically will be doing this via a dial-up
connection where my session persistence is not guaranteed. Is there a
better way to handle this? Thanks.

Ed



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:51 EDT