Search Results

Search: Posts Made By: Mumu123
7,371
Posted By Mumu123
loginn() for logu in $(ls /tmp/$lognam/wtmp*) ...
loginn()
for logu in $(ls /tmp/$lognam/wtmp*)
do
logina=$(echo $(last -f $logu -F $name) | cut -c40-63)
for loga in $logina
do loginn[$i]=$(echo "$(date +"%s" -d"$loga" 2>/dev/null)")
...
7,371
Posted By Mumu123
How to compare previous and current item in for loop in bash?
Hey,
I am trying to compare formated login and logout dates from one user at a host which I have stored in a tmp directory in order to find out the total login time. I need to compare them in order...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 11:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy