[vpn-help] Running ikec but can't make a batch

José Andrés Matamoros Guevara joseamatamoros at gmail.com
Mon Sep 9 18:15:28 CDT 2013


Hi, guys! After a lot of reading and working, I have my vpn client running
on a CentOS with no problems. Now, I’m trying to make it automatic because
tunnel is falling down anytime and the installation is remote.

 

So, I have written a little batch:

 

#!/bin/bash

#

# ikec

#

# Run as cron job to keep ikec VPN alive

#

if [ $(pgrep ikec) -gt 0 ]

then

   echo "ikec is working"

else

   echo "ikec is not working"

   export MALLOC_CHECK_=0

   echo "Malloc done!"

   ./usr/bin/ike/source/ikec/ikec -r VPNfile.vpn -u RemoteUser -p UserCode
-a

fi

 

exit

 

If I run the command “./ikec –r VPNfile.vpn –u RemoteUser –p UserCode –a”
from the ikec directory, everything run OK. If I run this batch, the
VPNfile.vpn is not found
 Any idea? I’m newbie in the batch world, hope
anyone can give me some advices.

 

Glad to be here!

 

Andres.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.shrew.net/pipermail/vpn-help/attachments/20130909/62d9f4dc/attachment.html>


More information about the vpn-help mailing list