::SOLVED:: change bash prompt while in ssh

I'm learning how to use bash bit by bit, but came up with a question I'm not certain how to solve.  I learned some time ago about setting the PS1 variable to customize the shell prompt, and have a nice prompt I like using.  However, it would be nice to have the prompt be flagged if I'm logged in through ssh as opposed to directly on the computer itself.  How could I do this?
One thought I had was to check to see if certain environment variables exist (eg. $SSH_CONNECTION).
Doing if [ $SSH_CONNECTION ]; then ... fi gives an error about too many arguments.  None of the other SSH related variables seem to be just a number value.  Is there a way to test for the existence of a variable in bash?
Last edited by beretta (2009-05-07 20:44:06)

Procyon wrote:What you want is [ -n "$SSH_CONNECTION" ] (variable is set/nonzero length) or the opposite [ -z "$SSH_CONNECTION" ] (variable is not set/zero length)
Thanks-- that got it.  I was missing the quotes, so it was expanding at the spaces rather than interpreting the entire thing as a string.

Similar Messages

  • [Solved] Change bash prompt listing in terminal

    Hi,
    I've always used c-shell for ease in writing shell scripts. I'm interested in moving to bash and just using c-shell for scripting.
    In a .cshrc I can do something like this:
    if [ -o /bin/su ]; then
    set prompt="%{\e]2\;%t - %m:%/^g\e]1\;%m^g\r%}%B:%m%b# "
    else
    set prompt="%{\e]2\;%t - %m:%/^g\e]1\;%m^g\r%}%B:%m%b$ "
    fi
    I edited the if statement for what an if statement should look like in bash. This, however, doesn't work. I'm assuming the word "prompt" is wrong. How do I get this working in bash?
    EDIT: SEEMS LIKE THIS DID IT!
    PS1="\u@\h:\w#
    Last edited by playdafunkimuzic (2009-08-27 18:29:51)

    export PS1="whatever" is the way to set the prompt in bash.  not sure bout that -o are you checking for root? if so, [ $(id -u) -iq 0 ] returns true for root.

  • [solved]Gentoo Bash Prompt not working in X

    Hi
    I'm using this .bashrc from AUR:
    http://aur.archlinux.org/packages.php?ID=18418 
    it is said to be the standard bashrc from gentoo.
    It works with xterm, but I now installed urxvt (256 color) and it doesn't work any more, my prompt ist not colored any more.
    I'm not familiar with bash scripting, perhaps someone could have a look.
    The Problem ist not my .Xdefaults, I tried with an empty one. I also did "source .bashrc".
    Last edited by lustikus (2010-01-11 12:24:28)

    thanks for testing it.
    This is my .bashrc. I did not change anything:
    # /etc/bash/bashrc
    # This file is sourced by all *interactive* bash shells on startup,
    # including some apparently interactive shells such as scp and rcp
    # that can't tolerate any output. So make sure this doesn't display
    # anything or bad things will happen !
    # Test for an interactive shell. There is no need to set anything
    # past this point for scp and rcp, and it's important to refrain from
    # outputting anything in those cases.
    if [[ $- != *i* ]] ; then
    # Shell is non-interactive. Be done now!
    return
    fi
    # Bash won't get SIGWINCH if another process is in the foreground.
    # Enable checkwinsize so that bash will check the terminal size when
    # it regains control. #65623
    # http://cnswww.cns.cwru.edu/~chet/bash/FAQ (E11)
    shopt -s checkwinsize
    # Enable history appending instead of overwriting. #139609
    shopt -s histappend
    # Change the window title of X terminals
    case ${TERM} in
    xterm*|rxvt*|Eterm|aterm|kterm|gnome*|interix)
    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
    screen)
    PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
    esac
    use_color=false
    # Set colorful PS1 only on colorful terminals.
    # dircolors --print-database uses its own built-in database
    # instead of using /etc/DIR_COLORS. Try to use the external file
    # first to take advantage of user additions. Use internal bash
    # globbing instead of external grep binary.
    safe_term=${TERM//[^[:alnum:]]/?} # sanitize TERM
    match_lhs=""
    [[ -f ~/.dir_colors ]] && match_lhs="${match_lhs}$(<~/.dir_colors)"
    [[ -f /etc/DIR_COLORS ]] && match_lhs="${match_lhs}$(</etc/DIR_COLORS)"
    [[ -z ${match_lhs} ]] \
    && type -P dircolors >/dev/null \
    && match_lhs=$(dircolors --print-database)
    [[ $'\n'${match_lhs} == *$'\n'"TERM "${safe_term}* ]] && use_color=true
    if ${use_color} ; then
    # Enable colors for ls, etc. Prefer ~/.dir_colors #64489
    if type -P dircolors >/dev/null ; then
    if [[ -f ~/.dir_colors ]] ; then
    eval $(dircolors -b ~/.dir_colors)
    elif [[ -f /etc/DIR_COLORS ]] ; then
    eval $(dircolors -b /etc/DIR_COLORS)
    fi
    fi
    if [[ ${EUID} == 0 ]] ; then
    PS1='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] '
    else
    PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
    fi
    alias ls='ls --color=auto'
    alias grep='grep --colour=auto'
    else
    if [[ ${EUID} == 0 ]] ; then
    # show root@ when we don't have colors
    PS1='\u@\h \W \$ '
    else
    PS1='\u@\h \w \$ '
    fi
    fi
    # Try to keep environment pollution down, EPA loves us.
    unset use_color safe_term match_lhs
    I also made a screenshot with xterm and urxvt in comparison:

  • [SOLVED]Color Bash Prompt help

    So I have been customizing my arch box and everything has been great except for one problem; the bash color prompt. I am kind of running a color screen where I am using the same shade of green, blues, grays, etc. I would like to continue that with my bash color prompt. However it seems to use some weird numbering system for its colors that I am not familiar with. I know that there is a way to use 256 colors, but I am not sure how.
    So for example I would like to have this shade of green from bash  0;32m' as this #87d75f  in html notation.
    Is there a way for this to be done? Thanks.
    Last edited by NoxSec (2011-07-15 20:52:08)

    The prompt inherits colours from those specified in .Xresources https://wiki.archlinux.org/index.php/Xresources

  • [SOLVED] Color Bash Prompt - Arch Latest News w/o description

    Hi everybody, i'm trying to get the Arch Latest News in the bash profile when terminal starts. I followed the wiki https://wiki.archlinux.org/index.php/Co … s_at_logon and I can show the latest news without problems. What I want to do is to show only the titles and links, without description, that uses much space in the terminal. I tried to figure out what lines I should delete in the /etc/bash.bashrc file but.. you know the sintax is pretty obscure for the most of us (at least for me). I see that there is a description line.. but, really I can't manage this. How can I do this? Thanks in advance.
    Last edited by crixus-ita (2013-01-17 13:42:43)

    Here's one way of doing it:
    echo -e "$(echo $(curl --silent https://www.archlinux.org/feeds/news/ | sed -e '
    :a;N;$!ba;s/\n/ /g') | \
    sed -e 's/&amp;/\&/g
    s/&lt;\|&#60;/</g
    s/&gt;\|&#62;/>/g
    s/<\/a>/£/g
    s/href\=\"/§/g
    s/<title>/\\n\\n\\n :: \\e[01;31m/g; s/<\/title>/\\e[00m ::\\n/g
    s/<link>/ [ \\e[01;36m/g; s/<\/link>/\\e[00m ]/g
    s/<description>/\\n\\n\\e[00;37m/g; s/<\/description>/\\e[00m\\n\\n/g
    s/<p\( [^>]*\)\?>\|<br\s*\/\?>/\n/g
    s/<b\( [^>]*\)\?>\|<strong\( [^>]*\)\?>/\\e[01;30m/g; s/<\/b>\|<\/strong>/\\e[00;37m/g
    s/<i\( [^>]*\)\?>\|<em\( [^>]*\)\?>/\\e[41;37m/g; s/<\/i>\|<\/em>/\\e[00;37m/g
    s/<u\( [^>]*\)\?>/\\e[4;37m/g; s/<\/u>/\\e[00;37m/g
    s/<code\( [^>]*\)\?>/\\e[00m/g; s/<\/code>/\\e[00;37m/g
    s/<a[^§|t]*§\([^\"]*\)\"[^>]*>\([^£]*\)[^£]*£/\\e[01;31m\2\\e[00;37m \\e[01;34m[\\e[00;37m \\e[04m\1\\e[00;37m\\e[01;34m ]\\e[00;37m/g
    s/<li\( [^>]*\)\?>/\n \\e[01;34m*\\e[00;37m /g
    s/<!\[CDATA\[\|\]\]>//g
    s/\|>\s*<//g
    s/ *<[^>]\+> */ /g
    s/[<>£§]//g
    ')\n\n" | grep -E "^( :| \[)";
    The change is the addition of the grep command at the very end.

  • [SOLVED]Bash prompt colors different in console as opposed in terminal

    Hi
    EDIT: I have solved the problem by copying /etc/skel/.bash_profile to my home directory.
    Today i updated the system and the bash prompt is fine in my terminal (KDE Konsole or in Xterm) but not in consoles. For normal user (blue colors) i use this settings in the $HOME/.bashrc file:
    PS1='[\e[0;36m\u\e[0m@\e[0;36m\h\e[0m]─[\e[0;33m\w\e[0m]\n└─\$ '
    For root (red color) /root/.bashrc:
    PS1='[\e[1;31m\u\e[0m@\e[1;31m\h\e[0m]─[\e[0;33m\w\e[0m]\n└─\$ '
    Now, if i login in console as a normal user it doesn't display blue color but red as if i was root user. Like i said in xterm or KDE Konsole it looks just fine. The case is that consoles don't use my .bashrc file and use instead /etc/bash.bashrc file: Here is my /etc/bash.bashrc file:
    # /etc/bash.bashrc
    # If not running interactively, don't do anything
    [[ $- != *i* ]] && return
    #PS1='[\u@\h \W]\$ '
    PS1='[\e[1;31m\u\e[0m@\e[1;31m\h\e[0m]─[\e[0;33m\w\e[0m]\n└─\$ '
    PS2='> '
    PS3='> '
    PS4='+ '
    case ${TERM} in
    xterm*|rxvt*|Eterm|aterm|kterm|gnome*)
    PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
    screen)
    PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
    esac
    [ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
    export EDITOR=/usr/bin/nano
    Here is my today's update:
    [2012-07-06 08:54] upgraded linux-api-headers (3.3.8-1 -> 3.4.4-1)
    [2012-07-06 08:54] warning: /etc/locale.gen installed as /etc/locale.gen.pacnew
    [2012-07-06 08:54] Generating locales...
    [2012-07-06 08:54] en_GB.UTF-8... done
    [2012-07-06 08:54] en_GB.ISO-8859-1... done
    [2012-07-06 08:54] Generation complete.
    [2012-07-06 08:54] upgraded glibc (2.15-12 -> 2.16.0-1)
    [2012-07-06 08:54] upgraded binutils (2.22-7 -> 2.22-8)
    [2012-07-06 08:54] upgraded dbus-core (1.6.0-5 -> 1.6.2-2)
    [2012-07-06 08:54] upgraded dbus (1.6.0-1 -> 1.6.2-1)
    [2012-07-06 08:54] upgraded device-mapper (2.02.96-2 -> 2.02.96-3)
    [2012-07-06 08:54] upgraded gcc-libs (4.7.1-3 -> 4.7.1-4)
    [2012-07-06 08:54] upgraded gcc (4.7.1-3 -> 4.7.1-4)
    [2012-07-06 08:54] upgraded grep (2.12-1 -> 2.13-1)
    [2012-07-06 08:54] upgraded initscripts (2012.06.3-1 -> 2012.06.3-2)
    [2012-07-06 08:54] upgraded libpurple (2.10.4-2 -> 2.10.5-1)
    [2012-07-06 08:54] upgraded libusb-compat (0.1.4-1 -> 0.1.4-2)
    [2012-07-06 08:54] upgraded lvm2 (2.02.96-2 -> 2.02.96-3)
    [2012-07-06 08:54] upgraded mpfr (3.1.0.p10-1 -> 3.1.1-1)
    Is it a problem in yesterday's pam upgrade? Yesterday i have moved /etc/pam.d/login.pacnew to /etc/pam.d/login. I didn't backup the old file. My bad. Weird thing is also this that today my KDE session crashed (for the first time) when i have used dd to burn image on my USB.
    Last edited by Shark (2012-07-06 08:40:31)

    Procyon wrote:What you want is [ -n "$SSH_CONNECTION" ] (variable is set/nonzero length) or the opposite [ -z "$SSH_CONNECTION" ] (variable is not set/zero length)
    Thanks-- that got it.  I was missing the quotes, so it was expanding at the spaces rather than interpreting the entire thing as a string.

  • Permanent Crash related to changing display settings while FCP is open.

    Recently, the display settings (arrangement) on my two monitors started changing by itself while I was working in FCP 6.5. I'm using ancient monitors (Viewsonic MB90 and Mitsubishi Diamond Pro 920. I just don't have the money to upgrade right now). Tis was annoying but I dealt with the problem by creating two different windows layouts. Then things got worse (the only thing I had done was install 8 gigs of additional memory on top of the original 2). FCP started crashing and now I can't even open the application. It doesn't react.
    Apple recently posted a not very informative acknowledgement of the problem with changing display settings while FCP is open, but it doesn't suggest solutions to my problem. It would be helpful to know a) what resolution and refresh rates are best for these old monitors and b)how to open FCP again. Your help is greatly appreciated.
    FCP 6.5
    2x3g quad core xeon
    Thanks,
    Alex

    THIS IS IT!
    Disabling the nVidia deep colors for 3d applications solved the uber-annoying "flicker-screen-settings-and-disrupt/crash-other-programs" issue. I specifically only disabled deep colors for Premiere, not for all 3d applications I use, because none of them have caused the same problem as Premiere.
    This display-screen setting issue probably occurred because I use a Dell u3011 monitor which displays Adobe RGB color gamut, not just sRGB.
    However, now this brings up another question with disabling deep colors (effectively disabling the Adobe RGB use of the Dell monitor):
    QUESTION: If I have CG-rendered frames that seem to be created in sRGB and Adobe RGB (in two different programs), what color space should I be mixing/editing them in?
    I'm somewhat of a novice with the color spectrum/gamut issue. From what I understand, if I edit both CG images in sRGB, I'll be losing color data from the Adobe RGB-created CG image. If I edit both CG images in Adobe RGB, will I create minor banding effects on the sRGB image because it doesn't have the color range that I'm editing in? Perhaps my question is more relevant to AfterEffects compositing of the images rather than simply/only editing them in Premiere.
    The end result is something like an architectural film/ flythrough.
    Thanks,
    -Matt

  • How to set ENV variable using user profile in solaris 10 while using ssh

    Hi,
    Please help me in setting the environment variable using user profile file while using ssh method of connection (Can I use the same ~/.profile file?)
    when i am logging in using the telnet, the environment variable is automattically set, but not when I am using SSH.
    Thanks in advance
    ushas symon

    Please list your .profile and a ls -la of your home directory.
    also list the result of env after your logged through telnet and ssh.
    There should be no difference - it depends mostly on your login shell which startup script it executes. ksh uses .profile, bash: bash_profile then .profile.

  • [Solved] Yaourt + bash problem?

    Hello.
    For couple of weeks I am occasionally seeing a strange problem.
    When I use Yaourt I get some issues that I suspect might be caused by some bash configuration problem.
    Here is the output:
    $ yaourt -Syua
    You are not allowed to launch pacman with sudonPlease enter root password
    Password:
    :: Synchronizing package databases...
    core 37.1K 3.6M/s 00:00:00 [############################################] 100%
    extra 466.7K 467.0K/s 00:00:01 [############################################] 100%
    community 430.5K 824.4K/s 00:00:01 [############################################] 100%
    archlinuxfr is up to date
    aspell-sk: up to date
    bleachbit-svn: up to date
    argyllcms: up to date
    exfalso: up to date
    cairo-ubuntu: up to date
    eclipse-classic: not found on AUR
    doublecmd-svn: (local=3050-1 aur=3047-1)
    caffeine: (ignoring package upgrade)
    firefox4: up to date
    florence: up to date
    freetype2-ubuntu: up to date
    gnome-theme-bamboo-zen: up to date
    gnome-theme-eco: up to date
    gnome-theme-ellanna: up to date
    gnome-theme-exotic: up to date
    gnome-theme-industrial: up to date
    gnome-theme-infinity: up to date
    gnome-theme-orange: up to date
    gnome-theme-step-into-freedom: up to date
    gnome-theme-showtime: up to date
    gnome-theme-tropical: up to date
    gnome-theme-ubuntu-sunrise: up to date
    gnome-theme-wild-shine: up to date
    google-earth: up to date
    google-talkplugin: up to date
    gtk-candido-engine: up to date
    graveman: up to date
    gnome-theme-airlines: up to date
    ld-lsb: up to date
    gwget: up to date
    libjpeg: not found on AUR
    libjpeg6: up to date
    fontconfig-ubuntu: up to date
    murrine-themes-collection: up to date
    packer: (local=20110305-1 aur=20110301-1)
    openssl-compatibility: up to date
    phatch: up to date
    gnome-theme-split: up to date
    libxft-ubuntu: up to date
    pidgin-gtalksharedstatus: up to date
    qgtkstyle-svn: not found on AUR
    rawtherapee-hg: (local=374-1 aur=201-1)
    qshntoolsplit: up to date
    remobo: up to date
    remotedroid-server: up to date
    ttf-ms-fonts: up to date
    humanity-icons: up to date
    ttf-ubuntu-family-fonts: not found on AUR
    virtualbox-ext-oracle: up to date
    util-linux-ng: not found on AUR
    teamviewer: up to date
    xcalib: up to date
    gnome-color-manager: up to date
    gnome-theme-aquadreams: up to date
    xxe: up to date
    ==> Package upgrade only (new release):
    core/mkinitcpio 0.6.8-1 1 -> 2
    extra/krusader 2.3.0beta1-2 2 -> 3
    extra/mplayer 32792-2 2 -> 3
    extra/network-manager-applet 0.8.2-2 2 -> 3
    community/jre 6u24-1 1 -> 2
    community/jdk 6u24-1 1 -> 2
    aur/android-sdk r10-1 1 -> 2
    ==> Software upgrade (new version) :
    core/dhcpcd 5.2.10-1 -> 5.2.11-1
    core/iw 0.9.20-1 -> 0.9.22-1
    core/ncurses 5.7-4 -> 5.8-1
    core/kernel26 2.6.37.1-1 -> 2.6.37.2-1
    core/kernel26-headers 2.6.37.1-1 -> 2.6.37.2-1
    core/libmpc 0.8.2-3 -> 0.9-1
    core/ppl 0.11-1 -> 0.11.2-1
    core/shadow 4.1.4.2-4 -> 4.1.4.3-1
    extra/libgl 7.10.0.git20110215-1 -> 7.10.1-1
    extra/ati-dri 7.10.0.git20110215-1 -> 7.10.1-1
    extra/kdelibs 4.6.0-3 -> 4.6.1-1
    extra/oxygen-icons 4.6.0-1 -> 4.6.1-1
    extra/kdebase-runtime 4.6.0-2 -> 4.6.1-1
    extra/kdebase-workspace 4.6.0-3 -> 4.6.1-1
    extra/kdepimlibs 4.6.0-1 -> 4.6.1-1
    extra/mesa 7.10.0.git20110215-1 -> 7.10.1-1
    extra/mobile-broadband-provider-info 20100510-1 -> 20110218-1
    extra/thunderbird 3.1.7-3 -> 3.1.9-1
    community/wine 1.3.14-1 -> 1.3.15-1
    archlinuxfr/yaourt 0.9.5.1-1 -> 0.9.5.2-1
    aur/desktop-privileges 0.1-2 -> 0.2-2
    aur/xulrunner-system-cairo 1.9.2.13-4 -> 1.9.2.15-1
    ==> New package :
    /usr/bin/yaourt: eval: line 24: syntax error near unexpected token `required'
    /usr/bin/yaourt: eval: line 24: `echo (required by $requiredbypkg)'
    core/util-linux 2.19-4
    ==> Continue upgrade ? [Y/n]
    ==> [V]iew package detail [M]anually select packages
    ==> --------------------------------------------------
    ==> n
    Please note the first problem:
    "You are not allowed to launch pacman with sudonPlease enter root password"
    I checked the line of code and it reads:
    "echo -e $(eval_gettext 'You are not allowed to launch $command with sudo\nPlease enter root password') 1>&2"
    So obviously, the "\n" direction is not respected here. I tried to reproduce this problem in my bash prompt, but there everything seems to work as expected.
    $ echo -e "aaaa\nbbbb"
    aaaa
    bbbb
    After upgrade to the latest Yaourt version (0.9.5.2-1) this is gone and Yaourt only promps like this:
    $ yaourt -S yaourt
    Password:
    But there is second problem:
    /usr/bin/yaourt: eval: line 24: syntax error near unexpected token `required'
    /usr/bin/yaourt: eval: line 24: `echo (required by $requiredbypkg)'
    Which is still persistent and was not solved by version upgrade. I have feeling in the gut, that it might have the same culprit.
    I also have second Archlinux box (notebook) with installation that is very similar to this one. I have cloned it, but removed some packages. Most of the system is the same. This problem is not present there and Yaourt works fine.
    I know that Yaourt is not officially supported and there are other frontends, but I prefer Yaourt.
    Does anyone have idea what might be the problem?
    Thanks.
    Last edited by Raqua (2011-03-10 18:46:04)

    With regard to the sudo problem:  sudo recently underwent an upgrade that featured a rewriting of its plugins, including /etc/sudoers; I noticed the same issues for a couple days.  Add your user to the "wheel" group again, and it should clear things up.

  • Black screen upon wake from sleep when I change power state while in sleep

    Hi,
    I'm having this problem where my MacbookPro won't always wake from sleep.
    OSX is 10.6.3 and fully updated.
    I've done a lot of troubleshooting, and I can now replicate the issue 100%:
    1 - Put the MacbookPro to sleep by closing lid
    2 - Change power source (from plugged-in to battery or vice versa)
    3 - open lid - MacbookPro will wake, but stays at black screen and is unresponsive.
    Only if I change power state while sleeping will this issue show. Anyone else experincing this issue, and anygot got a clue on what to do?
    regards,
    Lasse

    I've seen the same issue after upgrading to 10.6.3. I have a one year old MacBook Pro. I would have the screen be black after coming back from sleep or hibernate (tried both).
    The workaround I found is to close the lid -almost- all the way and then immediately open it back up again, like I am catching the Mac going back to sleep and then changing my mind. For whatever reason, this has been reliably solving my issue for the last couple weeks reliably.
    Only other oddity I noticed is that immediately after upgrading OS X told me that my one year old battery needed to go in for servicing...
    Anyway, now all looks right with the world assuming you don't mind a quick close/open cycle.. Lovely...
    Tim

  • Tired of writing your own bash prompt?

    I realized a few days ago that I got tired of looking up arcane bash escape sequences just to customize my bash prompt. In the open source fashion, I wrote a gui in pyGTK that will automatically make one for you, if you just pick the things you want from a menu. It's not really done yet and there's still stuff that I need to add to it, but I thought i'd see if anyone around here had any comments, or would find it useful.
    Check it out: https://github.com/wisp558/promptool
    It's worth noting that I only implemented 3 of the most common bash variables, but I should fix that soon. (and the bold button is broken)
    Last edited by wisp558 (2011-08-19 09:31:46)

    Doomcide wrote:Nice! Good to see how this project develops . Another suggestion I have, is to add bright color (e.g.: \e[1;30m) support.
    Yeah, I plan to. Other things I'm looking at include a place to select the text color, (It'll use the last color in the prompt), background colors, underlined things and changing the whole textview background (I use a black urxvt, personally). I may even add a thing to save prompts or something. I might add an option to append the PS1 to one's ~/.bashrc, making the gui display the finished prompt rather than the terminal and more! I have plenty of ideas left!
    As a note, the escape you posted is just the bold option I already have. There is a high intensity option in bash, which I will look into, although it does nothing in my terminal. Those are things like '\e[0;90m' and its  friends.
    Thanks for your feedback, guys.

  • How can i change the font while im coding?

    How can i change the font while im coding? I am not talking about the final product and inserting fonts in my documet i am talking about when i am in the progress of coding I want to change the font so it is way more pleaseing to the eye when I am staring at it while coding? please do help and thanks!

    Editing the source is a bit of a pain because you'll have to redo it after every update.  It's better to write yourself a mini-extension that adds a new stylesheet -- that is also very simple to do.  Just follow these instructions: https://github.com/adobe/brackets/wiki/Customize-Your-Code-Font.
    - Peter

  • Can we change the prompt of textfield using personalization

    Hi,
    I want to change the prompt of a textfield using personalization. I changed the prompt using personalization, but still it is showing the old value. Also I changed the rendeered prompt of a field to false and still that filed is coming up in the page. Also I set the default value to null to one of the textfield and that value is coming up with some value when the page is loaded.
    Can I do all above 3 using personalization or should I extend the controller.
    User personalization is false for those fields.
    Thanks,
    HC

    Hi Gyan,
    I did the personalization of the one date field and that worked and it is readonly now. The other field is created by bean by Controller..so I can't do personalization on that. I extended the Controller and added the code.
    OAApplicationModule localOAApplicationModule = paramOAPageContext.getApplicationModule(paramOAWebBean);
    OAMessageDateFieldBean localOAMessageDateFieldBean = (OAMessageDateFieldBean)paramOAWebBean.findIndexedChildRecursive("DplSrcRefDate");
    if (localOAMessageDateFieldBean != null)
    localOAMessageDateFieldBean.setValue(null);
    //localOAMessageDateFieldBean.setPrompt(oapagecontext."Date Placed In Service");
    localOAMessageDateFieldBean.setPrompt("Date Placed In Service");
    Is the setPrompt command correct. I was waiting for the apache bounce to see the effect. If this is not correct command, I can change the command so that I don't have to do the apache bounce twice.
    Thanks,
    HC

  • Error while transferring file :: Error while issuing ssh command.

    Hi All,
    I am having a JSP based website application.
    I am getting the following exception in my logs.
    [ERROR] 05/04/2007 03:43:44 - Error while transferring file :: Error while issuing ssh command.
    java.net.ConnectException: Connection timed out
                at java.net.PlainSocketImpl.socketConnect(Native Method)
                at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
                at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
                at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
                at java.net.Socket.connect(Socket.java:464)
                at java.net.Socket.connect(Socket.java:414)
                at java.net.Socket.<init>(Socket.java:310)
                at java.net.Socket.<init>(Socket.java:125)
                at com.sshtools.j2ssh.net.SocketTransportProvider.<init>(Unknown Source)
                at com.sshtools.j2ssh.net.TransportProviderFactory.connectTransportProvider(Unknown Source)
                at com.sshtools.j2ssh.SshClient.connect(Unknown Source)
                at com.sshtools.j2ssh.SshClient.connect(Unknown Source)
                at com.sshtools.j2ssh.SshClient.connect(Unknown Source)
                at com.novartis.util.DataExporter.transportFile(DataExporter.java:127)
                at com.novartis.util.DataExporter.export(DataExporter.java:101)
                at com.novartis.businessmanagers.SandosSignupManagerPojoImpl.export(SandosSignupManagerPojoImpl.java:103)
                at com.novartis.util.DataExportJob.process(DataExportJob.java:48)
                at com.novartis.util.ExclusiveJob.execute(ExclusiveJob.java:35)
                at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
                at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)Any help would be appreciated.
    Thanks.

    This means that the SSH server you're trying to connect to isn't listening. Is the SSH server running? Are you trying to connect to the right machine?

  • Change the permission while placing the file

    Hi Experts,
    I have a production issue :
    I am placing the .txt file into a SFTP server location from a SFTP Location[NO Transformation in the file]. (Sender and receiver channels are SFTP)
    I am using user- user1(for example) which have the read write access to the particular folder, hence when it places the file it places with 664 permission .(This permission gives only user1 as read/write access , but other user have read only access).
    The requirement :
    The user2 want to deletes the file from the particular folder location , they want to know by any means can PI change the permission while placing the file into that location so that user2 can also have read/write access.
    Can you provide the opinion whether it can be done using SFTP receiver channel or any other option to change the permission of the file.

    As far as i know the permissions are related to the folder and the User not for files
    While creating the access, a particular user authorizations related particular folder, not related to files.
    So this should be done some thing like by giving the read/write access to user2 as well
    Regards

Maybe you are looking for