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?
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.
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.
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 ?
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.
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?
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)?
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
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.
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?
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.
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
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"
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?
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?
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
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.
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.
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
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?
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.
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?
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?