Capture Linux logon event using Java

Asked

Viewed 62 times

-1

Hello, I would like a help to create a class that captures a user’s login event on Linux using Java.

  • What this event should return to?

  • 4

    Hello Moose, welcome to Stack Overflow. The way you described your question lacked information to elaborate a concrete and appropriate answer. What have you tried? What do you need to do? What do you currently have in terms of code? Why not do the opposite (a shell script that notifies Java? ). Anyway, please expand your question with relevant information.

1 answer

1

In linux you can create a script that runs every time the user logs in. You can find a description here.

Then you create a script that runs your java program. But purely in java you won’t be able to do that.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.