LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-20-2005, 06:01 PM   #1
julian_s
Member
 
Registered: Jan 2004
Location: Colombia
Distribution: Ubuntu 5.10
Posts: 35

Rep: Reputation: 15
Question How to open a program and send it to another shell


I know there's a way to do what I'm trying to do, but I'm just too noobie to do it.

Here's the thing: I want open multiple simple text files with less from one of the terminals that you get when you do <ctrl>+<alt>+<F?>(I don't how do you call these kind of terminals), but each file must be open in one different terminal, so when I hit ctrl+alt+F1 I see the first file, then if I hit <ctrl>+<alt>+<F2> the second an so on...

I will only have to open a maximum of 5 files so there'll be plenty terminals to do that.

Also, I have a funny thing happening with these terminals, that when I'm in the X an then pass to these terminals I just get a black screen, and and I have to switch to another terminal, and then back again so I can see what was originally in that terminal.

Last edited by julian_s; 12-20-2005 at 10:07 PM.
 
Old 12-22-2005, 03:54 PM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hi,

to redirect the standard output of a command to a virtual terminal:
Code:
less foo.txt > /dev/tty1
the problem is that you only have the control of your file (for example if you want to see the next page) from the terminal you have run the command.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
open a URL from shell plisken Linux - General 3 11-10-2005 01:43 AM
SHell program in c SatYr_84 Linux - Software 1 10-03-2005 05:49 PM
HELP!! I need to program a shell pleowulf Programming 2 02-11-2005 01:12 PM
Shell Program Veteq Programming 12 08-18-2004 07:20 AM
What is 'open a shell'? wood Linux - General 5 09-03-2003 10:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration