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 while the installation process is going on.
If I write "tail /var/adm/sw/swagent.log", that doesn't get displayed on terminal during the installation process.

How can i do it?
Thanks

Try:

tail -f /var/adm/sw/swagent.log

Regards

Where?

If i do that after the install ends, my purpose is defeated as i want to see the output runtime.
If i do that during the installation process from any custom script, i still not get the output on terminal.

Start the command on another terminal before the installation proces.

Regards

That are workarounds.

Isn't it possible by any way to display the progress of custom scripts by "echo" statements on the same terminal in any way.

Why didnt you use | tee <outfile.file>?

echo hello world > /dev/tty

Thanks Perderabo,
Redirecting to the tty worked.

Tee won't help me as the standard output goes to the log file and the redirected one isn't visible to me runtime.