1
rated 0 times
[
1]
[
0]
/ answers: 1 / hits: 411
/ 1 Year ago, fri, may 27, 2022, 2:17:24
I have one jar which i need to run on startup and no matter whatever user is logged in and that need to take that user name automatcally
here this code can take user name
echo $(logname)
and this command i need to run on start up.
java -jar /home/(username)/VISDashboard2014/VISDashboard.jar
so now how can i take dynamically username in to this command.?
More From » 12.04