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
ADVERTISEMENT
Nov 26, 2010
I've been able to write a basic script that opens a terminal a lil messagemy issue, i want it to open its pseudoterminal as soon as i log into GUIthe script:
Code:
#!/bin/bash
if [ $1 = "start" ]
[code]...
View 1 Replies
View Related
Aug 18, 2010
I was trying to connect my android phone just to send some AT commands using Minicom or Seyon. But I was not able to connect it. I have connected my phone using a USB cable.Do I need to connect my phone through the serial cable by using a minicom connector to be able to send the commands to the phone.Also when I launch it says Initializing Modem...thenModem at /dev/ttyS0 is available. If I try to Dial it says Warning related to the Baud rate.But After that I am not able to do anything.
View 7 Replies
View Related
Feb 2, 2011
i am working on some kind of PBX and i have list of telephone numbers inside a file, i have to insert these numbers into the correct command and then telnet to a remote server and execute these commands. i can read the telephone numbers and insert them into the command with no problem, but when i try to insert these commands into the send i face problem. here is the basic code
#!/bin/bash
read msisdn < input
string="ZZZZ:MSISDN=$msisdn;"
[code]....
i can make external loop inside the Bash which read the input file and issue the command and then telnet and execute, but this will make the script connects and disconnects again for each line which cause high load on that server and hardwar problem. i am wondering if there is an option inside the expect interperter which makes the send read directly from a file... somthing like this:
expect "<"
send "input-filename
"
expect "<"
expect eof
View 1 Replies
View Related
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
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
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
May 13, 2011
How or Where Can I learn the terminal commands?
View 11 Replies
View Related
Feb 18, 2011
difference between these terminal commands?
dpkg -l
dpkg -list
dpkg -list | less
View 9 Replies
View Related
Sep 29, 2010
When i Write commands in terminal it does nothing
View 1 Replies
View Related
Nov 11, 2010
I need all the Commands of linux terminal with their uses and functions..
View 2 Replies
View Related
Feb 26, 2010
i donot know basic commands used in terminal as to install,, to remove a software etc
View 8 Replies
View Related
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
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
Mar 20, 2011
I typically use rm to delete files, but they don't end up in my trash folder in case I want to recover them. How do I make that happen and how do I access my trash folder via terminal? Doing me best to work from terminal rather than GUI and this one has me stumped. I am using Mint Julia.
View 2 Replies
View Related
Sep 10, 2010
I open up 2 xterms on my desktop, A(/dev/pts/0) and B(/dev/pts/1).I can write from A to B using redirection e.g. echo "test" > /dev/pts/1How do I run a command from A on B? e.g. "clear"Basically I'm putting the 2 terminals side by side, and using terminal B to display the contents of the current working directory, by running the following in A:export PROMPT_COMMAND="ls -a > /dev/pts/1"but this fills up the screen pretty fast. I was actually looking for a way to clear up the second terminal.
View 6 Replies
View Related
Dec 6, 2010
How to send message via terminal in windows or linux?
View 4 Replies
View Related
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
Jan 12, 2010
i want to delete some say 10 previous commands in bash shell!
View 3 Replies
View Related
Mar 22, 2011
I have two users; user1 and user2. I have a bash script run by user1, that needs to run a command on a screen terminal started by user2.
View 1 Replies
View Related
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
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
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
Jan 9, 2011
Occasionally when I start typing into a text box, it will not enter text until I go to another window or text box and click back in. This seems to happen at random without any pattern or to any specific applications more than others. I can still use alt-tab and similar commands, so I know it's not the hardware. I am running Ubuntu 10.04 Lucid Lynx using a Microsoft Multimedia keyboard and I am running SCIM for Japanese input, but I almost always have it set to English, and it can be set t
View 12 Replies
View Related
Apr 21, 2011
what is short cut key to toggle between pseudo terminals in red hat? how can i create customized short cut keys in red hat?
View 2 Replies
View Related
May 11, 2011
Specifically, I'd love to know what the valid values of:
And, where I can find this information? I've always wondered if it was documented somewhere, or if there was an interface into the kernel to query for it.
View 1 Replies
View Related
Oct 6, 2010
I need to send AT commands (hayes commands) to my LG GW620g (amongst other purposes, for receiving and sending SMS from the shell). Can somebody help me and tell me what I have to do in order to connect a mobile phone (or _this_ mobile phone) as ttyS0 or ttyACM? I guess it has something to do with udev, but I am not sure there. Or is there another way to open a terminal connection to this device?
View 1 Replies
View Related
Sep 9, 2010
I have a server that is triple boot and the server is headless and accessed using ssh. So is there a way to tell grub before hand what os to choose or send commands to grub (of course I get rid of the timeout) to pick a different os other than the default one. Any ideas? I already know this is bad practice to have multiple os's on the same machine to be used as a server, but what about selecting a different kernel at start up.
View 7 Replies
View Related
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
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