General :: Socat And Rich Terminals - No Job Control In This Shell

Mar 24, 2010

socat - exec:'bash -li',pty,stderr,ctty -> bash: no job control in this shell

What options should I use to get fully fledged shell as I get with ssh/sshd? I want to be able to connect the shell to everything socat can handle (SOCKS 5, UDP, OpenSSL), but also to have a nice shell which correctly interprets all keys, various Ctrl+C/Ctrl+Z, tab completion, up/down keys (with remote history).

- Found "setsid" socat option. It fixes "no job control". Now trying to fix Ctrl+D.
- socat file:`tty`,raw,echo=0 exec:'bash -li', pty, stderr, setsid, sigint, sane. Not it handles Ctrl+D/Ctrl+Z/Ctrl+C well, I can start Vim inside it, remote history is OK.

View 1 Replies


ADVERTISEMENT

General :: Getting HTML Source Or Rich Text From The X Clipboard

May 22, 2010

How can rich text or HTML source code be obtained from the X clipboard? For example, if you copy some text from a web browser and paste it into kompozer, it pastes as HTML, with links etc. preserved. However, xclip -o for the same selection just outputs plain text. I'd like to pull the HTML out and into a text editor.

View 2 Replies View Related

General :: Feature-rich Disk-based Personal Backup Program For?

Sep 4, 2011

