- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- unable to set prompt
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2008 06:30 AM
тАО10-30-2008 06:30 AM
exec /usr/bin/env 'PS1=sAnScAn_Hp_PrOmPt#' /usr/bin/posix/sh -i
It should set to PS1 but no avail. whenever i type the command no output generated. not even any error message. I issued the command as follow and it seems like nothing happen.
# ditto:/ > exec /usr/bin/env 'PS1=sAnScAn_Hp_PrOmPt# '
/usr/bin/posix/sh -i
# ditto:/ > exec /usr/bin/env 'PS1=sAnScAn_Hp_PrOmPt#' /usr/bin/posix/sh -i # ditto:/ >
please help me out.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2008 04:53 PM
тАО10-30-2008 04:53 PM
Solution> by running the following command-
> [...]
Are you trying to change the prompt, or
start a new shell, or both, or what?
What's wrong with something simple like:
PS1='prompt ' ; export PS1
?
Why are you working so hard?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2008 06:50 PM
тАО10-30-2008 06:50 PM
Re: unable to set prompt
HP-UX system, a similar command seems to work
as expected:
dyi # exec env 'PS1=fred> ' bash
fred>
In fact:
dyi # exec /usr/bin/env 'PS1=sAnScAn_Hp_PrOmPt# ' /usr/bin/posix/sh -i
sAnScAn_Hp_PrOmPt#
Does "ps" or "printenv" (before and after)
tell you anything interesting?
If I spell "PS1" wrong, I can get a similar
effect:
dyi # exec env 'PSl=fred> ' bash
dyi #
dyi # printenv | grep PS
PS1=dyi #
PSl=fred>
(With the Forum font, they look very
similar.)
What happens if you set some other variables,
too?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2008 02:50 AM
тАО10-31-2008 02:50 AM
Re: unable to set prompt
Actually i am on support for HPCC an hp product. this product opens a session to the host for a collection of data from that host. user is having k-shell. does it has to do anything with setting commands. i tried to reproduce the command exec /usr/bin/env 'PS1=sAnScAn_Hp_PrOmPt# '
/usr/bin/posix/sh -i
on my lab. it worked, but not working on the user machine. do you have any reason why this is so?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2008 06:55 AM
тАО10-31-2008 06:55 AM
Re: unable to set prompt
No, and I'm days away from my Tru64 system.
> [...] on my lab. it worked, [...]
On what are you testing it?
(In the old days, I'd suggest trying one of
the HP TestDrive systems, but they flushed
Tru64 from that program long before they
flushed the whole program.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2008 01:36 PM
тАО10-31-2008 01:36 PM
Re: unable to set prompt
I haven't got a 5.1B system to test on, but on a 4.0D system running on PersonalAlpha (www.personalalpha.com) things seem to work as expected:
# exec /usr/bin/env 'PS1=rob# ' /usr/bin/posix/sh -i
rob#
Cheers,
Rob