Operating System - HP-UX
1833759 Members
2034 Online
110063 Solutions
New Discussion

answering vxdump by signals

 
itai weisman
Super Advisor

answering vxdump by signals

hello everyone,
does anyone know how can i reply to vxdump question (like when a tape ends and replaced etc) by signals ? (kill -??)
can't find about it in the manual pages.
i found out (by guessing ) that kill -15 answers "NO" ...
if there is an alternative way to communitcate with backup procedure that runs on the background - i'll be glad to hear.
thanks ppl
Itai
6 REPLIES 6
Stephen Keane
Honored Contributor

Re: answering vxdump by signals

If you want to run an interactive process (like vxdump) in the background you should think about using something like "expect".
itai weisman
Super Advisor

Re: answering vxdump by signals

what is that?
Stephen Keane
Honored Contributor

Re: answering vxdump by signals

Muthukumar_5
Honored Contributor

Re: answering vxdump by signals

expect is scripting language used to automate interactive procedure in a non-interactive manner.

To say with example:

Automating telnet login:

telnet

will prompt for

Login:
Passwd:

It will expect for "Login" and "Passwd" strings and send our input to that.

Above link will give source area.

hth.
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: answering vxdump by signals

kill -15 is SIGTERM.This signal is used to politely request a program terminates. It is the default signal for kill(1) and killall(1). This signal can be caught in contrast to SIGKILL, and used to cleanup before exiting. The signals default action is to cause the program to terminate.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Stephen Keane
Honored Contributor

Re: answering vxdump by signals