HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Startup Scripts in 10.20
Operating System - HP-UX
1834207
Members
2517
Online
110066
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
01-17-2000 10:35 PM
01-17-2000 10:35 PM
Startup Scripts in 10.20
I am looking for some direction in a custom startup script. In C-shell I have
a script that displays a prompt containing the [system name]\[current working
dir]. The script provides an updated prompt so that the pwd is always current.
Since the 10.20 upgrade and the new Posix shell was installed I have not been
able to come up with an equal. The best I can do is a static prompt current to
the working dir when the script executes.
If you know of a good resource for startup scripts I would appreciate it.
Regards,
Bob Collins
a script that displays a prompt containing the [system name]\[current working
dir]. The script provides an updated prompt so that the pwd is always current.
Since the 10.20 upgrade and the new Posix shell was installed I have not been
able to come up with an equal. The best I can do is a static prompt current to
the working dir when the script executes.
If you know of a good resource for startup scripts I would appreciate it.
Regards,
Bob Collins
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2000 11:07 PM
01-17-2000 11:07 PM
Re: Startup Scripts in 10.20
try this command in your .profile:
PS1=`hostname`":"'$PWD'"(""`whoami`"")> "
PS1=`hostname`":"'$PWD'"(""`whoami`"")> "
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2000 11:15 PM
01-17-2000 11:15 PM
Re: Startup Scripts in 10.20
Try this sintaxis:
PS1=\<`uname -n`\>\$PWD\#
\$PWD is not evaluated by your current shell.
So, next shell find $PWD, and evaluate it.
PS1=\<`uname -n`\>\$PWD\#
\$PWD is not evaluated by your current shell.
So, next shell find $PWD, and evaluate it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2000 08:59 AM
01-20-2000 08:59 AM
Re: Startup Scripts in 10.20
Bob,
Since it's the csh your looking into, I would set up
an alias for cd, try this:
alias cd 'cd \!*;set prompt="[`hostname`]$cwd :"'
don't forget to exicute the cd command in the .cshrc
file so it will start as the prompt you want instead
of waiting for the cd command to be exicuted for the
first time.
Regards,
Stacey
Since it's the csh your looking into, I would set up
an alias for cd, try this:
alias cd 'cd \!*;set prompt="[`hostname`]$cwd :"'
don't forget to exicute the cd command in the .cshrc
file so it will start as the prompt you want instead
of waiting for the cd command to be exicuted for the
first time.
Regards,
Stacey
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP