Programming :: Using Subshell In Another Xterm
Sep 8, 2010
I want to run some parts of a script in different terminals. I already found about subshell, () using parenthesis to group commands and using xterm -e (function), problem is I cannot get pid for the function running in the other terminal. And if I use & to set the job in background the terminal goes away as soon as it ends the job. I am using log files, and then send it them using built in mail. After all the parts finish I have to run the "main" script which needs the data from all the pieces. Also other question, i usually use bash, but to load a tool i need csh, the tool is not mine so i can not change the csh usage. There is anyway of passing bash scripts/commands at the moment of changing/invoking to csh shell in the same console?
View 14 Replies
ADVERTISEMENT
Mar 17, 2010
I am stuck at a issue in shell scripting. I had tried all the possible ways, yet unable to reach a solutions. I am working on a application, which runs on C shell. For this I had created a installation script, which installs my application in the system, it is working fine. Now, the problematic part is that I had set an alias in ".cshrc" file, which invokes my application when any user types it. But for an alias to take effect, I need to re-login into the system, because I have to read ".cshrc" file again, in order to take effect of my alias. However I can use "source ~/.cshrc" file after my installation, so that my aliasing works without logging back again. But Requirement is that, just after installing the application, alias should be available to user, without logging back again and without issuing any extra command.
I had tried one other way is that, I had created a symbolic link in ~/bin directory, which points to my application to be run, but even that require, to issue rehash command in order to modify internal command hash table. So, my overall problem is that changing alias in subshell should be reflected to parent shell,without running any other command (all commands should be run in installation script only). Or, in other way how to rehash parent shell from subshell. The ultimate requirement is that,the command that will run my application, should be available just after executing the installation script, either by aliasing or by rehashing, or by any other means.
View 9 Replies
View Related
Jun 13, 2011
Start xpdf or gv. Click an xterm to be active and slide it over xpdf/gv. Vertical lines from xpdf/gv under the xterm stick to the xterm window above and make it unreadable.
The problem does NOT show with KDE default settings with display effects on but does show in fvwm, xfce etc, and in KDE without effects.
On a system with a Sandy Bridge integrated graphics (i5-2400) the problem went away by downgrading to xf86-video-intel-2.13.0. But it was not enough for another system with 945G which needed downgrading to xf86-video-intel-2.12.0.
View 3 Replies
View Related
May 2, 2011
i have fluxbox and i need to know how to copy things in xterm and paste them outside of xterm.
View 2 Replies
View Related
Mar 29, 2011
I have this simple code written in python:
Code:
import os
os.system("xterm -e 'ls /usr/lib'")
Is there anyway I can hide the xterm window that is opening ?
View 7 Replies
View Related
Aug 2, 2010
I am developing a application. In this I fork() 3 childs(lets say child1 , child2, child3) . The parent is now waiting for some input from keyboard.Child3 is continously getting data from child1 and child2 using pipe which it then will print using printf.Now as the parent is waiting for input from user through keyboard while child3 is continously printing the data. I want to do it in different terminals.Can you please guide me how to proceed ahead so that on one terminal , the parent waits for input fromser while on other terminal child3 prints data.
View 1 Replies
View Related
Aug 30, 2010
I'm putting together a small bash script which uses diff in a sub shell.
RESULT=$(diff file1 file2)
This is the first time I've tried to return multiline output from a subshell - how can I get this to display as multiple lines instead of one?
View 4 Replies
View Related
Apr 29, 2011
Is there any way to use "export" inside a bash script that will affect the variable in the parent process (i.e. the terminal where the script was run)?
View 5 Replies
View Related
Sep 24, 2010
I was reviewing some scripts written by a person that does not work with us anymore and I found a chunk of code I'd like to know more about.
Code:
mycli <<! >> /var/myprogram.log
command_1
[code]...
View 2 Replies
View Related
Aug 20, 2010
I've just installed xterm, ant trying to run it from my windows machine using ssh. I have X11Forwarding yes on /etc/ssh/sshd_config when I use, MobaXterm, np, I can use xterm after I log ssh -X xxx
but when I use Cygwin, and do ssh -X xxx, and then xterm, I have: xterm XT error : Can't open display: xterm: Display is not set
View 3 Replies
View Related
Jul 3, 2009
I have a xterm which can have 256 colors. How can I configure the prompt colors and ls output colors to take advantages of the 256 color values?
View 4 Replies
View Related
Oct 15, 2009
starting apps with xterm "-e" seems to change control chars. I want this to not happen, but I have no idea how to stop it. for example:
xterm -e ssh localhost gdb
ctrl-x ctrl-a
I see see the character sequence ^X^A apear in the gdb session. However gdb should interpret those characters and go into tui mode. It doesn't. If I instead run each thing in succession (without -e)
xterm
ssh localhost
gdb
ctrl-x ctrl-a
it works as it should. The same thing happens to konsole so it's not just xterm. Can you help me understand what's happening and how to fix? I need to use "-e" method.
View 2 Replies
View Related
May 14, 2010
I am beginner for linux. I wanted to ask something about xterm.
1. what is xterm?
2. what is the use of xterm and how can we use it.
View 2 Replies
View Related
Apr 28, 2011
I have a normal computer installed (F14, 32 bits) with a sound card correctly installed. In a normal configuration into runlevel 5, I can play sound and the sound card is visible from the gnome-volume-control window.
I should modify the computer running a naked X server (without window manager and other stuff) and two applications (an xterm and a special application managing sounds). The last application is a text based application and could run on a text console. I have the X server running because I display picture sent from another computer. Currently the computer boots on runlevel 3 and logs in automatically. If I start manually my special application, it runs fine. I create a .xinitrc script with the xterm command and I change the .bashrc calling xinit. Each application runs well independently. My problem is when I try running my special sound application from the xterm window. I have no sound. If a run the gnome-volume-control command, the program shows that no sound card is available.
I suppose the X server removes the original sound configuration of the text mode during its initialization and could not initialize correctly after that the sound card.
how it is possible to initialize the sound card manually into the X server? Do I need running some gnome command before I can call my application?
View 3 Replies
View Related
May 14, 2011
I am running Fedora 14 and have run into a new problem. If I do either "su -" and enter password, or, "sudo su -" the terminal stops. I put a set -x in roots .bashrc and nothing. Login from a vt works and loging in as root from gdm produces nothing.
View 6 Replies
View Related
Mar 25, 2010
I use Putty from my machine (named host1) to ssh into an OpenSUSE box (named box1) and would like to have a gui to use. I am trying to issue xterm and am getting the following error:
xterm Xt error: Can't open display:
xterm: DISPLAY is not set
View 5 Replies
View Related
Nov 10, 2010
I'm using Lucid 10.04 and usually ssh to many unix server. I have created aliases with server name, that executes xterm command as below.
I'm getting frustrated by inability to copy and paste using keyboard shortcuts, always have to use middle button. Is there any alternative out there?
View 5 Replies
View Related
May 17, 2011
I recently upgraded from xubuntu 9.04 to 11.04, and it seems xterm is either incorrectly configured for the new desktop or not working right. After a bit of typing, xterm stops refreshing, and only the first few chars or words are shown until I manually refresh xterm (then, whatever I'd written shows up correctly).
Steps to reproduce
1. Open xterm, basic command prompt shows up
2. Type "hello, this is a test", xterm only shows "hello, th"
3. Press 'ctrl-l' or click outside the xterm window, xterm updates with full "hello, this is a test"
Already tried dpkg-reconfigure with no success.
Attached is the output from "appres XTerm" and "infocmp"
View 4 Replies
View Related
Jul 26, 2010
I had this error when installing and running a vncserver before, which I have now removed. However, the xterm's seem to remain in the system and are regenerating themselves. Should the pid IDs stay the same each time I run this?
Code:
[root nxserver]# pidof xterm
15034 15033 15032 15031 15030 15029 15028 15027 15026
[root nxserver]# pidof xterm
15044 15043 15042 15041 15040 15039 15038 15037 15036
[Code].....
View 10 Replies
View Related
Jul 28, 2010
Is there a command to find out on what xterm I am (gnome, kdm, etc)? I currently have Ubuntu 10.04 LTS.
View 2 Replies
View Related
Dec 30, 2009
The usual operations in starting the xterm app don't seem to apply in Fedora 12. I usually prefer to put my own title and other attributes when starting an xterm. But the operation: xterm -T 'Some Title' does not do anything. Instead, the current directory is always displayed in the title bar of the window (on kde). Where is the resource file to disable this default behavior?
View 6 Replies
View Related
Feb 21, 2011
On FC14, launching xterm gives log:[b16394@udp158975uds ~]$ xterm Warning: Cannot convert string "nil2" to type FontStructxterm: cannot load font -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1
View 2 Replies
View Related
Jan 9, 2011
on OpenSuse 11.3 installed first KDE Desktop but my desktop Pentium 4 2.2Ghz is really slow... with XFCE work perfectly but XTerm is very poor. Cut and Paste text selection don't wok, like Mouse selection and font.
How improve features of XTerm XFCE?
View 8 Replies
View Related
May 4, 2010
Is there any config files for xterm for default settings? For example, on my system, xterm start with black text on white background, and I want it the other way around. I can do it by starting it with:
xterm -bg black -fg white.
I want to set in a config file that if I run it without arguments, it will start with these options.
View 1 Replies
View Related
May 18, 2011
Something weird sometimes happens on my Debian system. Typically at the prompt line I can use combo like alt-d to delete a word, alt-f to go to the next word, etc. But quite regularly something happens in my xterm that makes alt-d and alt-f not work anymore: suddenly they print 'ä' (alt-d) and 'æ' (alt-f).
Note that this happens in a terminal that was acting like I wanted to at first. But then somehow must send a code or something that changes the behavior of the terminal. It happens in xterm because that's where I always work. If I go to a console by doing ctrl+alt+f1 then by default alt-d does what I want (delete word) and so does alt-f. Maybe that I could screw that one too by doing some bad manipulation: I just don't know because I don't work in text mode.
Also note that if I spawn an xterm from the "broken" xterm, then the new xterm work as I expect. What is going on? What am I turning on that was off previously? My .Xresources says that and, once again, when I open an xterm it behaves as I expect it, it's only later on that "something" makes that it goes back to broken "I-print-characters-with-diacritics-and-other-nonsense" mode:
$ more .Xresources
XTerm.vt100.eightBitInput: false
XTerm*eightBitInput: False
View 2 Replies
View Related
Aug 3, 2010
When I press Control-x Control-s in an open aterm or xterm emulator, it freezes and I have to kill the process in order to exit/close the window.
View 2 Replies
View Related
Apr 22, 2011
running Xubuntu 10.04 here. After installing and removing some packages in package manager I'm finding after reboot I cannot logon to the computer. When the correct password is entered the screen goes to black briefly then returns to the logon screen. It appears I can only logon to an xterm session. how to proceed next?
View 1 Replies
View Related
Oct 18, 2010
The following line is in the /etc/bashrc file. I was trying to decipher it but no google results explain it in detail.PROMPT_COMMAND='echo -ne 33]0;${USER}${HOSTNAME%%.*}:${PWD/#$HOME/~}07"'I understand that 33 is the ASCII character for ESC but not sure what ]0 does or anything after the HOSTNAME variable.
View 1 Replies
View Related
Feb 19, 2011
when I start my redhat 4, there are always two xterm prompts. i just want to see a clean desktop when I start up. I checked my rc.local and .cshrc file. there is no clue on it. remove these two xterm?
View 9 Replies
View Related
Jul 7, 2009
I've newly installed Lenny and I find that xterm doesn't have tabs or pretty colours. Vim is also colourless. Is this a conscious effort by Debian to strip back the install to it's most utilitarian? Or am I using the wrong versions of each app?
View 3 Replies
View Related