Re: [Hampshire] Gnome Launcher with script

Top Page

Reply to this message
Author: Graham Bleach
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Gnome Launcher with script
Hi Aaron,

2008/6/13 Aaron West <linux@???>:
> I'm sure I'm being stupid but I made a super simple little script for for
> cisco VPN connection that works great from a terminal however from a gnome
> launcher set to "Application in Terminal" it just closes after my password
> is entered any ideas??
>
> connect vpn script
>
> #/bin/bash!


That should read:

#!/bin/bash

You can get away with your current incorrect line in bash, as it
assumes that scripts without a proper shebang line are to be parsed by
bash.

> sudo vpnc "/home/awest/OpenVPN/Syntaxin(cisco)/Syntaxin.conf"
> read -p "Press any key to disconnect"
> sudo vpnc-disconnect


Cheers,
G