04-02-2007
no, doesnt work for me ...
I get something like this:
migserv2:/appl/users/migesr> bash
bash-2.05b$
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I know this is very easy. I just am having a problem determining how to do it.
I want to have a 2-line command prompt when you hit return. I have no problem creating or exporting a PS1, but can't make into 2 lines.
hostname-user:/path/to/dir
#
I really should know this, but my brain... (7 Replies)
Discussion started by: Kelam_Magnus
7 Replies
2. AIX
Hlo sir
My system file / system file is full and i am unable to enter any command such as ls or to start my server RS6000 The network is blocked and the users are log off. (0 Replies)
Discussion started by: sobnc
0 Replies
3. Shell Programming and Scripting
Hi all,
Can you tell me how to change the prompt color (only the path part) when I chnange directory with "cd"?
I use the sequence below in ".bashrc" (Solaris 8) to change my prompt colors and I'd like to modify it to change the path color when I cange directory.
PSC() { echo -ne "\"; }... (0 Replies)
Discussion started by: majormark
0 Replies
4. UNIX for Advanced & Expert Users
HI ,
I am trying to wite a script that will prompt me saying " what is path that you want to find ?". once i specify the path, the script should put this path in the find command mentioned below and execute the script:
find <path> -ctime +200 -type f -exec ls -l {} \;
for example :
... (7 Replies)
Discussion started by: bsandeep_80
7 Replies
5. UNIX Desktop Questions & Answers
Hello guys...
I am having a doubt. Please try to rectify it. I would really appreciate it.
The thing is that is it possible to open any website say for example,google from the command line prompt(terminal) if you are working in Linux-fedora...
I am very new to Unix.
regards,
Mahesh... (2 Replies)
Discussion started by: mraghunandanan
2 Replies
6. Shell Programming and Scripting
I have a script built that takes the standard inputs $1 $2 $3 after the name and parses some data.
hexsite=`echo "obase=16;$1"|bc`
hexfix=$(printf "%.3X" 0x$hexsite)
if || ;then
type=33
elif || ;then
type=59
elif ;then
type=99
else type=00
fi
cat /directory/*.2012$3*|
I am... (8 Replies)
Discussion started by: PCGameGuy
8 Replies
7. Shell Programming and Scripting
I'm attempting to set up a two-line prompt using Korn.
This is what I've set up in .kshrc
PS1='$(print -n "`logname`@`hostname`:";if ] then; print -n "~${PWD#$HOME}"; else; print -n "$PWD";fi;print "\n$ ")'
And in .profile,
ENV="$HOME/.kshrc"; export ENV
The hosts that in use are... (10 Replies)
Discussion started by: capnpepper
10 Replies
8. UNIX for Dummies Questions & Answers
I use the following command to print the current directory above the command prompt
set prompt="`exec pwd`\n$USER@`hostname -s` %B: % > "
The output is something like this
<current path>
$USER@hostname >
But when I try to CD to any other directory and press the return key, the... (6 Replies)
Discussion started by: aelhosiny
6 Replies
9. Shell Programming and Scripting
I want to pattern match only path part from below and replace them with new path string.
LoadModule jk_module /fldrA/fldrBaf/fldrCaa/modules/mod_jk.so
JkWorkersFile /fldrA/fldrBaf/fldrCaa/config/OHS/ohs1/workers.properties
JkLogFile... (4 Replies)
Discussion started by: kchinnam
4 Replies
10. Shell Programming and Scripting
Hi guys,
I am trying to install a software which is a shell script. I am using expect to do the silent installation.
There is a strange line during the installation of the software like this below. The prompt goes to the next line.
ENTER AN ABSOLUTE PATH, OR PRESS <ENTER> TO ACCEPT THE... (0 Replies)
Discussion started by: kapkap
0 Replies
LEARN ABOUT DEBIAN
i3-input
I3-INPUT(1) i3 Manual I3-INPUT(1)
NAME
i3-input - interactively take a command for i3 window manager
SYNOPSIS
i3-input [-s <socket>] [-F <format>] [-l <limit>] [-P <prompt>] [-f <font>] [-v]
DESCRIPTION
i3-input is a tool to take commands (or parts of a command) composed by the user, and send it/them to i3. This is useful, for example, for
the mark/goto command.
You can press Escape to close i3-input without sending any commands.
OPTIONS
-s <socket>
Specify the path to the i3 IPC socket (it should not be necessary to use this option, i3-input will figure out the path on its own).
-F <format>
Every occurence of "%s" in the <format> string is replaced by the user input, and the result is sent to i3 as a command. Default value
is "%s".
-l <limit>
Set the maximum allowed length of the user input to <limit> characters. i3-input will automatically issue the command when the user
input reaches that length.
-P <prompt>
Display the <prompt> string in front of user input text field. The prompt string is not included in the user input/command.
-f <font>
Use the specified X11 core font (use xfontsel to chose a font).
-v
Show version and exit.
EXAMPLES
Mark a container with a single character:
i3-input -F 'mark %s' -l 1 -P 'Mark: '
Go to the container marked with above example:
i3-input -F '[con_mark="%s"] focus' -l 1 -P 'Go to: '
ENVIRONMENT
I3SOCK
i3-input handles the different sources of socket paths in the following order:
o I3SOCK environment variable
o I3SOCK gets overwritten by the -s parameter, if specified
o if neither are available, i3-input reads the socket path from the X11 property, which is the recommended way
o if everything fails, i3-input tries /tmp/i3-ipc.sock
The socket path is necessary to connect to i3 and actually issue the command.
SEE ALSO
i3(1)
AUTHOR
Michael Stapelberg and contributors
i3 4.1.2 01/01/2013 I3-INPUT(1)