Re: Client history

Peter Davis via Openvpn-users <[email protected]>
Newsgroups gmane.network.openvpn.user
Message-ID <uXf4QvnqoU3VOwfmwSewwRkWlpS8-DEXSUtdHg3V98VvOKXM3jn36-YN72O2slwaZI7h6FWcHP44SYL8PjHdDxCOwcy_OSorZVLc2XgfpNQ=@proton.me>
> On Tuesday, February 20th, 2024 at 8:26 PM, Bo Berglund <[email protected]> wrote:

> On Tue, 20 Feb 2024 11:29:36 +0000, Peter Davis via Openvpn-users
> [email protected] wrote:
> 
> > Hi,
> > Thanks again.
> > Can you make the report be saved to a file?
> 
> 
> Are you trolling me?
> 
> What do you think this does? :
> 
> LOG_FILE="/etc/openvpn/log/server-events.log"
> echo "$LOG_TIMESTAMP - $common_name connected with IP $trusted_ip" >>
> 
> "$LOG_FILE"
> 
> Solution:
> 
> 1) LOG_FILE is declared as a filename
> 2) echo "$LOG_TIMESTAMP - $common_name ..." >> "$LOG_FILE"
> 
> 
> The second command adds the new info to the end of the defined file
> 
> What is it you do not understand?
> Or are you a troll?
> 
> 
> --
> Bo Berglund
> Developer in Sweden
> 
> 
> 
> _______________________________________________
> Openvpn-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openvpn-users

Hi,
I got the following error:

# sh /etc/openvpn/scripts/script-events.sh 
/etc/openvpn/scripts/script-events.sh: 6: [: ==: unexpected operator
/etc/openvpn/scripts/script-events.sh: 14: [: unexpected operator
/etc/openvpn/scripts/script-events.sh: 16: [: unexpected operator
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.