Answer the question
In order to leave comments, you need to log in
What is the correct script syntax in bash?
I'm not familiar with Linux systems, I'm trying to create a script.
Please help.
CentOS, 64 bit.
When running in a shell
yes | /usr/src/forticlientsslvpn/forticlientsslvpn_cli --server 178.207.157.170:10443 --vpnuser calluser > /dev/null
Password for VPN:
#!/bin/sh
### BEGIN INIT INFO
# Provides: pppd
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Forticlient bkk
# Description: Connect bkk forticlient.
### END INIT INFO
cd /usr/src/forticlientsslvpn/
#empty -f -i in -o out cd /usr/src/forticlientsslvpn/
empty -f -i in -o out yes | /usr/src/forticlientsslvpn/forticlientsslvpn_cli --server 178.207.157.170:10443 --vpnuser user > /dev/null
Answer the question
In order to leave comments, you need to log in
what if you make a link to /root/.fctsslvpn_trustca?
and at the expense of the password, maybe there are keys?
forticlientsslvpn_cl --help
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question