12-17-2002
my prompt.
Here is what I have for HPUX
PS1="`hostname`-$LOGNAME:\${PWD#*}
# "
This is intended to be 2 lines it gives this look.
myhost-root:/
#
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
ok, there is a way to nicely kill a suspended job and to terminate another without using the mass -KILL command.
also, how can I set my prompt temporarly without using the .bash_profile that uses the PS1.
Thanks:) (1 Reply)
Discussion started by: bitwize
1 Replies
2. UNIX for Advanced & Expert Users
Hi
Currently amending my bash profiles, there is a command that makes my session jump into another location. I just wonder if I could pre-define my prompt to begin with "cd " from this location (in order to navigate further into sub-directories). Is there any way of doing that? An important thing... (0 Replies)
Discussion started by: Indalecio
0 Replies
3. UNIX for Dummies Questions & Answers
I'm using a csh shell (or, that'd be my guess from the .cshrc file I see) and I'm looking to change my prompt.
There are about 10 other threads, I know, but this question is a little more specific. I want to know, is there a way to list the current directory from a certain level or directory... (6 Replies)
Discussion started by: HybridLogic
6 Replies
4. Shell Programming and Scripting
Hi all,
I want to set a timeout say 10 sec to shh prompt i.e. if no password is enetered for 10 sec prompt should again come to shell.
How can this be achieved ??
I am using Linux RHEL 5 and Solaris 10.
Pls help.
Thanks in adv.
VIKAS (3 Replies)
Discussion started by: vikas027
3 Replies
5. Shell Programming and Scripting
Hi Gurus,
I am working in tcsh and i set the prompt with this.
set prompt = "$cwd>"
But I see teh prompt only gets reflected with the directory where I set the prompt. After i cd to another directory it still shows the old directory. Please advise (1 Reply)
Discussion started by: kinny
1 Replies
6. Shell Programming and Scripting
Hi folks
This is our prompt at the moment
oracle@pinkipinki:/opt/oracle> grep 'set prompt' .cshrc
set prompt = "$user@`uname -n`:$cwd> "
We wish to have in production the same prompt, but red.
Howto do that? I tried a lot a internet manuals, but it doesn't work. (1 Reply)
Discussion started by: slashdotweenie
1 Replies
7. UNIX for Dummies Questions & Answers
Assume that you want to set your prompt to display the current working directory followed by a percent symbol and then a space. The command pwd can be used to display this information, so explain why the following command does not have the expected result:
set prompt=" `pwd`'%' "
Its a... (7 Replies)
Discussion started by: Blockshelf
7 Replies
8. HP-UX
HPUX does not recognise \h,\w,\u to display the hostname,working directory and username respectively.
So how do i set the PS1 variable to display my current working Directory as my prompt?
I also tried PS1=$PWD,
But it keeps showing the same directory path as prompt which PWD was holding at... (3 Replies)
Discussion started by: Amit Kulkarni
3 Replies
9. UNIX for Dummies Questions & Answers
how to Change the % prompt to - prompt in unix
:wall:
---------- Post updated at 07:40 AM ---------- Previous update was at 07:38 AM ----------
How To display the last modification time of any file in unix
---------- Post updated at 07:40 AM ---------- Previous update was at 07:40 AM... (2 Replies)
Discussion started by: manjiri sawant
2 Replies
10. Solaris
Hi,
on sunfire v890 unable to move from rsc prompt to ok prompt, i have executed the command break. (9 Replies)
Discussion started by: manoj.solaris
9 Replies
LEARN ABOUT HPUX
xhpacknowledge
XHPAcknowledge(3X) XHPAcknowledge(3X)
NAME
XHPAcknowledge - Send an Acknowledge to an extended input device.
SYNOPSIS
#include <X11/XHPlib.h>
int XHPAcknowledge (display, deviceid, acknowledge)
Display *display;
XID deviceid;
int acknowledge;
ARGUMENTS
display Specifies the connection to the X server.
deviceid Specifies the ID of the desired device.
acknowledge Specifies the acknowledge to be sent. Valid values are: GENERAL_ACKNOWLEDGE, ACKNOWLEDGE_1, ACKNOWLEDGE_2, ACKNOWLEDGE_3,
ACKNOWLEDGE_4, ACKNOWLEDGE_5, ACKNOWLEDGE_6, ACKNOWLEDGE_7.
DESCRIPTION
This request is part of an HP-proprietary extension to X. Its functionality has been superseded by the standard XChangeFeedbackControl
request. You should use XChangeFeedbackControl instead of XHPAcknowledge if possible.
This request sends an acknowledge to an input device. This allows a previously received prompt to be turned off.
A prompt is an audio or visual indication that the program controlling the input device is ready for input. The LED on an HP46086A
buttonbox is an example of a prompt. A program may indicate its status by turning on a prompt on the appropriate input device.
Not all input devices support prompts and acknowledges. Any device that does support a particular prompt will also support the
corresponding acknowledge.
To determine whether an input device supports a particular prompt and acknowledge, the io_byte field of the XHPDeviceList structure should
be examined. The format of this structure is described in the documentation for the XHPListInputDevices request.
RETURN VALUE
none
DIAGNOSTICS
BadDevice An invalid device ID was specified.
BadValue An invalid acknowledge was specified.
FILES
/usr/include/X11/XHPlib.h
ORIGIN
Hewlett-Packard Company
SEE ALSO
XHPListInputDevices(3x)
XHPPrompt(3x)
X Version 11 Release 5 XHPAcknowledge(3X)