General :: Redirect Input From One Terminal To Another

May 26, 2010

I have sshed into a linux box and I'm using dvtm and bash (although I have also tried this with Gnu screen and bash). I have two terminals, current /dev/pts/29 and /dev/pts/130. I want to redirect the input from one to the other.And then when I type in /dev/pts/29 the characters I type should show up in /dev/pts/130. However what ends up happening is that every other character I type gets redirected.

View 2 Replies


ADVERTISEMENT

General :: How To Redirect A Terminal/tty Output To Other Terminal/tty

Dec 14, 2010

hello
I tried to find a good subject but it was the best of mine, anyway I'll explain it here.
some time I do some thing like installing a new application in Linux terminal of my office PC but it take a long time and I have to go home during its installation or configuration process that it is not good to cancel it.My current solution is abandoning the process until next day. I wanted to know is there any way to redirect an input and out put of a terminal to another one, if it works I can continue my abandoned process by ssh to my Linux office PC and redirect that terminal to my new remote sshed terminal from my home.

Thank a lot for any help.

View 4 Replies View Related

General :: Redirect Stdin And Stderr To Another Terminal?

Jun 28, 2010

Is it possible to redirect stdout and stderr from one terminal say /dev/pts/2 to another /dev/pts/3?

I tried the following:

Code:
/dev/pts/2 2>&1 /dev/pts/3&

Then when I run a command the process stops.

View 4 Replies View Related

General :: Redirect Standart Output To Current Terminal?

Apr 17, 2010

i have a process launch by another app, i want to see the output (that is in console) in a terminal (gnome-terminal or tty); how can i capture de standart I/O from a process. my process (aria2) is launch by firefox and the output of ps is like:

# ps aux | grep aria2
dorian 30289 2.8 0.1 12148 4048 ? D 07:08 0:03 aria2c --continue -d /home/downloads/so/suse --referer=http://software.opensuse.org/112/en

...is running but i cant see the output (download state), how can i capture or redirect standart I/O to my terminal to get something like the output of:

$ aria2c --continue -d /home/downloads/so/suse --referer=http://software.opensuse.org/112/en --load-cookies=/tmp/flashgot.h2fnxf84.default/cookies --input-file=/tmp/flashgot.h2fnxf84.default/flashgot.fgt
[#1 SIZE:6.7MiB/4,289.3MiB(0%) CN:5 SPD:25.3KiBs ETA:48h01m01s]

View 1 Replies View Related

Debian :: Redirect Output Sound To Input (mic Or Line-in)

Jan 22, 2011

I want to compare the quality of a sound file (voice) before and after its transmission via a softphone (sjphone in my case). For this, i need to redirect the sound played, to the sound input (microphone or line-in).

View 1 Replies View Related

OpenSUSE Multimedia :: Redirect Input To Output Pulse Audio?

Aug 2, 2011

I have a TV card connected to my Dish box, and I would like to use it on my computer. The tv card works fine, and the audio is connected to my line in. The audio card receives the audio signal, and I can set the volume and record it without any problem, but I can't get it to redirect to an output in order to hear the sound. I have been battling with this issue since a kernel update back when 11.2 was about to come out. Back then, the alsa mixer had an option called audio loop-back, which did the trick. Since I know I ca record the audio and play it back without any problem, is there an application that can do this automatically and simultaneously?

View 1 Replies View Related

General :: Script To Input Commands Into Gnome-terminal?

Nov 24, 2010

I'm trying to get a script to open a gnome-terminal and input commands into it, just as you would typing them in. That way, I can automate commands using bash, even if the terminal is running a non-bash program like telnet, mysql, vim, etc.

So, for instance..

I would like to open telnet to connect to a mud (I'm aware of the security concerns) and input commands through a script.

This way, I can log in, enter name/password, and do some start-game stuff automatically.

This isn't just for a mud, though. I'd like to be able to script inputs for any terminal application... maybe automate vim, mysql, or whatever.

View 1 Replies View Related

General :: Removing SCIM Input Method As Default From Gnome Terminal?

Feb 16, 2010

While I can find my way around most things, terminals and desktop managers are different than I remember. One of the biggest problems that I am encountering today is that when running a gnome terminal (this is Suse 10.0 enterprise), I'm getting behavior in the window that I don't want. Specifically, when I type, my typing is underlined as if something is trying to spell check my window. Further, it seems as if when running vi or less, my keystrokes are only processed by these apps when I hit 'return'. I.e. if I'm running less and want to go back a page, I'll hit b, but nothing happens until I hit 'return'.

I seem to have tracked this down to the 'input method". Right clicking in the Gnome terminal allows me to set my input method to one of a dozen values. It seems that currently, it's set to "SCIM Input Method". If I then select 'default' or 'X Input Method', apps (i.e. things like less, vi, and even the bash shell) behave as I would expect.

a) what is this SCIM input method

b) how can I make it so that it is not the default?

I've poked around various configuration files in my home directory as well as in /etc, but I can't see to find how this is set.

View 1 Replies View Related

Software :: Redirect ALL Terminal Output To File And Screen (for Entire Session)?

Jul 6, 2010

Is there one command that will let me record an entire terminal session (with any possible errors) to a text file while also seeing all output on screen too? I know it can be done for individual commands, but I'm looking to do this for an entire session where the individual commands will be normal (i.e., not piped into tee, etc.). It would be even better if the command prompt is captured too. The obvious utility of this makes me think someone surely has come up with a solution long ago (probably in the 60's).(I'm sure it goes without saying, but subsequent output in that session should be appended to the file. The file should contain the full history, with all output and errors, of the session.)

View 9 Replies View Related

Programming :: Get Input Without The Terminal?

Apr 1, 2010

I've done a little program, it's the snake game. I use an X window to show the snake and all that but the input is taken from the terminal. That means that what I have to do to play the game is open it with the terminal and then the game opens but then I have to go to the terminal again to move the snake. if I open the game from the GUI I can't do anything because it doesn't take my directions. What do I have to do in order to get the program to have a connection with my keyboard? I use getchar() to get the input, maybe there is something else?

View 9 Replies View Related

Ubuntu :: How To Input Chinese (big 5) At Terminal

Sep 11, 2010

display Chinese using gnome terminal I can input Chinese using VI thru gnome terminal but I can not input Chinese(Big 5) correctly on the command line I use scim/bridge as my input method

View 1 Replies View Related

Ubuntu :: Change The Color Of The Text Before The Input At The Terminal?

Jan 17, 2011

I really don't know what to call it, but I want to change the color of text that appears before you type in whatever your input is.

For example:

Code:
negrabee@david-desktop:~$ ls /home/david/

I would want "negrabee@david-desktop:~$" to be in a different color. When you have whole bunch of commands and text in a full screen terminal, it gets really annoying to have to look for where you're entering the command so changing the color.

View 6 Replies View Related

Red Hat / Fedora :: Terminal - 'unable To Read Input Images'

Apr 28, 2010

1.) Whenever i am starting a new instance of terminal, it is giving messages 'unable to read input images' five times. Actually i had run a shell script that gave this message, but why is it appearing every time, i am opening a new terminal, (that script is already over and it generated the required outputs)? Because of this, when i run 'ls' command, it is showing all the files and directories with the same color, otherwise it used to show them in different colors.

2.) Once my panel had crashed, then i have made a new panel, but after that my instant messenger icon is no more keeps sitting on the system tray as it used to do before, it closes as i close its window otherwise even after closing the window, it used to keep me logged in and the icon use to be there at system tray.

3.) automount for usbdrive not working? Note: all these problems are there only in my own user account. Other user account like root and guest has everything correct.

View 4 Replies View Related

Software :: Wine: Keyboard Input Reaching Terminal Not Application

Jun 17, 2010

when I call a windows application with wine I cannot type anything when the application asks for it. The typed keys are displayed in the terminal instead. I use a ubuntu-based distro.

View 2 Replies View Related

Ubuntu Multimedia :: Creating ISO File In Terminal - Input / Output Error

Feb 15, 2011

I'm trying to create an iso file in a terminal with the following command:
$cat /dev/sr0 > nameofdisk.iso
I get the following error
cat: /dev/sr0: Input/output error
I already checked and my optical drive is indeed /dev/sr0. I've hunted google a few hours trying to figure it out. Does anyone know why I'd be getting this error?

View 4 Replies View Related

Ubuntu Networking :: Terminal Command/script To Upload A File To An Ftp Server Without User Input?

Apr 26, 2011

I've got used to using the ftp command from the terminal, which is useful, especially with macros. But it requires user input, and what I want to do now is upload a specific file to a server, once I've finished working with it every day. It's the same file every day. II would like to be able to do this semi-automatically: I just give the command and it connects to the server and uploads the file. (I will probably want to encrypt the file before uploading it.)I don't know how I could use ftp without any user input: I want it to be automatic.

View 5 Replies View Related

Programming :: Bash Ambiguous Redirect - Redirect One Command Output Which Will Be Treat As A Content Of File For Another Command?

Mar 9, 2011

I am trying to grep multiple numbers from file, grep does have the -f option for that.

Code: grep -f <`seq 500 520` /etc/passwd I know this could be done with

Code: for i in `seq 500 520`; do grep "$i" /etc/passwd; done But my question is fare more behind this example. It is possible to redirect one command output which will be treat as a content of file for another command ?

View 2 Replies View Related

General :: Redirect Set -x To File

Jun 14, 2010

I know that set -x can be used for debugging a shell script.But I want to redirect the output of set -x to a text file.eg: Say test.sh is my script,

View 3 Replies View Related

General :: Different Between Chain RH-Firewall-1-INPUT And Chain INPUT?

Feb 28, 2011

whats the different between Chain RH-Firewall-1-INPUT (2 references) and Chain INPUT (policy ACCEPT)?

View 1 Replies View Related

Ubuntu Multimedia :: Change Stereo Mic Input To Mono Input?

Nov 4, 2010

I recently got a real fancy unidirectional microphone, but when I go and use it, something strange happens. The mic is a mono mic, but when I record something, it appears to think it's stereo. Instead of having the same thing on both channels, it puts it all in the left channel, and silence on the right channel.

