Operating System - HP-UX
1754174 Members
2868 Online
108811 Solutions
New Discussion юеВ

Re: Output of Custom package scripts to terminal

 
Vibhor Kumar Agarwal
Esteemed Contributor

Output of Custom package scripts to terminal

Hi,

I am doing some testing with creation of depots on HP-UX systems (11.11).

Want to display some echo statements based on the processing during checkinstall, pre & postinstall scripts on the terminal.

The echo statements are getting directed to /var/adm/sw/swagent.log
I want to display them at the terminal itself.

How can i do it?
Thanks
Vibhor Kumar Agarwal
5 REPLIES 5
paolo barila
Valued Contributor

Re: Output of Custom package scripts to terminal

Is this an option?

# tail -f /var/adm/sw/swagent.log
share share share
Dennis Handly
Acclaimed Contributor

Re: Output of Custom package scripts to terminal

>The echo statements are getting directed to /var/adm/sw/swagent.log
>I want to display them at the terminal itself.

That isn't possible since it is swagent or the swagentd demon that is doing the work and it has no idea who started the swinstall.

You could of course send this info to a file and then tail that file as Paolo suggested.
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Output of Custom package scripts to terminal

If I tail the file, the output will be visible all at one go.

I wanted to display progress status.

eg.
Command 1 succeeded
Command 2 succeeded

Is this any other way to do that?
Vibhor Kumar Agarwal
paolo barila
Valued Contributor

Re: Output of Custom package scripts to terminal

Do you mean?

# tail -f /var/adm/sw/swagent.log | grep succeded
share share share
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Output of Custom package scripts to terminal

Nope
Vibhor Kumar Agarwal