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


ADVERTISEMENT

General :: Get Gnome Terminal Execute Different Commands From Diff. Tabs?

Jan 6, 2010

In gnome terminal it is possible to open multiple tabs with Quote:$ gnome-terminal --tab-with-profile=jake_lardasset --tab-with-profile=virtualsexgranny -x alpineWe got even further....Quote:gnome-terminal --tab-with-profile=james_treesexer --command pymol --tab-with-profile=loverboy13 --command alpineand pymol runs, but not in the tab and alpine runs in the tab.The problem is, that when using a script to check mail it has Quote:gnome-terminal --tab-with-profile=chrissypink --command alpine --tab-with-profile=jake_hugerichard -x ssh xxxx@xxxx.ut.eenot the other way aroundIs there a simpler way to do this?And why is it not possible to execute ssh with the --command parameter and -x has to be used ,but top and so on can be executed with --command

View 2 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

General :: Gnome-terminal/bash - Cancel Inserted Commands That Will Be Executed Later?

Mar 13, 2011

$ execute_some_long_command <command is executing> <Accidently press middle button that inserts bunch of garbage (including, for example, `rm -Rf ~/*`) into console>

How to let execute_some_long_command finish, but not execute inserted things?

View 1 Replies View Related

Ubuntu :: Gnome-terminal -e <multiple Commands>

Sep 1, 2011

With xterm, I can do the following, and the scripts are executed sequentially in a single xterm: xterm -e 'script1.sh;script2.sh' But with gnome-terminal, when I do: gnome-terminal -e script1.sh;script2.sh It runs them in parallel in 2 different terminals. I've tried a few combinations of ", and ', around the scrips, but no difference.

View 2 Replies View Related

Programming :: Open Gnome Terminal (pass Commands ) On Clicking Glade Button

Dec 18, 2010

I am working on a small project for making a small configuration tool for ubuntu 9.10 for new linux users, that make their system working easily without knowledge of the linux commands.I created a gui in glade and loaded the gui with my python program to show up, now i wish to have some python codes that can launch a gnome terminal (and also pass some linux commands to it) on the click of a button contained in the glade file.

View 1 Replies View Related

General :: Keyboard Input Time Is More For Typing Commands?

Aug 15, 2010

While typing commands it takes more time to type.let me know on how to correct this

View 3 Replies View Related

General :: What Are Some Useful Terminal Commands

Mar 30, 2011

I know CD, Apt-Get, and Dir, but besides that I know mostly Command Prompt commands and that's not many, and they seem to differ from Terminal. What are some useful Terminal commands that I should know how to use in times or need?

View 3 Replies View Related

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 View Related

General :: Check Available Commands In Terminal?

Apr 13, 2011

i don't know if there is a way to check or see the list of commands available to each shell you decide to use, be it BASH,KSH, etc in your terminal. You know how its works in microsoft, in cmd-line or dos, you type HELP and its brings all the commands available for use.

View 6 Replies View Related

General :: Terminal Commands Running Behind The GUI?

Jan 10, 2010

Recently I gained interest in running command from the terminal, like rhythmbox-client --play-pause and vlc --open, but I could not find the vlc's pause command under vlc. there's a way I can have a terminal display the commands that run when I do some action. For example, when I click on pause in vlc, the terminal should show me what command it used to pause vlc. What's the closest ting I can get to this?

View 1 Replies View Related

General :: Where Learn The Terminal Commands?

May 13, 2011

How or Where Can I learn the terminal commands?

View 11 Replies View Related

General :: Difference Between These Terminal Commands?

Feb 18, 2011

difference between these terminal commands?

dpkg -l
dpkg -list
dpkg -list | less

View 9 Replies View Related

General :: Writing Commands In Terminal Do Nothing

Sep 29, 2010

When i Write commands in terminal it does nothing

View 1 Replies View Related

General :: All Commands Of Terminal With Their Uses And Functoins Require?

Nov 11, 2010

I need all the Commands of linux terminal with their uses and functions..

View 2 Replies View Related

General :: Mail Basic Commands Used In Terminal?

Feb 26, 2010

i donot know basic commands used in terminal as to install,, to remove a software etc

View 8 Replies View Related

General :: Terminal Emulator For GNOME With Display Features Like Mac OS X Terminal?

Mar 5, 2011

Is there a terminal emulator which works well in an Ubuntu desktop and provides the following features which Mac OS X's Terminal application has? Re-wrapping text when the window is resized.A Clear command which clears scrollback (as the shell clear does not) and does not clear the cursor's line (typically containing a prompt).

View 2 Replies View Related

General :: Terminal With Options - Save Common Commands To A Hot Key?

Oct 12, 2010

I am looking for a terminal app that will allow me to save my password and maybe set up some sessions since I often log into multiple machines each day. Also is there something out there that will allow me to save common commands to a hot key?

View 1 Replies View Related

