From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Alexandr R Ogurtzoff To: community@altlinux.ru Subject: Re: [Comm] tty number in script... Date: Wed, 14 Jul 2004 09:09:35 +0300 User-Agent: KMail/1.6.2 References: <200407131747.34670.iscander@mercuri.mk.ua> In-Reply-To: <200407131747.34670.iscander@mercuri.mk.ua> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 8bit Message-Id: <200407140909.35031.iscander@mercuri.mk.ua> X-Virus-Scanned: by amavisd-new at localhost X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: community@altlinux.ru List-Id: Mailing list for ALT Linux users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jul 2004 06:14:29 -0000 Archived-At: List-Archive: List-Post: В сообщении от Вторник 13 Июль 2004 17:47 Alexandr R Ogurtzoff написал(a): > Вопрос как мне узнать на какой консоли запущен скрипт? > То есть допустим я в приглашении командной строки хочу видеть на какой по > номеру консоли я нахожусь tty1-6 ? Спасибо получилось! [iscander@iscander /dev/pts/2 ~]$ PS1="[\u@\h `tty` \w]\$ " [iscander@iscander /dev/pts/2 ~]$ PS1="[\u@\h `fgconsole` \w]\$ " [iscander@iscander 7 ~]$ -- С наилучшими пожеланиями With best regards Александр Огурцов Alexandr Ogurtzoff