- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- passing args to rlogin
Operating System - HP-UX
1752708
Members
5556
Online
108789
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
Discussions
Discussions
Forums
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
тАО05-30-2001 04:37 AM
тАО05-30-2001 04:37 AM
I know that I can pass argument to login(1) and receive them in the enevironment variable $Ln. However, I havn't found how to do this via rlogin(1). rlogin does not seem to allow any args after the username.
Is there some way around this?
-tom
Is there some way around this?
-tom
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2001 06:54 AM
тАО05-30-2001 06:54 AM
Re: passing args to rlogin
Nope, you can not do this with rlogin, but you could with remsh! Rlogin remember initializes the users variables to the system defaults just as telnet does. This means the .login, .cshrc, .kshrc, .profile, etc.. are processed, but not variables from the remote.
Perhaps you could setup your home dirs as networked, and put all environment vars in those login files, or do what you need within remote shell instead of remote login when requiring the passing of variables.
Regards,
Shannon
Perhaps you could setup your home dirs as networked, and put all environment vars in those login files, or do what you need within remote shell instead of remote login when requiring the passing of variables.
Regards,
Shannon
Microsoft. When do you want a virus today?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2001 07:04 AM
тАО05-30-2001 07:04 AM
Solution
Hi Tom,
No, not directly but how about this:
create a textfile (remenv.sh) on the client end; e.g. :
myvar1=111
myvar2=222
myvar3=333
export myvar1 myvar2 myvar
#no exit statement !!!
Before logging in user user1 to remote_host do an rcp -p remenv.sh remote_host:/home/user1/
The .profile of remenv.sh should be modified:
REMENV=remenv.sh
if [-r ${REMENV} -a -f ${REMENV} ]
then
. ${REMENV}
rm -f ${REMENV} # it's done it job; don't need it
fi
Then do rlogin remote_host -l user1 and when user1's .profile is read, the env vars are there and exported for use.
Not as easy as env vars in login but it should work.
Food for thought, Clay
No, not directly but how about this:
create a textfile (remenv.sh) on the client end; e.g. :
myvar1=111
myvar2=222
myvar3=333
export myvar1 myvar2 myvar
#no exit statement !!!
Before logging in user user1 to remote_host do an rcp -p remenv.sh remote_host:/home/user1/
The .profile of remenv.sh should be modified:
REMENV=remenv.sh
if [-r ${REMENV} -a -f ${REMENV} ]
then
. ${REMENV}
rm -f ${REMENV} # it's done it job; don't need it
fi
Then do rlogin remote_host -l user1 and when user1's .profile is read, the env vars are there and exported for use.
Not as easy as env vars in login but it should work.
Food for thought, Clay
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2001 07:33 AM
тАО05-31-2001 07:33 AM
Re: passing args to rlogin
Clay,
Great idea! I suppose I can make an alias to 'rlogin' that will automate the 'rcp'.
I actually have many people logging into a shared account. I am a little concerned of their 'rcp' colliding. I suppose I can add some kind of lock file.
Thanks,
-tom
Great idea! I suppose I can make an alias to 'rlogin' that will automate the 'rcp'.
I actually have many people logging into a shared account. I am a little concerned of their 'rcp' colliding. I suppose I can add some kind of lock file.
Thanks,
-tom
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP