- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: motd and Exceed
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
Forums
Discussions
Discussions
Discussions
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
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
03-05-2003 02:33 PM
03-05-2003 02:33 PM
I've checked /etc/profile and it has proper entries to display the motd. In fact, after I have logged on, I can rlogin into a machine and I get the copyright and motd.
Our Hummingbird setup uses rexec to connect to our machines and I suspect this is the culprit but am not sure. How can I use rexec to get the motd to be displayed?
Any help is appreciated.
Thanks,
John Sherman
Astek Corporation
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2003 02:41 PM
03-05-2003 02:41 PM
Re: motd and Exceed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2003 03:42 PM
03-05-2003 03:42 PM
Re: motd and Exceed
You can get a standard terminal session with telnet, puTTY, or any of several similar programs. We use puTTY for text sessions, and CDE running over Metaframe for Unix for everything else.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2003 03:53 PM
03-05-2003 03:53 PM
Re: motd and Exceed
rexec does not execute /etc/profile. So, you won't get motd or copywrite printed.
Use telnet that comes with Exceed.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2003 04:05 PM
03-05-2003 04:05 PM
Re: motd and Exceed
Every user in our company uses rexec so I would like a may to mimic the motd operation using this start method.
Any suggestions on this. Does rexec run a specific script where I could put 'cat /etc/motd' in?
Thanks,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2003 04:34 PM
03-05-2003 04:34 PM
SolutionYou can try putting a .Xdefaults file into each user's $HOME directory. Try this:
echo '*loginShell: true' >> $HOME/.Xdefaults
What this does is to create (or append) .Xdefaults which Xwindow apps will look at for Xwindow values. So the rexec'ed dtterm should startup with a login shell status and thus run /etc/profile and .profile like a normal telnet session. This fix is recommended for all workstation users too since the default is to start terminal windows without a standard login.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2003 03:27 AM
03-06-2003 03:27 AM
Re: motd and Exceed
xterm -d @d -ls -j -T `hostname` -n `hostname`
The man page on xterm tells you that the -ls parameter runs a login shell - ie you just get your .profile executed.
However I tested it - created /etc/motd and made it readable by everybody. I started my Exceed session using the command above and it executed /etc/profile as well as my own profile, printing /etc/motd.
There is nothing in my own profile to look for /etc/motd so that command appears to work. Try it and report back. S.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2003 04:29 AM
03-06-2003 04:29 AM
Re: motd and Exceed
I not only get motd when I login using rexec with Exceed, I also have /etc/profile and my local .profile executed.
Here's my .xs file:
[Xstart]
Kerberos V5 Support=0
Destroy TGT=0
Use Encryption=0
Load Balancing Support=0
Start Method=0
Program Type=0
User Id=root
Password=
Command=/usr/bin/X11/xterm -sl 2000 -ls -sb -cr Wheat -T `hostname` -bg MidnightBlue -fg Wheat -fn 7x13 -fb 7x13B -display @d
Info Prompt=0
Description=HOSTNAMEHERE
Host=HOSTNAMEHERE
Host Type=HP
Connect Timeout=1
Close Timeout=10
Response Timeout=4
Prompt Timeout=2
Show Progress=1
Log Reply=1
UserId Prompt=login:|Username:
Password Prompt=password:
Shell Prompt=$|%|>|#|}
Optional Prompt1=
Optional Reply1=
Enable Extra Prompts=0
Extra Prompt1=
Extra Prompt2=
Extra Prompt3=
Extra Prompt4=
Extra Prompt5=
Extra Prompt6=
Extra Prompt7=
Extra Prompt8=
Extra Reply1=
Extra Reply2=
Extra Reply3=
Extra Reply4=
Extra Reply5=
Extra Reply6=
Extra Reply7=
Extra Reply8=
Startup Menu=1
Override Default Port=0
Override Port=
The "-ls" is VERY important with xterm, that's why it works for me!
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2003 04:53 AM
03-06-2003 04:53 AM
Re: motd and Exceed
Bill Hassell, sysadmin