1846274 Members
3075 Online
110256 Solutions
New Discussion

Re: unix script command

 
SOLVED
Go to solution
James W. Taylor
New Member

unix script command

I was using the script command from the console to record the installation of a product. When I exited from the script, the console froze and I had to reboot the server. This happened multiple times. The last time instead of a reboot I went to another server and did an rlogin. I killed the script process and the console came back. Is this expected behavior from the console? What can I do to avoid this in the future?
Don't worry be happy
4 REPLIES 4
Paula J Frazer-Campbell
Honored Contributor

Re: unix script command

Hi James

It looks like your script re-executed. What were you running?

The console should only be used as a last resort and not to perform tasks that can be run from a telnet login.

We all have done it and of course learnt from it.
You are not the first and will not be the last.

Best wishes

Paula
If you can spell SysAdmin then you is one - anon
Dan Hetzel
Honored Contributor
Solution

Re: unix script command

Hi James,

Using the 'script' command from the console isn't a very good idea, as you realized.
Maybe that system reboot was a bit too expeditive solution. You could have tried a terminal reset.

I guess that your installation program is probably addressing some of the terminal formatting capabilities which are not properly passed through by 'script'. This could result in an terminal lock, you know that a simple could apparently freeze the terminal (in fact it's simply freezing the output if XON-XOFF flow control is enabled)

Next time, if you want to use 'script', you'd better use it from a remote login or telnet terminal as this will be a lot easier to 'kill' in case of a problem.

Best regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Sandor Horvath_2
Valued Contributor

Re: unix script command

Hi !

Which machine do You have ?

The new series A, L have a LAN console.
If You have , activate it, telnet from xterm, and log it to file.

regards, Saa
If no problem, don't fixed it.
Ovidiu D. Raita
Valued Contributor

Re: unix script command

If your console gets locked a way to reset it is:

1. power it off
2. turn it on keeping CTRL-D ( or CTRL-ALT-D) pressed for a couple a secconds (if you have any other spare finger :-))

Ovidiu

Simple solutions to complex problems