Could you suggest feature-rich disk-based personal backup program for Linux (and I've seen a few)?

I want to do nightly backups of the whole system and be able to rollback to any of last 7 days. And, it must be incremental backups. What tool should I use? The tutorials I've read about rsync tell only how to store latest incremental backup and I need last 7.

View 3 Replies View Related

General :: Bourne Shell Input From File Using - Then Return Control To User?

May 5, 2011

I have a program that I run from the terminal that requires manual input (it's matlab in mex debugging mode, matlab -Dgdb, which starts the GNU C debugger with its own custom settings).

Every time I run this program I always type in the same few commands in the program's interactive shell before I actually start working (for example: run -nojvm; stop at mexFunction; continue). I want to avoid typing these commands and I thought I could do this with shell scripting, saving the commands in the mycommands file, then running: myprogram < mycommands

The problem is that this runs all the commands and then exits the program. I want it to run the commands and return control to me so I can run my commands. Is there a way to tell the shell to use a file or a string as the input to a program then immediately return control to the user without the exiting the program?

View 3 Replies View Related

Fedora :: Is Konsole Most Feature Rich Terminal?

Jun 16, 2011

I've been looking for a alternative terminal to work in while using F15. I've done some Googleing and came across Konsole as being the most feature rich terminal. I'd like a terminal that provides a lot of features so I could possibly increase my efficiency. If something is KDE like Konsole does that mean I have to install the whole KDE environment? If so is there any Fedora terminal alternatives?

View 7 Replies View Related

Programming :: Control Execution Of Programs In A Shell Script?

Apr 27, 2010

Do you know how to write a shell script that executes say 4 instances of the same program in different directories at the same time, and once ONE instance completes it executes a new instance of that program in a new directoryd so on, until 100 instances have been executed, each in their own directory

View 5 Replies View Related

Networking :: Relay UDP Broadcast Using Netcat/Socat?

May 7, 2010

Here is my problems :I have two networks :1. LAN (10.1.x.x subnet 255.255.0.0), and2. my internet public (IP 202.xx.xxx.xxxx subnet 255.255.255.240)I have an application in my LAN PC (10.1.2.240) which broadcast udp packet to its client. The client in my LAN can receive the udp packet, no problem.My question is how netcat/socat can RELAY the udp broadcast packet to one of my IP public address so the message can be received by other client from internet ?

View 5 Replies View Related

Ubuntu Servers :: Disabled Press CONTROL-X To Restart Shell

Apr 30, 2010

I'm setting up an Ubuntu server and I keep getting strange problems with my editor.I'm not sure if this is because my keyboard configuration is wrong or I screwed up the installation but regardless it's quite frustrating.

When using the movement keys (arrows and numpad) I get "[" brackets and "C"s, if I hold down or push down on the key hard a list of errors and text comes up, usually involving something that says something like:"Mount disabled" or "____ disabled press CONTROL-X to restart the shell"Similair problems are also found in vi (when in insert mode).I have been plagued with text editor problems and have need several reboots just to get out of a file, often because it just flat out stopped responding to keyboard commands.

View 1 Replies View Related

Networking :: Create Socat Connection -> Parse -> Output?

Nov 2, 2010

trying to create something that will periodically send messages to a serial device using socat, take the response from the device and format it, then take the formated data and send it out UDP to a specific IP/Port.I tried to do something along the lines ofsocat <readline> <serial device> | parse script/program | socat -u <readline> <UDP:IP:Port> but didn't have any success.socat READLINE,history=$HOME/.cmd_history /dev/ttyS1,raw,echo=0,crnl | format.sh | socat -u READLINE,history=$HOME/.cmd_history UDP:IP:Port

View 2 Replies View Related

Programming :: C++ - LibSerial With Socat Virtual Serial Port?

Oct 17, 2010

I'm trying to use a C++ program to communicate through a serial port on Ubuntu 10.04. I've installed LibSerial and for now I'm using virtual serial ports using socat. I'm getting an error on compiling (found below). But step by step, first I start the virtual serial ports:

Code:
(MYNAME@MYCOMPUTER):~$ socat -d -d PTY: PTY:
2010/10/17 22:04:18 socat[18575] N PTY is /dev/pts/2

[code]....

View 4 Replies View Related

Programming :: Can Expect Return Control Of A Spawned Process To A Shell Script

Nov 19, 2009

Is it possible to have an Expect script spawn an SSH session, log in, then go into interactive mode and give control of the SSH session to a Bash script? Here's a simplified example of the script so far:

Code:
#!/bin/bash
expect -c "

[code]....

View 4 Replies View Related

Networking :: Socat - Sending Binary Data From Client To Server

Apr 15, 2010

I am trying to redirect connection to port 8980 to execute a telnet command to a local machine
by issuing the following command :
In Server 1 :
socat TCP-LISTEN:8980,fork EXEC:/myscript,reuseaddr

My script contains
#!/bin/bash
telnet 192.168.20.12 //local Server 2

I am sending Binary data from the client to Server 2 via Server 1. So it happens that I have some characters in Hex translated to special characters in ASCII like open brackets or Commas etc.. and that closed the socket between the two machines.

View 2 Replies View Related

General :: Keep A Layout Of Terminals?

Mar 27, 2011

Is there a way to "save" a layout of terminals on Ubuntu?Let's say I have 4 Terminals on a workspace that I'd like to save/restore at will, how could I do this?UPDATE:create gnome-terminal desktop entryedit the preferences and under "Title and Command" be sure to set "Keep initial title" for "When terminal commands set their own titles"use wmctrl (available on universe repo) to control windowUsing the above procedure, one can create as many desktop profiles for gnome terminals and control them by "title" using wmtrl -R $title_here.The profiles are kept under ~/.gconf/apps/gnome-terminal/profiles.

View 2 Replies View Related

General :: Vim Copy-paste Across Terminals?

Jan 19, 2011

The usual vim yank and paste works only in the same window (but does work across files and close/save commands). Is it possible to make it work across terminals (yank from window in one terminal and paste in another) and if so, how?

View 1 Replies View Related

General :: Get 2+ Terminals In BASH Script?

Jan 19, 2010

I am making a bash script. I have captured user input like so. code...

But it does not work. Airodump-ng "takes over" and the script does not continue.

How do I make it so that I can make a new Terminal, or allow more commands to take place on the current one, allow the output from airodump-ng to be shown, and keep the caught user input?

I'm using Ubuntu 9.10, GNOME and would like it so that anyone with a GUI Terminal, Konsole or whatever can execute the script successfully.

I'm confused...I looked up on Google and couldn't find anything! Just "Beginners guide to Bash Scripting" and "How to BASH script" but nothing relevant that answer my question!

View 13 Replies View Related

General :: Can't Close Multiple Terminals?

Sep 3, 2010

I just started using Fedora Linux Console. I know how to open multiple consoles, but i don't know how to close them.

View 5 Replies View Related

General :: Ubuntu - Spawn Multiple Ssh Terminals?

Nov 25, 2010

when i am logged into my server via SSH how can i spawn many ssh terminals? is there a xterm command for this?

View 6 Replies View Related

General :: Auto Start Several Terminals On Linux

Apr 23, 2011

Every time I reboot my linux machine I have to set up 5 or 6 terminals and Im trying to find a way to do this automatically. Bind a script to a shortcut or on startup that starts several terminals (extra point if theyre tabbed) and have each terminal ssh to different servers.

View 3 Replies View Related

General :: Split Output Of A Command To Two Terminals?

Jun 27, 2011

How can I split an output of a command to two terminals? one will get stdout and the other will get stderr. The best I could do is:
On first terminal code...

This works ok but it prints the errors over and over again every time, is there any better way to redirect the errors to another terminal?

View 2 Replies View Related

General :: Open Multiple Terminals In Run Level 3?

Dec 8, 2010

I am using red hat Linux 4 I have two question.

Normally in GUI interface i open multiple terminal at a time like one for log file and one for configuring any file etc etc.
The problem is normally I do work on run level 3 but in that way how can i open multiple terminal at at time ? Is there any way...

2- When I use the command

Code:
# tail -f /var/log/messages
in GUI i normally close the windows after viewing the log file messages.Is there any hot key by which I can again see the prompt example [root@localhost ~}# to write the command instead of closing the terminal windows ?

View 6 Replies View Related

General :: What Is Short Cut Key To Toggle Between Pseudo Terminals In Red Hat?

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

General :: Command To Keep Track All The Previously Run Applications From All Terminals?

Apr 13, 2010

Is there a way or command to keep track all the previously run applications from all terminals that are connected to your linux machine? Something that will display the name of the application, start time, and end time of its execution?

View 3 Replies View Related

OpenSUSE Install :: After Update Can't Get To X :"no Job Control In This Shell"

Jan 21, 2011

After an update today, my kernel got upgraded to kernel-2.6.34.8-6-default. With this update, my old initrd-2.6.34.7-0.7-default got removed and corresponding grub menu options also got removed. Now after reboot,I am dropped to a shell with the last message being "no job control in this shell". I cannot startx or change to init 5. In fact, the 'boot' partition is not mounted.Even the root partition ( LVM volume ) is not mounted. I guess there was some problem in the initrd creation. I do not know the reason.An earlier post with this title seems to think problem in fstab.But my fstab was not touched by the update. How to get back to normal desktop?

View 2 Replies View Related

General :: $HOME/.bashrc Disabled When User Shell Is 'rbash' (restricted Shell)?

Jun 15, 2011

MACHINE: HP Proliant DL260G5OS: SLES 11 SP1kernel: Linux xserver 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LinuxIt is used as remote xserver in a LAN.I have configured /usr/lib/restricted/bin/.rbashrc with some environment variables but when the users logon in the system finally is executed $HOME/.bashrc and some environment vars are overwritten.

View 2 Replies View Related

General :: Write A Shell Script Instead Of Shell Function?

Apr 27, 2011

I would like know when it is necessary or advisable to write a shell script instead of shell function ?

View 3 Replies View Related

General :: Open A New Shell From A Shell And Switch Between Them?

Jan 18, 2011

I am wondering if I can open a shell or new terminal thing from within the terminal in a unix/linux enviroment. Particularly a commandline only one where there is no GUI. Is this doable? how do I do it?

View 3 Replies View Related

General :: Random "No Space On Device Messages" On All Open Terminals And In Logs?

Feb 14, 2010

Occasionally i get a "No space on device" message on all open terminals and in logs.How do i make it go away.

View 9 Replies View Related

Fedora :: Lost Volume Control / Internet And Battery Indicator From Control Panel On F11

Jul 15, 2009

I feel little silly asking this, I accidently removed from my gnome panel my internet connection, volume control and battery indicator on F11. how can I add this back. It does not show up in the add to panel menu and the applications do not give you back the default feel.

View 1 Replies View Related

Ubuntu :: Control-c - Control-v - Copy And Paste Functions - Stopped Working

Jan 19, 2011

I don't know how this happened, but my keyboard copy and paste functions have stopped working. Oddly enough, I discovered that I can only copy and paste by using the third mouse button. Pressing down on the scroll wheel after highlighting text copies the text, pressing it again pastes it Ican still use the Edit-copy and Edit-paste menu functions.

I'm sure it has something to do with all the tinkering I have been doing with my desktop. I have been experimenting with CompizConfig and Cairo dock, changing my themes and things of this nature.

Ububtu 10.04.1
kernel 2.6.32-27 generic

View 7 Replies View Related

Hardware :: Control Cpu Fan Speed - No Fan Control With BIOS - Acpi - Lm-sensors

Dec 31, 2010

I cannot get any fan information from 'lm-sensors' or 'sensors', I tried to run 'pwmconfig' and got this:

Code:

Code:

But I have no tools to control the fan speed from 'acpi'. in particular '/proc/acpi/fan' is an empty directory.

There are no fan info/controls in BIOS either.

I believe the fans do not work as fast as they should and I am trying to find a way to fix this before the cpu cores are melted down from overheating.

Laptop information: HP Pavilion dv2500t

Code:

View 14 Replies View Related







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