Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

chiljon

macrumors newbie
Original poster
Jan 30, 2009
1
0
Hi programmers,

I have an issue with creating a script to restart VPN services
This is the command line:
sudo /System/Library/StartupItems/CiscoVPN/CiscoVPN restart

When i trow this in the terminal it works fine.
But i want to create an app. from this.
I used Platypus-4.0 and Automator but both failed with this command:

do shell script "sudo /System/Library/StartupItems/CiscoVPN/CiscoVPN restart" password "password" with administrator priveleges
I dont care if its Platypus or Automator

Can some one help me please?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.