Ok... I don't know much about Unix, but I'm trying to do some basic things and learn at the same time....
So below I made up these lines, I can append to the file with this, but I want it on one line, so when the file is run it will log the user count and stamp the date beside it.
who |wc -l >> /home/user1/UserLog3.txt
'date' >> /home/user1/UserLog3.txt
I tried dozens of variations, but can't get anything to work...
This is just one, my brain is hurting so I don't want to relive any of the others lol.
Var1=who |wc -l
Var2='date'
Var3=$Var1$Var2
echo $Var3 >> /home/user1/UserLog3.txt
I know I am mainly hung up on this part...
Var1=who |wc -l and also need some sort of a
"Cat" ?
Thanks
Ziggy
So below I made up these lines, I can append to the file with this, but I want it on one line, so when the file is run it will log the user count and stamp the date beside it.
who |wc -l >> /home/user1/UserLog3.txt
'date' >> /home/user1/UserLog3.txt
I tried dozens of variations, but can't get anything to work...
This is just one, my brain is hurting so I don't want to relive any of the others lol.
Var1=who |wc -l
Var2='date'
Var3=$Var1$Var2
echo $Var3 >> /home/user1/UserLog3.txt
I know I am mainly hung up on this part...
Var1=who |wc -l and also need some sort of a
"Cat" ?
Thanks
Ziggy