- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to run a shell directly in HP CDE, and exit im...
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
тАО08-01-2002 10:15 PM
тАО08-01-2002 10:15 PM
how to run a shell directly in HP CDE, and exit immediately?
run a shell instead.
but, the program need Xwindows environment,
i use exceed to satisfy it.
I set DTSOURCEPROFILE=true in .dtprofile and add exec nw.sh in .profile
Unfortunately I can NOT see the output of the shell, why?
Thanks in advance!
BRs,
Henry
while true
do
clear;
echo "\n\n\n\n\n\n"
echo " 1 --- nwadmin"
echo " 2 --- nwrecover"
echo " 3 --- exit"
echo "\n\\n\n"
read a
case $a in
1) /opt/networker/bin/nwadmin;;
2) /opt/networker/bin/nwrecover;;
3) exit;;
esac
done
exit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2002 11:01 PM
тАО08-01-2002 11:01 PM
Re: how to run a shell directly in HP CDE, and exit immediately?
Make your user a file named
.Xdefaults with 755 permissions
Insert line
*loginShell: true
Exit and reenter CDE and try again.
You will only see this when you open a window
dtterm or similar.
steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2002 11:05 PM
тАО08-01-2002 11:05 PM
Re: how to run a shell directly in HP CDE, and exit immediately?
exec xterm -e nw.sh
Ofcourse you could also change the CDE enviroment so that there only a few buttons left. (for example one for exit one for nwadmin and one for nwrecover )
Hope this helps,
Maarten
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2002 11:07 PM
тАО08-01-2002 11:07 PM
Re: how to run a shell directly in HP CDE, and exit immediately?
take a look at man xinit
The xinit program is used to start the X Window System server and a
first client program on systems that cannot start X directly from
/etc/init or in environments that use multiple window systems. When
this first client exits, xinit will kill the X server and then
terminate.If no specific client program is given on the command line, xinit will
look for a file in the user's home directory called .xinitrc to run as
a shell script to start up client programs. If no such file exists,
xinit will use the following as a default:
xterm -geometry +1+1 -n login -display :0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2002 11:44 PM
тАО08-01-2002 11:44 PM
Re: how to run a shell directly in HP CDE, and exit immediately?
It works greatly now. :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-02-2002 12:14 AM
тАО08-02-2002 12:14 AM
Re: how to run a shell directly in HP CDE, and exit immediately?
Would you please tell me what the "-e" means?
exec xterm -e nw.sh
BRs,
Zhe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-02-2002 03:21 AM
тАО08-02-2002 03:21 AM
Re: how to run a shell directly in HP CDE, and exit immediately?
HTH,
Pete
Pete