Ubuntu :: Terminal Title Reset After Command Execution?

Apr 12, 2010

I'm not quite sure what's up with this, but when I change the title of a terminal away from the default (e.g. to represent which project that terminal is to be used for), it changes back to the default (user@host:path), but only on the task bar at the bottom of the screen, listing the open windows.

If I change tabs in the terminal and then change back, it displays again at the bottom of the screen, but as soon as I execute another command (e.g. ls), then it resets again. That's quite annoying, as I like to have a few terminals open, each with a set of tabs pertaining to a particular project. The fact that I can't see from the title on the taskbar which is which means I have to guess/remember/check them all...

View 2 Replies


ADVERTISEMENT

Fedora :: Unable To Reset Using Either The Reset Option In Gnome Shell Or The Command Using A Terminal?

Jun 3, 2011

I'm unable to reset using either the reset option in gnome shell or the command using a terminal. When I select it the shell exits and displays the graphic "exploding" and then it just sits there. Shutdown works fine; just no reset. Any ideas? I've installed from the DVD. I booted the live CD and it resets just fine so I know it's no my hardware

View 1 Replies View Related

Ubuntu :: Wait Command After Execution In Terminal?

Mar 14, 2011

How do I create a command to launch a program and then have the terminal wait for a specified time and then move on to the next command?I'm wanting to create a startup script, and I need program B to wait until program A has finished loading up.

View 2 Replies View Related

Slackware :: Terminal Xterm Title Is Too Dynamic (title Doesn't Change Manually)

Aug 21, 2010

So when I upgraded to Slack64 13.1 on my asus MB homebrewed desktop and Slack 13.1 on my compaq presario a900 laptop, I started having issues with the xterm title (in Terminal--not Konsole) being too dynamic. By "too dynamic" I mean that I can't actually change the title. The dynamic title (from my .bashrc) is basically just pwd. Whenever I try to set the title (via terminal->set title (menu)), I changes it for a split second, and then reverts back to the dynamic title.

This is merely a petty annoyance, so to get around it, I added an xtitle function that I grabed somewhere online (just echos "�33]0;$*�07"). So for nano-ing some file, I'd type:xtitle some_file.txt; nano some_file.txt

That works just fine (kind of annoying to type though). running xtitle alone won't actually change the name either though (I'm pretty sure it's the same command as what terminal does anyway). That is, running: xtitle some_file.txt

changes the title for a split second, and the reverts back to my old pwd.What I really want is to have it dynamically name it "some_file.txt" whenever I use nano, but that appears to be a functionality of zsh (with the preexec() fxn).I'm wondering if anyone else has had this problem, and if you have a fix for it.

View 3 Replies View Related

Ubuntu :: Finding A Terminal Command Or Setting To Reset The Panel?

Sep 3, 2010

I was doing some coding for school and i accidentally hit the button on my laptop to turn off the touchpad and everything started to bog down and slowly crawl or not do anything. So I reset the machine and the panel is completely backwards now. It still works fine but i would like it the original way. Is there a terminal command or setting i need to reset the panel?

View 1 Replies View Related

General :: Bash Command History Update Before Execution Of Command

Jun 7, 2010

Bash's command history is great, especially it is useful when adding the history -a command to the COMMAND_PROMPT.However, I'm wondering if there is a way to log the commands to a file as soon as the Return key is pressed, e.g. before starting the command and not on completion of the command (using the COMMAND_PROMPT option would save the command once the prompt is there again).

I read about auditing programs like snoopy and session recorder like script but I thought they're already too complex for the simple question I have. I guess that deactivating that script logs all the output of the command would lead already in the right direction but isn't there a quicker way to solve that probelm?

View 1 Replies View Related

General :: Remote Command Execution Via SSH And Newgrp Command?

May 9, 2011

Up until now I've been using plink to remotely compile a project I'm working on. But recently the administrator from the remote server updated the distribution and messed up some configurations. My project has a lot of scripts written for tc shell (tcsh), and now the default shell is bash. There is no way to change this. Another problem is that now I need to run newgrp to change my default user group.

So... to work around this problem I've changed my .bashrc to run newgrp and then tcsh. If I do a normal connection using SSH, everything works as expected, but when using plink, or SSH to remotely execute commands, the shell gets stuck on the newgrp command. I think it's because both applications need a return value from newgrp to send the command I need to execute. Remotely running scripts that call a shell also get stuck like newgrp (newgrp also opens a new shell and that's why it gets stuck) my .bashrc is as follows:

Code:

user_grp=`id -g`
if [ $user_grp != 4919 ]; then
newgrp new_group_id
else

[code]....

View 4 Replies View Related

General :: Only Execute 2nd Command On Successufl Execution Of 1st Command?

Aug 19, 2009

I have a script which builds a project and then runs junit tests. However, if the build fails, the junit tests fail with the same error message.Therefore the command which runs the junit tests should only be executed if the build was successful.

View 3 Replies View Related

Ubuntu :: Terminal Pauses Execution Until The User Presses A Key

Sep 9, 2010

I can't seem to find the Unix command that pauses execution until the user presses a key (i.e. the equivalent of "pause" in DOS). Obviously, I need this for programming. I know about all the performance and security issues of system calls, so please don't recommend I used ncurses or some other library instead. I only plan to use it in small programs that I write to test various algorithms and where perfection isn't needed.

View 3 Replies View Related

General :: Set The Title In The Top Of Konsole Terminal?

Apr 8, 2011

I use kde3.3. How could I set the title in the top of konsole terminal. for example, i would like to have the file name printed if I open the file using vi or vim.

View 4 Replies View Related

Server :: Set Terminal-title Dynamically?

Apr 22, 2010

my problem:

- i log into many linux servers (redhat, debian, suse, ubuntu)

- i want to set the terminal window/tab title to something like: time|ip|fqdn|pwd

the partial solution i found:

- declaring a function _setTitle() in /etc/bashrc

- setting PROMPT_COMMAND at all servers in /etc/bashrc, calling _setTitle is /etc/bashrc the proper place?

but i am i need of a command to set the title of the windows/tabs

solution should

- work for tabs and windows

- should use only builtins and avoid nasty cpu-wasting external forks

- work with common clients (windows/putty, linxu/gnome-terminal, linux/konsole)

- solution should base on cli, not on some gui like sshmenu!!!

View 2 Replies View Related

Ubuntu Servers :: Delay Before Command Execution?

Jan 8, 2010

Problem started after installing a new firewall in my network. originally after installing the firewall there would be a 10 second delay after entering a command before it was processed, the command would be executed however there would be an error, i forget what it said, something about not being able to resolve my domain name (and it would give my domain name). i realized this was a problem with my NAT, so i configured DNS forwarding on my firewall so that any attempt to access my server using my domain name from inside the network would point back at my server. after setting up the DNS forwarding i no longer receive the error about my domain name being unreachable, however there is approximately a 30s delay between entering a command and its execution.

the problem is hardly critical i do not see any more serious problems, it is just a pain to do any work when every time i try to do something i have to wait for it to execute.

View 6 Replies View Related

Ubuntu :: Display Title Of Running Program When Using Gnome-terminal?

Feb 12, 2011

Usually I open 5 terminals. And since each of those 5 terminals prints it's tile as: "username@username-laptop: ~" It becomes very hard to see what is what. So, I would like my terminal to always change it's title automatically to the program that I am currently using.
So, if I type "irssi", the title of my gnome-terminal-window, should change to: "irssi" for example.

View 2 Replies View Related

General :: Repeating The Command After One Execution?

Oct 13, 2010

I have seen command like $rm aa dd cc bb ee then something like $ >> zz // it removes zz also Where aa dd cc bb ee zz are the files in my directory. Do not know exactly.

View 6 Replies View Related

Fedora X86/64bit :: Remove The Title Bar Of Gnome Terminal?

Sep 2, 2009

I am using the X server of Fedora 7 for displaying my application.I am getting the display as I need but I dont want the title bar of gnome terminal titlebar to be displayed.I also dont want the maximize,minimize buttons to be displayed.

View 3 Replies View Related

Software :: Escape Command For Remote Ssh Execution?

Jun 14, 2010

I have the following command:

Code:

(systool -c fc_host -v && systool -c fc_remote_ports -v) | grep -E '+Class Device path = "/sys/class/fc_host/host[0-9]+"$|+node_name.*= "0x[0-9a-f]{16}"$|+Class Device path = "/sys/class/fc_remote_ports/rport-[0-9]+:[0-9]+-[0-9]+"' | sed -e 's#.*host([0-9]*).*"#scsi-qla1-adapter-node=#' -e 's#.*rport-([0-9]*):[0-9]*-([0-9]*).*#scsi-qla1-target-2=#' -e '$!N;s#
##' -e 's#=.*node_name.*= "0x#=#g' -e 's#"$#;#g' | sort

and I want it to execute via ssh on a remote machine through a script. Therefor I need to escape it properly. Because of the massive use of regular expressions and commandline options, this is not an easy task. Is there any (online) utility that will escape that for bash use? I suppose pasting the code in vi and doing some search and replaces should do the trick. But for that I would need a list of characters to escape...

View 2 Replies View Related

SUSE / Novell :: IF Command - Script Execution Completed Or Not

Jun 21, 2010

I have a script:
Quote:
# Call mail script to send an email
if [ -f /tmp/report.txt ]; then
/usr/local/scripts/mail.pl
sleep 10
rm /tmp/report.txt
else
exit
fi

What I need to do is, I want to check if file exists, if file exists call other script (mail.pl) and then delete the file (assuming mail.pl script executed). If file not exists just exit out of the script. I'm not sure how I can see that other script execution completed or not before I delete the file even though I put sleep command. And also it seems like its not that good, even though it is working. I wanted to see if we can write in more efficient way.

View 4 Replies View Related

Ubuntu :: Terminal Gives Only List - How To Reset

May 4, 2010

All of a sudden my terminal output changed from the traditional looks to giving only lists(one item per line) as output to "ls" command. Because of this, when there is a large number of files in a directory, I have to scroll up and down to see all files. A link to the screen shot is given below.

">

I tried "reset" and did not make any difference.

View 6 Replies View Related

General :: SSH Command Mode - Flow Of Execution Returns To Bash Shell

Aug 13, 2009

I want to use ssh to execute a command and to wait endlessly to log everything (in file) that comes as a stream of the connected server. But unfortunately, in the manual its written "If command is specified, it is executed on the remote host instead of a login shell"

So what happens is that when I specify my command:
ssh user@server "my_command"

It executed the command and the flow of execution returns to bash shell. So basically my session ends right after the command is executed. This happens only in case I specify command in the command line. If I login into ssh manually and then type "my_command", then the session doesn't end. I want the ssh not to exit, because after "my_command" executes, I want to capture everything in the session.

View 3 Replies View Related

Server :: Used The Command Crontab To Load The Table But Didn't See Any Execution Of The Script?

Jan 27, 2010

I created a file which in I tried both :

Code:
MAILTO=""
* * * * * /var/www/scripts/script.php >> /dev/null

[code]....

View 5 Replies View Related

Ubuntu :: Make Title To The Center Of The Title Bar On Lynx 10.04?

May 2, 2010

after upgrading from Karmic Koala 9.10 to Lucid Lynx 10.04, i notice something different with title bar on every window opened.

for example:

"Google - Mozilla Firefox" is not at the middle of the window title. and on Lynx it's on the left.

View 6 Replies View Related

Ubuntu :: Code In Terminal To Reset The Video Drivers?

Sep 18, 2009

Whats the code in terminal to reset the video drivers? when i try to boot this is what happens.

View 3 Replies View Related

Debian Multimedia :: Gnome-terminal Doesn't Reset Cwd When Opening New Tab

Sep 7, 2015

After a recent Debian 8 update, I notice a new problem with the Gnome-Terminal. When you open a new tab or window, whatever is the cwd of the current tab becomes the cwd of the new tab or window. This always used to reset to ~, which is what I want. Is this a new "feature" and if I can disable it?

View 3 Replies View Related

Ubuntu :: Cannot Move Windows By Dragging Their Title Bars - Cannot See Close "X" Button In The Title Bar

Feb 8, 2010

Everything worked 100% great untill I change color depth to 16 bits.I do not want 24 Bits, I want 16 Bits. I have good reasons. Never had this problem in Gutsy 7.10 ...I deeply regret in upgrading to 9.10 ...

My video card:

Gforce 7950 GX2

Changes to xorg.conf file: Firstly, I saved it at 16 color depth with the sudo nvidia-settings and by clicking on the save to xorg.conf file Button. Rebooted computer....... It worked, saved file, and I got the following bugs:

*Cannot move windows by dragging their title bars.
*Cannot see close "X" Button in the title bar.
*Cannot see Minimize Button in the title bar.
*Cannot see Maximize Button in the title bar.

Went back to 24 bits and problem got resolved. Then i tryed: I did sudo gedit xorg.conf I changed all the 24's with 16's ... Rebooted computer....... It works GOOD... BUT: I got the same bugs from before. I will retype them below

*Cannot move windows by dragging their title bars.
*Cannot see close "X" Button in the title bar.
*Cannot see Minimize Button in the title bar.
*Cannot see Maximize Button in the title bar.

My xorg.conf file:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildd@palmer) Sun Feb 1 20:21:04 UTC 2009
Section "ServerLayout"

[code]....

View 1 Replies View Related

Ubuntu :: Command For "Open A Terminal Window And Run Application In This Terminal ?

Aug 8, 2010

What is the command for "Open a terminal window and run application in this terminal

View 4 Replies View Related

Fedora :: Reset The History Of The Command At?

Dec 12, 2010

How can I reset the history of the command at? The system labels each command starting with 1, is there a ay to reset that back to 1.

View 2 Replies View Related

General :: Make Linux Terminal Transparent With Terminal Command?

May 10, 2010

Is it possible to make terminal (xfce4-terminal) transparent from bash script?

Maybe by enabling compostion?

View 1 Replies View Related

Ubuntu :: Is Command Line Invocation Of Gnome-terminal To Run More Than One Command

Feb 17, 2010

how to pass something more than a one-command startup for gnome-terminal. I will give an example of what I'm trying to do here:

Code:

#! /bin/bash
#
#TODO write this for gnome and xterm

[code]....

This same error occurs if the gnome-terminal line is changed to

Code:

gnome-terminal -e mcTerm

Is there any way to pass more than one command on to gnome-terminal? I have tried various single and double quoting senarios and in a final attempt, I abstracted to an exported function all to no avail. Perhaps even though gnome-term is better at many things than xterm, xterm trumps it in this instance.

View 1 Replies View Related

General :: Append Command Output To File By Giving Command In Terminal?

Jul 3, 2009

I am using openSUSE 10.3.When I install software from tarball then to record time required I send output of date to beg.txt(when installation begins) and end.txt (when installation finishes).How can I append output of date to a file so I don't need two files?

View 4 Replies View Related

Programming :: Command Line Invocation Of Gnome-terminal To Run More Than One Command?

Feb 16, 2010

I am trying to learn how to pass more than a one-command startup for gnome-terminal.

I will give an example of what I'm trying to do here:

Code:
#! /bin/bash
#
#TODO write this for gnome and xterm
USAGE="
${0##*/} [-x] [-g]
code....

However, running with the -g option to invoke gnome-terminal, I get a "There was an error creating the child process for this terminal" error.

This same error occurs if the gnome-terminal line is changed to

Code:
gnome-terminal -e mcTerm

Is there any way to pass more than one command on to gnome-terminal? I have tried various single and double quoting senarios and in a final attempt, I abstracted to an exported function all to no avail. Perhaps even though gnome-term is better at many things than xterm, xterm trumps it in this instance.

View 4 Replies View Related







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