[SOLVED]Bash cli input truncated after customizing prompt with colors

Here is my customized prompt (two lines) in ~/.bashrc (colors defined):
PS1="${CYAN}┌─${NC}\u@\h ${LIGHTBLUE}\w${NC}\n${CYAN}└─{${NC}\@${CYAN}}──${LIGHTCYAN}>${NC} "
It looks like this:
┌─ssri@host ~/Projects/cairo-dock
└─{10:26 AM}──>
Now, when I have a long entry (removing multiple packages, ie pacman removal of cairo-dock-bzr & cairo-dock-plugins-bzr), the input entry does not extend to the edge of my konsole window (80x33).  Insteads it stops halfway and continues onto the second line.  Since this prompt takes up two lines, the second line portion of the prompt is now overrunned and the entry is considerably garbled:
┌─ssri@host ~/Projects/cairo-dock
-plugins-bzr ─> pacman -R cairo-dock-bzr cairo-dock-
I'm wondering how I can extend keyboard entries towards 80 columns(?) and allow extended entries to continue onto a third line (rather than the second).
Thanks
Last edited by ssri (2010-06-26 21:03:27)

I didn't have "\]" from before
BEFORE
BLACK='\e[0;30m'
BLUE='\e[0;34m'
GREEN='\e[0;32m'
CYAN='\e[0;36m'
RED='\e[0;31m'
PURPLE='\e[0;35m'
BROWN='\e[0;33m'
LIGHTGRAY='\e[0;37m'
DARKGRAY='\e[1;30m'
LIGHTBLUE='\e[1;34m'
LIGHTGREEN='\e[1;32m'
LIGHTCYAN='\e[1;36m'
LIGHTRED='\e[1;31m'
LIGHTPURPLE='\e[1;35m'
YELLOW='\e[1;33m'
WHITE='\e[1;37m'
NC='\e[0m' # No Color
AFTER
BLACK='\e[0;30m\]'
BLUE='\e[0;34m\]'
GREEN='\e[0;32m\]'
CYAN='\e[0;36m\]'
RED='\e[0;31m\]'
PURPLE='\e[0;35m\]'
BROWN='\e[0;33m\]'
LIGHTGRAY='\e[0;37m\]'
DARKGRAY='\e[1;30m\]'
LIGHTBLUE='\e[1;34m\]'
LIGHTGREEN='\e[1;32m\]'
LIGHTCYAN='\e[1;36m\]'
LIGHTRED='\e[1;31m\]'
LIGHTPURPLE='\e[1;35m\]'
YELLOW='\e[1;33m\]'
WHITE='\e[1;37m\]'
NC='\e[0m\]' # No Color
RESULT = entries are still truncated
Last edited by ssri (2010-06-26 18:18:43)

Similar Messages

  • Offline/Missing Image Sequences in After Effects CS6 with Color Bars

    I am working on a stop motion animation in After Effects CS6.  Each clip has been imported as an image sequence from stills on my hard drive.  When I open up After Effects, all image sequences now have color bars over them, as if they are offline.  Trying to reload them does nothing.  I cannot 'link media' because it isn't just one file; it's an image sequence so there are many of them. 
    I first noticed this when the color bars appeared in my dynamically linked comps inside of Premiere Pro.  Everything played smoothly the first time I opened the project in Premiere CS6, after originating in CS5.5.  Then the second time I opened up Premiere, the color bars appeared on the linked comps.  I hadn't yet opened up my AE project in CS6 yet, so when I did, AE converted the project and I resaved it. 
    Any help related to this issue would be greatly appreciated. 
    Mid-2009 Macbook Pro
    Mac OS X Mountain Lion
    8GB RAM
    Adobe Creative Suite Production Premium CS6 w/Creative Cloud

    Thanks everyone, I think I'm beginning to solve this.
    Rick, thanks for your advice.  I tried this and it worked.  The reason I didn't do this before is that, because it is stop motion, I couldn't remember how many frames I had imported for each sequence.  For instance, if I shot 54 images and only imported 52 into the sequence, I wouldn't remember which 52 images to import...this might still be causing a problem, but I don't know yet.  I think in most cases I imported all the images in a folder, so the image sequences should be fine.
    I am having another problem, however.  Even though the issue seems to be fixed in AE, it doesn't seem to be fixed in Premiere...each image sequence is dynamically linked from AE, but each dynamically linked comp is still being show with color bars as they did in AE...I think that maybe my Premiere project is still linking to the old CS5.5 AE project, and not the new one opened and saved in CS6...

  • [SOLVED] Bash - append input to multiple files after checking

    I have this to append text to multiple files, so far I have this:
    #!/bin/bash
    for file in $(ls *.example);
    do
    echo "Append this to my file." >> ${file};
    done;
    But I don't want to adjust the script each time so I need something more powerfull and interactive:
    What I'd like it to do is: - ask me for the input (text to be appended)
                                      - ask me for wich type of file this action needs to be taken (using wildcard(.suffix))
                                      - before appending, check for duplication (if text is present, do not append)
    any thoughts?
    *edit for layout purpose
    Last edited by plurt (2009-03-26 11:09:02)

    very interesting
    thanks for the great input, i'm learning here.
    funny bug I have so far, look at this testrun
    [18:45:25][plurt@archaism:~/test] :) $ append.sh
    this is a list of files in current directory:
    1.test 2.test 3.test
    text to be appended?:test1
    append to what type of file?:test
    grep: *.: No such file or directory
    [18:45:38][plurt@archaism:~/test] :) $ ls
    *. 1.test 2.test 3.test
    the program created a *.
    [strike]my[/strike] The code so far is this:
    #!/bin/bash
    echo -n 'this is a list of files in current directory:'
    echo -e
    ls
    echo -n 'text to be appended?:'
    read -e textappend
    echo -n 'append to what type of file?:'
    read -e filetype
    for file in *.${FILETYPE}; do
    if grep "${TEXTAPPEND}" "${file}"; then
    continue
    else
    echo "${TEXTAPPEND}" >> "${file}"
    fi
    done;
    Last edited by plurt (2009-03-20 17:57:13)

  • Custom Prompts with manual input for filtering

    Hi,
    In Bex I need a user prompt which can accept only 1 of 3 possible manual input values:
       Flash
       Actual
       blank
    If the input value is Flash, then filter Version = 'ZFL'
    If the input value is Actual, then filter Version =  '#'
    If the input value is blank, then filter Version = 'XYZ'   (goal here is to filter out all values)
    Can this be done via Replacement Path processing, or should it be via CMOD assuming that's possible?
    Thanks in advance!

    Hi ,
    If  Flash ,Actual ,blank are one info  object values
    then create a charecterstic variable with user entry default with Single value then automatically it takes only one value.after this restrict flash with ZFL,version with # & blank withXYZ.
    If  Flash ,Actual ,blank are not one info  object values u will go for customer exit.
    Hope this helps.
    Thanks,
    sai.

  • [SOLVED] Bash: Append file contents to command prompt

    Hi,
    is there a way to append the contents of a file to the command prompt? Say I have defined an alias and I want to change it on the fly. So I'd do
    $ which <my_alias>
    then mark it with the mouse, and paste it to the command line. What I would like to do instead, would be:
    $which <my_alias> > some_temp_file
    $vim some_temp_file #edit the command the way I want it
    $ # somehow get the file contents into the prompt here
    I did try to google it, but to no avail and I know, I could just create a script from some_temp_file but I want the content to appear at the command prompt instead. So is there a way?
    regards,
    mox
    Last edited by Mox (2014-03-07 15:46:09)

    Mox wrote:@progandy: Yes, this might be a step in the right direction. But what do the -i and -v options do? I did not find any documentation in the manpage. And is there a way to expand $COMMAND in the command line before running $COMMAND?
    Why do you want to have the command in a prompt twice? "read -er COMMAND && eval "$COMMAND"" creates a prompt-like environment and then executes the input string. What the options do you can read in the bash-internal help, e.g.:
    $ LC_ALL=C help read
    -e use Readline to obtain the line in an interactive shell
    -i text Use TEXT as the initial text for Readline
    -p prompt output the string PROMPT without a trailing newline before
    attempting to read
    -r do not allow backslashes to escape any characters
    Here is an example:
    [progandy@pamobile ~]$ alias some_test='echo -e Hello WORLD"!"'
    [progandy@pamobile ~]$ command_to_edit="some_test"
    [progandy@pamobile ~]$ read -erp "Edit and execute: " -i "$(command -v $command_to_edit)" COMMAND
    Edit and execute: echo -e Hello WORLD"\t!"
    [progandy@pamobile ~]$ ####### in the line above you edit the command and bring it in the final form with all necessary paramters.
    [progandy@pamobile ~]$ echo -E " *~* Now running: $COMMAND"
    *~* Now running: echo -e Hello WORLD"\t!"
    [progandy@pamobile ~]$ eval "$COMMAND"
    Hello WORLD !
    [progandy@pamobile ~]$
    Last edited by progandy (2014-03-05 05:21:39)

  • [Solved] sshfs connection: Nothing happens after password prompt

    Hey,
    I'm trying to mount a remote folder via ssh.
    User on the server side is different from local user.
    After entering sshfs -C userserver@server:serverfolder clientfolder I get the password promptfor userserver. Then nothing more happens.
    I've read the troubleshooting section of sshfs and , of course, shh connection is working.
    But what is going wrong here?
    Last edited by dbacc (2015-03-08 19:17:40)

    For comparison, here's my output:
    $ sshfs -d -o sshfs_debug -o LOGLEVEG=DEBUG3 service@clusterfrak:/tmp /tmp/test
    SSHFS version 2.5
    FUSE library version: 2.9.3
    nullpath_ok: 0
    nopath: 0
    utime_omit_ok: 0
    executing <ssh> <-x> <-a> <-oClearAllForwardings=yes> <-oLOGLEVEL=DEBUG3> <-2> <service@clusterfrak> <-s> <sftp>
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug2: ssh_connect: needpriv 0
    debug1: Connecting to clusterfrak [199.200.1.140] port 22.
    debug1: Connection established.
    debug1: identity file /home/testing/.ssh/id_rsa type 1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/testing/.ssh/id_rsa-cert type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/testing/.ssh/id_dsa type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/testing/.ssh/id_dsa-cert type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/testing/.ssh/id_ecdsa type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/testing/.ssh/id_ecdsa-cert type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/testing/.ssh/id_ed25519 type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/testing/.ssh/id_ed25519-cert type -1
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_6.7
    debug1: Remote protocol version 2.0, remote software version OpenSSH_6.7
    debug1: match: OpenSSH_6.7 pat OpenSSH* compat 0x04000000
    debug2: fd 3 setting O_NONBLOCK
    debug3: load_hostkeys: loading entries for host "clusterfrak" from file "/home/testing/.ssh/known_hosts"
    debug3: load_hostkeys: found key type ECDSA in file /home/testing/.ssh/known_hosts:3
    debug3: load_hostkeys: loaded 1 keys
    debug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug2: kex_parse_kexinit: [email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
    debug2: kex_parse_kexinit: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],[email protected],[email protected],[email protected],ssh-ed25519,ssh-rsa,ssh-dss
    debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected],arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
    debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected],arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
    debug2: kex_parse_kexinit: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1,[email protected],[email protected],[email protected],[email protected],hmac-md5,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1,[email protected],[email protected],[email protected],[email protected],hmac-md5,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: none,[email protected],zlib
    debug2: kex_parse_kexinit: none,[email protected],zlib
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit: first_kex_follows 0
    debug2: kex_parse_kexinit: reserved 0
    debug2: kex_parse_kexinit: [email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
    debug2: kex_parse_kexinit: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ssh-ed25519
    debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected]
    debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected]
    debug2: kex_parse_kexinit: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
    debug2: kex_parse_kexinit: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
    debug2: kex_parse_kexinit: none,[email protected]
    debug2: kex_parse_kexinit: none,[email protected]
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit: first_kex_follows 0
    debug2: kex_parse_kexinit: reserved 0
    debug2: mac_setup: setup [email protected]
    debug1: kex: server->client aes128-ctr [email protected] none
    debug2: mac_setup: setup [email protected]
    debug1: kex: client->server aes128-ctr [email protected] none
    debug1: sending SSH2_MSG_KEX_ECDH_INIT
    debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
    debug1: Server host key: ECDSA 1b:38:0e:15:39:c6:93:37:12:fb:62:32:c9:ce:cb:b1
    debug3: load_hostkeys: loading entries for host "clusterfrak" from file "/home/testing/.ssh/known_hosts"
    debug3: load_hostkeys: found key type ECDSA in file /home/testing/.ssh/known_hosts:3
    debug3: load_hostkeys: loaded 1 keys
    debug3: load_hostkeys: loading entries for host "199.200.1.140" from file "/home/testing/.ssh/known_hosts"
    debug3: load_hostkeys: found key type ECDSA in file /home/testing/.ssh/known_hosts:2
    debug3: load_hostkeys: loaded 1 keys
    debug1: Host 'clusterfrak' is known and matches the ECDSA host key.
    debug1: Found key in /home/testing/.ssh/known_hosts:3
    debug2: kex_derive_keys
    debug2: set_newkeys: mode 1
    debug1: SSH2_MSG_NEWKEYS sent
    debug1: expecting SSH2_MSG_NEWKEYS
    debug2: set_newkeys: mode 0
    debug1: SSH2_MSG_NEWKEYS received
    debug1: Roaming not allowed by server
    debug1: SSH2_MSG_SERVICE_REQUEST sent
    debug2: service_accept: ssh-userauth
    debug1: SSH2_MSG_SERVICE_ACCEPT received
    debug2: key: /home/testing/.ssh/id_rsa (0x7fbb6e500e10),
    debug2: key: /home/testing/.ssh/id_dsa ((nil)),
    debug2: key: /home/testing/.ssh/id_ecdsa ((nil)),
    debug2: key: /home/testing/.ssh/id_ed25519 ((nil)),
    debug1: Authentications that can continue: publickey,password
    debug3: start over, passed a different list publickey,password
    debug3: preferred publickey,keyboard-interactive,password
    debug3: authmethod_lookup publickey
    debug3: remaining preferred: keyboard-interactive,password
    debug3: authmethod_is_enabled publickey
    debug1: Next authentication method: publickey
    debug1: Offering RSA public key: /home/testing/.ssh/id_rsa
    debug3: send_pubkey_test
    debug2: we sent a publickey packet, wait for reply
    debug1: Authentications that can continue: publickey,password
    debug1: Trying private key: /home/testing/.ssh/id_dsa
    debug3: no such identity: /home/testing/.ssh/id_dsa: No such file or directory
    debug1: Trying private key: /home/testing/.ssh/id_ecdsa
    debug3: no such identity: /home/testing/.ssh/id_ecdsa: No such file or directory
    debug1: Trying private key: /home/testing/.ssh/id_ed25519
    debug3: no such identity: /home/testing/.ssh/id_ed25519: No such file or directory
    debug2: we did not send a packet, disable method
    debug3: authmethod_lookup password
    debug3: remaining preferred: ,password
    debug3: authmethod_is_enabled password
    debug1: Next authentication method: password
    debug2: we sent a password packet, wait for reply
    debug1: Authentication succeeded (password).
    Authenticated to clusterfrak ([199.200.1.140]:22).
    debug2: fd 4 setting O_NONBLOCK
    debug3: fd 5 is O_NONBLOCK
    debug2: fd 6 setting O_NONBLOCK
    debug1: channel 0: new [client-session]
    debug3: ssh_session2_open: channel_new: 0
    debug2: channel 0: send open
    debug1: Requesting [email protected]
    debug1: Entering interactive session.
    debug2: callback start
    debug2: fd 3 setting TCP_NODELAY
    debug3: packet_set_tos: set IP_TOS 0x08
    debug2: client_session2_setup: id 0
    debug1: Sending subsystem: sftp
    debug2: channel 0: request subsystem confirm 1
    debug2: callback done
    debug2: channel 0: open confirm rwindow 0 rmax 32768
    debug2: channel 0: rcvd adjust 2097152
    debug2: channel_input_status_confirm: type 99 id 0
    debug2: subsystem request accepted on channel 0
    Server version: 3
    Extension: [email protected] <1>
    Extension: [email protected] <2>
    Extension: [email protected] <2>
    Extension: [email protected] <1>
    Extension: [email protected] <1>
    unique: 1, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0
    INIT: 7.23
    flags=0x0003f7fb
    max_readahead=0x00020000
    INIT: 7.19
    flags=0x00000011
    max_readahead=0x00020000
    max_write=0x00020000
    max_background=0
    congestion_threshold=0
    unique: 1, success, outsize: 40

  • [SOLVED] Bash: pkill a process after exiting from another one?

    Hi there, I use a program which calls another one, but when I close the first one, the second one is not closed automatically even if not anymore needed, so I have to do it manually.
    I tried a classic:
    firstprogram
    pkill secondprogram
    but, of course, this script closes immediately the secondprogram.
    So, what I supposed to do?
    Thank you in advance!
    Last edited by metre (2011-03-24 11:33:01)

    hbekel wrote:Hard to tell unless you show us some code or at least mention the method used to launch the subprocess. Generally you should wait(3) for your child processes to exit before exiting your parent process, or terminate the child manually when the parent exits, e.g decide yourself when it is "not needed anymore".
    thank you, I did it:
    firstprogram
    wait
    pkill secondprogram
    it works, woah

  • [solved] Bash shell... does not start with user name, but used to...!

    when I start a console, logged in as user, it always used to start with
    user@hostname ~$
    Suddenly, and I cannot recall having done anything that could lead to the issue, konsole will always start as
    bash3.2$                                                     
    even after many reboots, this is still the case.
    whoami shows my user name. I can su to root, and from there to my username, but never directly from bash.
    Occasionally, starting a program like KDE partition manager fails with the error message the program su could not be found. but it is as I said occasional.
    I am quite a newbie to Linux, so I am clueless. Can someone help me..? I tried googling, but I seem to be the only one in the WWW that goofed up to such an extent..! and searches are quite unrevealing.
    I am installing Linux From scratch using arch linux as base system, but I am just following The Book to the letter and don't think that caused the problem.
    Last edited by jaydoc (2009-01-26 09:12:56)

    @weasel8...
    That is THE trouble. And I take back my words, it was during the linux from scratch install that I botched that file...! I was supposed to make a new bashrc file in the LFS directory, but I went wrong on the commands and I think I ended up removing the Arch Linux file...!
    If it is to be found, it should be in the etc directory, right..? I looked there and could not find it. Did I look in the right place...?
    What can I do...?
    Last edited by jaydoc (2009-01-26 07:33:14)

  • [Solved] How To Add Blank Space In Prompt With zsh

    How can I get zsh to show the full directory path I'm in, instead of just my hostname?
    Last edited by shoober420 (2014-07-31 16:53:51)

    You should be able to just add a space in your prompt. Can you post the prompt you have now?
    Have a look at https://wiki.archlinux.org/index.php/Color_Bash_Prompt
    PS1='[\u@\h \W]\$ '
    The prompt goes between the ' ' - the last two characters are $ and a space. Try doing something similar.

  • I cannot download an app from the app store, it keeps loading until it says "You have already purchased this app so it will be downloaded no at  no additional charge", and then it prompt for password and I input it after which nothing happens.

    I cannot download an app from the app store, it keeps loading until it says "You have already purchased this app so it will be downloaded no at  no additional charge", and then it prompt for password and I input it after which nothing happens.
    I know my icloud has record of my installing this app before, but that was the first install that was failed during that time some other apps also keeps loading without respond whey they updated itself, and this app didn't install before I restart the device. But I don't see this app on my device after I restarted the device so it should have been installed on my device. It seems icloud has created some kind of dead loop that makes it not able to get the correct status about this app on my device.
    I have no problem install this app on my other device (iPad) with the same account, but just fail on my iPhone. And it just fine installing other apps...... What happened !!?? @@
    Please help !!! 

    Someone help! I dont know how to do this and please put the words into an easy way to understand because im young...

  • CUE 7.0 Custom Prompts - Limit with Prompt Management

    Hi All,
    I seem to be having a problem when using prompt management to create custom prompts.  I am running CUE 7.0.2, and according to the table here
    http://www.cisco.com/en/US/docs/voice_ip_comm/unity_exp/rel7_0/rel_notes/rel_notes.html#wp221528  I should have 250mins of custom prompts, regardless of each individual prompts length.
    The problem exists however that when my users record the custom prompts, some are > 2mins, and prompt management cuts them off from recording.
    I assume maybe that while you can upload a prompt > 2mins, you can't record one via prompt management?  Has anyone else come across this problem?

    Hi Matthew,
    Recording an Auto-Attendant Greeting or Prompt File
    Two methods are available to create auto-attendant greeting and prompt files:
    • Create a .wav file with the following format: G.711 u-law, 8 kHz, 8 bit, Mono. The file cannot be
    larger than 1 MB (about 2 minutes). After recording the greeting, use the GUI option Voice Mail >
    Prompts > Upload or Cisco Unity Express CLI ccn copy command to copy the file in to the
    Cisco Unity Express system. See the GUI online help (OLH) or the Cisco Unity Express VoiceMail
    and Auto Attendant CLI Administrator Guide for 3.0 and Later Versions for the upload procedure.
    • Use the AvT on the TUI to record the greeting or prompt. Dial the AvT telephone number and select
    the option to record a greeting. When finished recording, save the file. AvT automatically saves the
    file in Cisco Unity Express.
    The AvT prompt filename has the format UserPrompt_DateTime.wav, for example:
    UserPrompt_11152003144055.wav. You may want to use CLI commands or GUI options to rename
    the file with a meaningful name.
    Cisco recommends using the AvT on the TUI to record greetings and prompts because the AvT
    provides higher sound quality compared to .wav files recorded using other methods.
    http://www.cisco.com/en/US/docs/voice_ip_comm/unity_exp/rel7_1/administrator/GUI/ch1over.pdf
    Cheers!
    Rob
    Please support CSC Helps Haiti
    https://supportforums.cisco.com/docs/DOC-8895
    https://supportforums.cisco.com/docs/DOC-8727

  • [SOLVED] Bash changes consolle's colors by itself

    Hi archers,
    I've wrote a little script which ask for the result of a given random moltiplication because I was exercising with $RANDOM and something strange's happend.
    No matter where I am (Tty, Tmux, Urxvt, Xterm...) Bash changes consolle's colors by itself if I do ^c to stop the script, instead of write a reply.
    i.e.'s:
    correct behaviour
    $ 8 * 9 = ?
    $ 72
    $ ls
    file in red file in yellow file in grey...
    Wrong behaviour
    $ 8 *9 = ?
    $ ^c
    $ ls
    file in blue file in green file in white...
    What the heck?
    Bash version is 4.2.39(2)-release.
    The script is the following:
    while :
    do
    min="3"
    max="7"
    fat1="$(($RANDOM%$max+$min))"
    fat2="$(($RANDOM%$max+$min))"
    prod="$(($fat1*$fat2))"
    echo "$fat1 * $fat2 = ?"
    read res
    while [ "$res" != "$prod" ]
    do
    echo "$prod"
    echo "Insert the correct result."
    tavPit
    done
    return 0
    done
    Everything is up to date.
    .bashrc
    [[ $- != *i* ]] && return
    complete -cf sudo
    [ -f /etc/bash_completion ] && ! shopt -oq posix && . /etc/bash_completion
    [ -f ~/.bash/include ] && . ~/.bash/include
    [ -e "$HOME"/.dircolors ] && eval $(dircolors -b "$HOME"/.dircolors)
    include
    #!/bin/bash
    [ -f ~/.bash/alias ] && . ~/.bash/alias
    [ -f ~/.bash/color ] && . ~/.bash/color
    [ -f ~/.bash/export ] && . ~/.bash/export
    [ -f ~/.bash/shopt ] && . ~/.bash/shopt
    [ -f ~/.bash/stty ] && . ~/.bash/stty
    [ -f ~/.bash/set ] && . ~/.bash/set
    color
    nc="\e[0m"
    nbk="\e[0;30m"
    nre="\e[0;31m"
    ngr="\e[0;32m"
    nye="\e[0;33m"
    nbl="\e[0;34m"
    nma="\e[0;35m"
    ncy="\e[0;36m"
    nwh="\e[0;37m"
    bbk="\e[1;30m"
    bre="\e[1;31m"
    bgr="\e[1;32m"
    bye="\e[1;33m"
    bbl="\e[1;34m"
    bma="\e[1;35m"
    bcy="\e[1;36m"
    bwh="\e[1;37m"
    end="\[\e[m\]"
    man() {
    env \
    LESS_TERMCAP_mb=$(printf "\e[0;32m") \
    LESS_TERMCAP_md=$(printf "\e[0;32m") \
    LESS_TERMCAP_me=$(printf "\e[0m") \
    LESS_TERMCAP_se=$(printf "\e[0m") \
    LESS_TERMCAP_so=$(printf "\e[1;31m") \
    LESS_TERMCAP_ue=$(printf "\e[0m") \
    LESS_TERMCAP_us=$(printf "\e[1;33m") \
    man "${@}"
    if [ "$TERM" = "linux" ]; then
    echo -en "\e]P0000000" # Black.
    echo -en "\e]P9ff0000" # Red.
    echo -en "\e]PA00ff00" # Green.
    echo -en "\e]PBffff00" # Yellow.
    echo -en "\e]PC2b4f98" # Blue.
    echo -en "\e]PDff00ff" # Magenta.
    echo -en "\e]PE00ffff" # Cyan.
    echo -en "\e]PFffffff" # White.
    clear
    fi
    .dircolors
    TERM linux
    TERM linux+utf8
    TERM rxvt-unicode
    TERM rxvt-unicode-256color
    TERM screen
    TERM screen-256color
    TERM xterm
    TERM putty
    EIGHTBIT 1
    NORMAL 01;30
    FILE 01;30
    DIR 31
    LINK 36
    FIFO 03;33
    SOCK 03;33
    DOOR 32
    BLK 32
    CHR 32
    ORPHAN 05;33
    EXEC 33
    .tar 31
    .tgz 31
    .arj 31
    .taz 31
    .lzh 31
    .zip 31
    .7z 31
    .z 31
    .Z 31
    .gz 31
    .bz2 31
    .deb 31
    .rpm 31
    .jar 31
    .rar 31
    .xz 31
    .jpg 35
    .jpeg 35
    .gif 35
    .bmp 35
    .pbm 35
    .pgm 35
    .ppm 35
    .tga 35
    .xbm 35
    .xpm 35
    .tif 35
    .tiff 35
    .png 35
    .fli 35
    .gl 35
    .dl 35
    .xcf 35
    .xwd 35
    .pdf 35
    .ogg 34
    .mp3 34
    .wav 34
    .mov 34
    .mpg 34
    .mpeg 34
    .asf 34
    .avi 34
    .mkv 34
    .wmv 34
    .ogm 34
    .C 37
    .H 37
    .c 37
    .h 37
    .cxx 37
    .hxx 37
    .cpp 37
    .hpp 37
    .py 37
    .sh 37
    .vim 37
    .o 37
    .so 37
    .a 37
    .ko 37
    .rc 36
    *rc 36
    Thanks a lot.
    Last edited by rix (2012-11-26 15:38:28)

    Bandit Bowman wrote:My colours are unaffected after running the function. [...]
    Here colors change when I send SIGINT to a running instance of my script; as said before.
    Bandit Bowman wrote:[...] What does $LS_COLORS look like before and after? [...]
    When everything is working right:
    $ echo $LS_COLORS
    $ no=01;30:fi=01;30:di=31:ln=36:pi=03;33:so=03;33:do=32:bd=32:cd=32:or=05;33:ex=33:
    *.tar=31:*.tgz=31:*.arj=31:*.taz=31:*.lzh=31:*.zip=31:*.7z=31:*.z=31:*.Z=31:*.gz=31:
    *.bz2=31:*.deb=31:*.rpm=31:*.jar=31:*.rar=31:*.xz=31:*.jpg=35:*.jpeg=35:*.gif=35:
    *.bmp=35:*.pbm=35:*.pgm=35:*.ppm=35:*.tga=35:*.xbm=35:*.xpm=35:*.tif=35:*.tiff=35:
    *.png=35:*.fli=35:*.gl=35:*.dl=35:*.xcf=35:*.xwd=35:*.pdf=35:*.ogg=34:*.mp3=34:
    *.wav=34:*.mov=34:*.mpg=34:*.mpeg=34:*.asf=34:*.avi=34:*.mkv=34:*.wmv=34:*.ogm=34:
    *.C=37:*.H=37:*.c=37:*.h=37:*.cxx=37:*.hxx=37:*.cpp=37:*.hpp=37:*.py=37:*.sh=37:
    *.vim=37:*.o=37:*.so=37:*.a=37:*.ko=37:*.rc=36:*rc=36:
    When texts change color (the strange behaviour):
    $ echo $LS_COLORS
    $
    Bandit Bowman wrote:[...] Is this the whole script or just a snippet [...]
    Whole.
    Bandit Bowman wrote:[...] because I don't see anything that should modify it. [...]
    That's why I'm asking.
    Bandit Bowman wrote:[...] here's a slightly more straightforward version [...]
    Thanks, I've learnt something.
    Bandit Bowman wrote:[...] although it won't help with the colours.
    Thanks for the reply anyway.
    Bandit Bowman wrote:[...] English: [...]
    Also, many thanks again.
    Edit: solved. "$LS_COLORS" must be set if you want colors.
    Last edited by rix (2012-11-26 15:38:06)

  • Make System.in read input from a command prompt

    How can i make System.in read input from a command prompt which is opened after program
    is started. Please note that program starts without commad promt. Can u plz help?
    sharmila

    System.in DOES read from the command shell that you start the app in.
    What you don't have is a prompt.
    You should know about Java Almanac. There are code samples for simple things like I/O that everyone should know about. There's an example there to help you.
    MOD

  • Input Truncated Problem

    Dear all,
    I have seen the "input truncated to n characters" messages on the forum here but my problem is a little different. When I run a sql from a file locally everything works fine. When I send the file to a customer for them to run on their database they get the following message:
    SQL> @c:\sql\sql_to_run.sql
    Package created.
    Warning: Package Body created with compilation errors.
    Input truncated to 1 characters
    Trigger created.All of the messages on the forum that I have seen relate to this message appearing when a space is at the end of the file. Obviously this is happening in the middle of the file. Also, no matter how many spaces/linefeeds I do or donot put in I cannot duplicate this problem locally. Any suggestions would be helpful.

    . Since you said input truncated is harmless, I assume it cannot have anything to do with the "Warning: Package Body created with compilation errorsIt may be that the Warning causes the input truncated, although it seems unlikely. You could try reproducing your customer's environment by setting the COMPATIBLE parameter to 8.1.7.
    Cheers, APC

  • After being prompted to update to 3.6.15 firfox crashing

    whenI get the Firefox page it goes back to desktop. It was fine until I updated to 3.6.15 after being
    prompted to do so.
    I can't useFirefox at all.

    I would suggest that you close the update for now.
    Do a Restart: With the BlackBerry device POWERED ON, press and hold the upper edge power button about 20-30 seconds, ignore the 3-2-1 timer and hold until the screen goes black and you see the red LED.
    or
    Reboot: With the BlackBerry device POWERED ON, using the side edge volume keys, press and hold down both of the Up and Down volume keys for about 20 seconds, ignoring the initial screenshot message... the screen will go black and reboot.
    Now, return to the Settings > Software Updates and see if it will proceed.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

Maybe you are looking for

  • Data length error in record 86.

    Data length error in record 86. Message no. FV147 Diagnosis An error occurred in the processing of the data to be imported. It is highly probable that this is a data error. Contact your data provider. System Response Any account statement processing

  • Sound Source is Low Can I Use A DI Box?

    Hey all..i have a MOTU 2408 MKII. im running my MPC60(which i just found out has much lower outputs than the later MPC's) anyway its going into my 2408. is there any way i can use to convert the signal output or bump up the singnal from my MPC to the

  • Re: Any certification for OIM?

    Is it still Identity Administration and Analytics Certification(with more focus on Identity Analytics) or have we got a certification just form OIM 11G now? Thanks, SM

  • SOAP:ENV Error: Resource..not found on this server

    I created a simple java class with a method that returns org.w3c.dom.Element type. Created web service for this class and method in Jdeveloper. Deployed this web service in OC4J locally (as explained by other web services examples). Then I created a

  • Does iPlanet 5.1/5.2 supports event change notification ?

    Does iPlanet 5.1/5.2 suports event change notificaiton? I did query against root DSE, but 2.16.840.1.113730.3.4.7 does not show up as supported control. Just enable the change log does not help. What is the proper way to get entry change notificaiton