Using Automator to enter a password in the terminal window

Discussion in 'OS X and OS X Apps' started by zChris, Jul 11, 2006.

  1. zChris

    zChris Active Member

    Jun 11, 2004
    Likes Received:
    hope someone can help...

    i made an automator script that allows me to restart my vpn subsystem application. the application needs to be restarted using Terminal, and a pretty lengthy command string to get that going.

    automator seemed to be the ticket, and I was able to get it running. however, the script stops because Terminal asks for a password. right now, i have to enter the password manually and press enter, and that completes the restart of the app. then i have to manually do a cmd+q to quit Terminal.

    is there a way for me to use automator to enter the password and quit the application?

Share This Page

  • About PhilMUG

    Since the mid-1990s, PhilMUG (formerly the Philippine Macintosh Users Group) has grown to become not just the Philippines’ but one of the world’s foremost Apple user groups. Our online community brings together thousands of members from the Philippines and around the world for the latest news and discussions covering all Apple products and related hardware and software. Anyone can join PhilMUG, from newbies to experts, subject to our membership rules and guidelines.
  • Like us on Facebook

  • Buy us a beer!

    The staff works very hard to make sure that PhilMUG is running 24/7. Care to buy us a beer or help out with our hosting fees? We'd really appreciate it!

    Donate to us!