I tried fiddling with alsamixer. In capture (F4), adjusting the "Capture" device has an effect. However, it doesn't do anything useful. Lowering the right channel to zero does nothing, lowering the left channel to zero creates silence, and disabling the right channel creates silence.

In my System>Preferences>Sound (or pavucontrol, or what-have-you), there are "Analog Stereo Input" and "Analog Stereo Duplex" options there, but no "Analog Mono Input" or "Analog Stereo Output + Analog Mono Input" options (the latter being ideal).

Something interesting, though, if I do this:
Code:
arecord -r 96000 -D pulse -c 1 -vv -V mono /dev/null
it works correctly and outputs on both channels. But if I do
Code:
arecord -r 96000 -D pulse -c 2 -vv -V stereo /dev/null
then it's back to the same behavior. The VU meter on the second command shows the left channel going up and down as I make noise, but the right one always at zero.

The machine does have a crap internal mic built in to the screen bezel. If I do either of the above commands, they both work correctly. The stereo VU shows the same activity for both channels.

The machine is a Eee 1015PED, which has Intel integrated sound. Something probably insignificant is that the mic has a 1/4 inch mono plug, and to get it to plug into the Eee, I needed to get a 1/4 female to 1/8 male adapter. The mic's 1/4 plug is mono (duh) and therefore two-conductor, but the adapter I got is stereo, or three conductor (L, R, GND). I don't know if this is tripping something in hardware to tell it it's stereo or something.

I tried the mic on my desktop, which has a SB Audigy 4 (the non-pro flavor) and that has the "Analog Mono Input" function, so that works fine. Is there some way to turn this stereo input into mono input?

View 1 Replies View Related

General :: Redirect Output From Dd Command?

Apr 7, 2010

How to redirect output from dd command to /dev/null ?

View 2 Replies View Related

General :: Redirect Domain Name To Localhost?

Jun 1, 2010

I have a linux test machine which I would like to run a copy of a production webserver. This is a legacy application which does not use a property file for its server name. Throughout the application, the server name is hardcoded (example: open connection to myServer.myCompany.com).

Is there any linux trick which I can use to redirect all requests for a certain host back to localhost? I know in Windows that I can add an entry to the hosts file and have it redirect back to localhost. How do I do this in linux?

View 2 Replies View Related

General :: Why Does Nginx Redirect To A Strange URL

Aug 7, 2010

I had just set up nginx on my server. I have PHP and everything working okay. Except when I try the URL

http://xxx.xxx.xxx.xxx/123

I get redirected to

http://_/123

but when I try the url

http://xxx.xxx.xxx.xxx/123/

It works just as I want it to. How can I get nginx to treat the slashless url decently?

View 2 Replies View Related

General :: Redirect Port To Another Machine?

Sep 29, 2010

My poblem: At work I have a proxy with some closed ports. I need to connect to an Oracle DB on some DB_IP at port 1521. DB_IP is a public IP. What I Have: At home, I have a Linux machine and a Linksys WRT54G Router. What I need: How can I do to communicate a PC at work with DB_IP:1521?

View 1 Replies View Related

General :: Pipes And Redirect / When To Use Theses?

Jul 31, 2011

Although this is a basic stuff, but still i wonder.
Consider these two examples. code...

I wonder, why doesn't redirection work in first case? when to use redirect and when to use pipes? I have been Linux for a long time, but still this basic stuff baffles me.

View 2 Replies View Related

General :: How To Redirect Wget To Standard Out

Aug 9, 2011

I have a crontab that wgets a PHP page every five minutes (just to run some the PHP code), and I want to send the output to /dev/null. I couldn't find it in the wget manual.

I'm looking for something like:

wget -o stout http://whatever.com/page.php > /dev/null

View 4 Replies View Related

General :: Squid Redirect To Another Weburl?

Dec 21, 2010

is there any built-in option in squid to redirect a website URL to another URL?

View 2 Replies View Related

General :: Application Redirect To File

Aug 5, 2010

i want to redirect application to file.i m redirecting it by command
konsole -e 'application name' >> applog.txt
but it is not working.

View 6 Replies View Related

General :: Cannot Redirect URL To Another URL When The Link Is Down With Squid

Jun 10, 2010

i have installed squid 2.6 on my centos. i have writen a shell script to ping a network and write to a file. write '1' if network up and '0' if network down. After that,a perl script will read the file and do the redirection.Perl will redirect to a fix URL [URL] if the network down and do nothing when it up. i have put my perl script in squid.conf at url_rewrite_program /my_file_path.

below is my shell script for pinging:

Quote:

#!/bin/bash
while [ 1 ]
do
HOST=143.148.137.134

[code]....

My problem is client browser are not redirect to www.google.com even the network is down. It should go to the fix URL when the user click any URL in network down situation.it just appear cannot resolve host.

View 1 Replies View Related

General :: .htaccess To Redirect All Requests To Another URL?

Apr 16, 2010

I would like to setup .htaccess to redirect every request to one website regardless of folder/filename combination to another URL.For example[URL]

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved