Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17783

How to expunge or mirror to an alternative history bash history and last log from one specific host?

$
0
0

I've got a tool running that periodically SSHs into a variety of Linux hosts for some automated checking of services. In the process of doing so it does, in order:

  • log in via SSH
  • generate a tmp file in /tmp
  • execute that
  • report on it's results
  • delete the file
  • close SSH

It's always coming from one specific host name. I've never looked into this before. What's the best way to approach this? I'm sort of surprised I've never seen it in all these years.

submitted by AmericanDerp
[link][6 comments]

Viewing all articles
Browse latest Browse all 17783

Trending Articles