Solved

Transferring /var/adm/wtmpx file from one local host to another.

Posted on 1997-08-14
3
261 Views
Last Modified: 2013-12-23
I need either a shell script or a c-program that will download the file/var/adm/wtmpx from one local UNIX host and
transfer it to another host, preferably with clear explanations of what is going on. The code will be much
appreciated.
0
Comment
Question by:ee96m10
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 100 total points
ID: 1582252
wtmpx is in binary format and, therefore, may not be portable between several UNIXs. If you have access to your UNIX host try:

rsh host last | more

0
 

Author Comment

by:ee96m10
ID: 1582253
When using rsh host last|more I get permission denied.
When I do rlogin or rsh host, I'm asked for a password and then am logged in. Is  there a shell script I can write that will
run without any interaction from the keyboard, that will use rsh?
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1582254
No!
Your administrator must grant you access. This depends on the flavour of your UNIX, for example you must have an entry in ~/.rhosts or /etc/rhosts or /etc/netgroups or /etc/hosts.{access,deny}

0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question