LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   pause bash terminal.. (https://www.linuxquestions.org/questions/linux-software-2/pause-bash-terminal-123037/)

xconspirisist 12-05-2003 02:56 PM

pause bash terminal..
 
hey, I want to pause the output of ( what I think is ) a bash terminal. In my rc.d scripts i've added my own ' echo's ', and I want the script to pause for about 2 seconds before moving on, is there a way to do this ?

also, is there like an echo off, and echo on command, like in xp ? the processes in the rc.d script files generate babble ... and I actualy dont care what they say.. can I stop them ?

Many many thanks.

david_ross 12-05-2003 03:01 PM

To add a 2 second pause:
sleep 2

I wouldn't recommend hiding the output since it can help determine any problems with your system. If you do want to stop output from commands in the scripts then redirect the output like:
/paht/to/command 2>&1 > /dev/null

xconspirisist 12-05-2003 05:25 PM

cheers. Ive decided not to stop output from commands in heed of your advice.


All times are GMT -5. The time now is 09:40 AM.