General :: Determine What Gnome Desktop Number A Gnome Terminal Is Connected To?

Apr 29, 2010

In KDE's Konsole, I can do the following from the terminal:

dcop kwin KWinInterface currentDesktop

And it will tell me which desktop my terminal is connected to ( per [URL])

How can I determine what desktop number the current gnome terminal in a gnome session is connected to?

View 1 Replies View Related

General :: Delete Bash Terminal History Upto Certain No. Of Commands?

Jan 12, 2010

i want to delete some say 10 previous commands in bash shell!

View 3 Replies View Related

Ubuntu :: Terminal Commands / Getting Into Usb Pen Drive From The Terminal To Run A Program?

Feb 10, 2011

i started using computer when it was all dos driven so thought i was going to be fine using the terminal in ubuntu the problem i am facing is i can not quite get my head round why is it if i load the terminal. and the first this i type is dir or ls it gives me a list off directories. So why is it if i type cd /pictures i get no such file or directory ? Confused

This also bugging the jebus out off me is i am trying to get into my usb pen drive from the terminal to run a program i have on there.

so i type cd /media
then typed ls
is displayed New Volume <-- This being the name off my pen drive
i have tried every this to get into there but the commands i would use in dos are not playing ball.

Can some one please explain how to get into my usb pen then tell me were i can go read on this as i really can not get my head around this at moment.

View 5 Replies View Related

General :: Kubuntu 9.10 Boots Only A Command Terminal / Specific Commands To Get The Files?

Nov 6, 2009

In a couple days I plan on changing to opensuse from kubuntu. Anyway in the Kpackagemanager I removed the pulseaudio client (and its dependencies) and it messed up my system a bit. I don't really mind but all I need is to get my files from my home folder off my hdd to an external through usb 2.0. When Kubuntu 9.10 boots now all it is is a command terminal basically and I don't know the specific commands to get the files. Or if I need to reinstall something so that it boots up with a graphical looking UI again.

View 14 Replies View Related

Ubuntu :: Daemon That Executes Commands Based On Input Device In Use?

Jan 28, 2011

I have a computer with a trackpad and a touchscreen. I want to run unclutter if I use the touchscreen, and kill it when I use the trackpad or a USB mouse.

The I'm pretty sure the touchscreen is /dev/input/mouse0, and the trackpad is /dev/input/mouse1

I have a general idea of how this should work, but no idea what tools and commands to use to implement it.

View 1 Replies View Related

Ubuntu :: Starts Conky But Also Shows "output To That Terminal So You Can't Do Any Other Commands To That Terminal"

Jan 24, 2010

if you do the command conky in terminal, it starts conky ofcourse, but it also shows output to that terminal so you can't do any other commands to that terminal, Is their an option like you can do with the '&' sign in other cases? If you do the '&' sign with conky it still gives output, also the conky -d command gives output...

View 9 Replies View Related

General :: Server Terminal Keyboard Shortcut "F5" To Run Commands Sudo Apt-get Update

Sep 10, 2010

I was wondering is there a way to bind say "F5" to the command sudo apt-get update so I can press one key to write this into the terminal?

View 1 Replies View Related

General :: Send Commands To Another "pseudo Terminal"?

May 8, 2010

Is there some way to send commands to another "pseudo terminal" or otherwise access one when the desktop environment has frozen to get a program there to save its data? (i.e. after logging in remotely) I tried "echoing" to "/dev/pts/X" (X = number) but that doesn't seem to work. It just displays whatever is echoed there -- it is not accepted as input.

View 3 Replies View Related

General :: How To Map # To ~ In Gnome-terminal

Nov 14, 2010

The ~ key of my laptop is broken, now I am seeking a method to map the # to it? How could I do it?

View 1 Replies View Related

General :: Navigating In Gnome-terminal

Mar 1, 2010

I am using ubuntu 8.04 with GNOME. gnome-terminal version is 2.22.1

(1)Is it possible to use mouse to move cursor to desired position? For instance , I am at end of line & with mouse I can select a portion of line to copy but cannot move the cursor to middle of line without pressing left arrow key for looong time.

(2)I have noticed that if I boot with my USB in non-persistent mode.In the beginning I can use ctrl+arrow to move to previous or next word. After sometime ctrl+right arrow append ;5C and ctrl+left arrow appends ;5D

View 5 Replies View Related

OpenSUSE Multimedia :: Make Gnome-mplayer Recognize Commands Like "{a6}" Inside Srt Files On 11.3 - GNOME 2.30.2

Jan 10, 2011

I use gnome-mplayer 1.0.0 and Totem Movie Player 2.30.2 to view videos Both read subtitles well from srt files. But both are not able to read {a6} command in the srt files.

NOTE:- {a6} command serves the purpose of putting the subtitles on top of the screen, making it possible for subbers to display lyrics/additional footnotes on top, while at the same time, having the dialogues to show in their usual position.

Is there are way to force either of them to read the special commands properly?

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







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