Need a shell script file in snow leopard to start and stop VPN connection

As the Question says, I need a shell script file to do this, and since I don't know anything about creating a script file I wanted to ask the Groups help.  I need it because I need to run a backup program, and need the backup program to run the Connect script to connect to the VPN before it starts the backup, and then when it completes the backup to run the disconnect script.  Your help is greatly appreciated.  Thanks.

Hi, thanks for your prompt reply. However my real problem is not starting
it but stopping it cleanly. I am forced to restart the display from time to time (once/per hour) because it is getting 'stuck' for some reason and the web page is out of my control.
I tried simply killing the firefox process using kill command and then starting a new one but it works one or two times and then the next firefox process demands mouse communication. And that is not available. Also this has to work without any expert present as the display is in a public area.

Similar Messages

  • Action Script 3 code not working for start and stop button?

    Ok so I have this simple animation I created of a circle that moves from one side of the stage to the other. I have added a new layer and called it buttons. On this layer I have added 2 buttons. One for start and another one for stop. The purpose is to get my circle to move from one side of the stage to the other but be able to use my buttons so that I can start and stop the animations at random times during playback. I fixed all my compiler errors now the problem lies in that everytime I click the start or the stop button I get an output error. I have a 3rd layer in which is titled actions and this is where all my code is posted. I removed that layer and placed my code in the first frame of the buttons layer to see if this would change anything but I still get the same output errors. So I just added back my actions layer. What could I be doing wrong? I have made sure to name all my movie clips and buttons correctly and I even added an instance name to them.
    Here is my code and the errors I am getting when I press the play and stop button on test-
    start_btn.addEventListener(MouseEvent.CLICK, startCircle);
    stop_btn.addEventListener(MouseEvent.CLICK, stopCircle);
    function startCircle(e:MouseEvent):void{
        circle.play();
    function stopCircle(e:MouseEvent):void{
        circle.stop();
    green_btn.addEventListener(MouseEvent.CLICK, greenCircle);
    red_btn.addEventListener(MouseEvent.CLICK, redCircle);
    function greenCircle(e:MouseEvent):void{
        circle.play();
    function redCircle(e:MouseEvent):void{
        circle.stop();
    Here are my output errors-
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at exercise2_fla::MainTimeline/redCircle()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at exercise2_fla::MainTimeline/greenCircle()

    ok so my circle is my movie clip and it is titled circle and the instance name is circle. Am I supposed to change MovieClip to circle? I put the code at the top of my actions script but for some reason it did not work. I did change play to stop and it got the movie clip to stop when I do test movie but my buttons still do not work. So I changed stop back to play. Strange.
    I did try changing MovieClip to circle but that did not work so I did Circle with a capital C and that did me no good eigther.
    I meant to add that I did get an error that said- 1180 Call to a possibly undefined method circle.

  • How to create services start and stop automation script for diff servers

    Hi All,
    i want to create a bat file for automation purpose to start and stop services
    i have some services in 1st server aand some in 2nd server and some in 3rd servers.
    has you all know i have to follow sequences to start and stop services can any help me in creating .bat by linking 3 servers fo starting and stoping services.
    Thanks in advance
    Regards
    SM

    Hi,
    this is the list of start oder for services in 11.1.2.1 from the Installation and Configuration Guide
    1. Databases for repositories.
    2. Any corporate user directories that you plan to configure for use with Shared Services.
    3. Foundation Services Managed Server application server, which includes Shared Services,
    and EPM Workspace.
    4. Reporting and Analysis Framework — Agent Service (if required for your environment)
    5. Reporting and Analysis Framework Application Server (if required for your environment)
    6. Web server
    The remaining services and processes can be started in any order:
    1. Performance Management Architect Services
    2. Performance Management Architect application server
    3. Performance Management Architect Data Synchronizer application server
    4. Essbase Server
    5. Administration Services application server
    284 Starting and Stopping EPM System Products
    6. Integration Services Server
    7. Essbase Studio Server
    8. Provider Services application server
    9. Financial Reporting Services
    10. Financial Reporting application server
    11. Web Analysis application server
    12. Calculation Manager application server
    13. Planning application server and the Hyperion RMI Registry
    14. Financial Management service
    15. Financial Management Web application server
    16. Strategic Finance service
    17. Performance Scorecard application server
    18. Performance Scorecard Alerter application server
    19. Profitability and Cost Management application server
    to start services on different servers you can use the sc command in your batch file
    for eg
    sc \\10.121.201.21 start HypS9FrameworkAgent

  • Scripts broken under Snow Leopard?

    I wrote a script using AppleScript Editor. After several tests, running it manually from within AppleScript Editor, it seems to work just fine and does what I want it to. So, I saved a copy of the script as "run only". Supposedly, I should now be able to double-click the run-only script in order to run it without opening the editor. But, when I double-click the file, I get two pop-up windows. The first says: "Unable to read the file because the script is not editable (it was saved as run-only)", the second says "The document 'myscript' could not be opened."
    Are scripts broken under Snow Leopard?

    sauljaffe wrote:
    That's absurd. What purpose does the "run-only" option have then?
    that's needed when people publish applications they created and don't want others to see source code. this is done to all commercial software to protect against software piracy. you can do it to your own home made programs too if you want using that button.
    If you can't run it, and can't open it with the editor, then you have a file on your system you can only do one thing with: move it to the trash.
    There must be a way to save scripts so they can be run without opening the editor first.
    of course there is. you save the script as an application. then to run it you double-click on it.
    If "run-only" isn't it, then what is it?

  • Help! I need to downgrade Mountain Lion to Snow Leopard

    Hello, I know this seems to be a major issue, but i'm going to try to see if someone can help.
    Here's my scenario
    I have an iMac i purchased in October 2010, and i have all of the original install discs, since owning the computer i've installed Lion and then  Mountain Lion
    I recently purchased a brand new mac, and want to sell the iMac.
    I've done this a number of times (clean installs) and didn't realize this was going to be such an ordeal.  I need help!
    -I have all of my files off the iMac completely and on my new computer
    -I've already zeroed out the hard drive
    -reinstalled Mountain Lion
    so there is absolutely nothing on the computer i need...
    From this point
    How do i get it back to Snow Leopard? and/or Do i even have to?
    Thanks, please let me know if i need to clarify anything

    Clean Install of Snow Leopard
         1. Boot the computer using the Snow Leopard Installer Disc.  Insert the disc into the
             optical drive and restart the computer.  After the chime press and hold down the
             "C" key.  Release the key when you see a small spinning gear appear below the
             dark gray Apple logo.
         2. After the installer loads select your language and click on the Continue
             button. When the menu bar appears select Disk Utility from the Utilities menu.
             After DU loads select the hard drive entry from the left side list (mfgr.'s ID and drive
             size.)  Click on the Partition tab in the DU main window.  Set the number of
             partitions to one (1) from the Partitions drop down menu, set the format type to Mac
             OS Extended (Journaled, if supported), then click on the Partition button.
         3. When the formatting has completed quit DU and return to the installer.  Proceed
             with the OS X installation and follow the directions included with the installer.
         4. When the installation has completed your computer will Restart into the Setup
             Assistant. Be sure you configure your initial admin account with the exact same
             username and password that you used on your old drive. After you finish Setup
             Assistant will complete the installation after which you will be running a fresh
             install of OS X.  You can now begin the update process by opening Software
             Update and installing all recommended updates to bring your installation current.

  • Script Editor in Snow Leopard painfully slow after adding apps to Library

    I have four different Macs that I use from time to time, and on each of them I notice a constant: adding more items to AppleScript Editor's Library window slows performance of mundane operations (opening a dictionary, switching between Library window and editor window, scrolling in the Library window, etc).
    In Leopard, I noticed little to know latency in opening a dictionary in Script Editor, but Snow Leopard's AppleScript Editor kills my productivity by making me wait on it with most UI interactions with the Library window.

    Hello
    I read another post of yours:
    Topic : Issue with applescript and installer scripts
    http://discussions.apple.com/thread.jspa?threadID=2143147
    It seems that the installer is calling osascript which is run in 64-bit mode under OSX 10.6 whereas XSLT Tools.osax invoked in the script is in 32-bit mode only.
    Until the osax becomes 64-bit capable, you may try setting /usr/bin/osascript to run in 32-bit mode. Perhaps by setting an option in Get Info window in Finder as explained in the AppleScript Release Notes listed earlier. (?)
    I'm not sure but if Finder cannot do it for commands, you'd need to replace 'osascript' with 'arch -i386 osascript' in the installer script (if it's editable) or let /usr/bin/osascript be wrapped via arch(1) so that it is run in 32-bit mode.
    cf.
    http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/m an1/arch.1.html
    Good luck,
    H

  • I have Mac OS X 10.5.8 on mid-2009 Macbook Pro (683MB RAM used, 81.67GB free space), do I need additional RAM to update to Snow Leopard?

    I have Mac OS X 10.5.8 on mid-2009 Macbook Pro (683MB RAM used, 81.67GB free space), do I need additional RAM to update to Snow Leopard?
    I was told I can update to Snow Leopard without adding RAM but just read on another discussion thread that someone with the same age Macbook Pro that I have was told to purchase more RAM then update to SL.
    Serial # W8*******6D
    Model Identifier: MacBookPro 5,5

    Thanks!
    I ordered 4 GB from crucial.com, product info below. Do you know if it will be 1 or 2 sticks? If only 1, will I be able to use the original 2 GB installed in the machine and the 4 GB from crucial.com?
    Part Number: CT4G3S1067M
    Module Size: 4GB
    Package: 204-pin SODIMM
    Feature: DDR3 PC3-8500
    Specs: DDR3 PC3-8500 • CL=7 • Unbuffered • NON-ECC • DDR3-1066 • 1.35V • 512Meg x 64 • lead free • halogen free • for Mac

  • Need a shell script to backup archive log daily

    Hi All,
    We need a shell script to backup the archive logs daily after shutting down the concurrent manager and once the backup is completed, needs to start the concurrent manager through the script itself, if you have any ideas or sample scripts, please provide and help us.
    The objective is to backup the daily archive logs with out any loss of data.
    Thanks,

    I do not have a similar script to share, sorry. However, you may review the following links/notes:
    Note: 137181.1 - RMAN Backup Shell Script Example
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=137181.1
    Recovery Manager (RMAN) Manuals
    http://www.oracle.com/pls/db102/homepage

  • Problem editing hosts file in Snow Leopard

    I am having trouble editing my hosts file in Snow Leopard. Well, I can edit it fine, but the changes seem to give no effect whatsoever.
    My hosts file looks like so:
    # Host Database
    # localhost is used to configure the loopback interface
    # when the system is booting. Do not change this entry.
    127.0.0.1 localhost
    255.255.255.255 broadcasthost
    ::1 localhost
    fe80::1%lo0 localhost
    127.0.0.1 localhost www.localhost.com
    I cannot access localhost by entering '127.0.0.1' into my browser, nor can I access it by entering 'www.localhost.com'.
    Firefox simply tells me either 'Unable to Connect' or 'The Connection was reset', respectively.
    Is there something I am doing wrong?? I have been looking all over the internet all week and cannot see what I might be missing!
    The only way I can connect to localhost is by visiting 'http://localhost:8888/'.
    If it helps, I am running MAMP.
    Thanks to anyone who can help.

    Never mind, I found out MAMP was using port 8888 instead of 80, so I reset it and now it works fine

  • Un-zip file in Snow Leopard

    How do you un-zip file in Snow Leopard?

    Hey
    Apple used to include a program called StuffIt Expander to decompress zipped files, but doesn’t now that OS X lets you unzip files (but not .sit files). However, StuffIt from SmithMicro Software still comes in handy for opening other types of compressed files, notably the .sit or .sitx compressed types. Go to www.stuffit-expander.com or www.stuffit.com/mac/index.html to download a free version of the software or to splurge for the Deluxe version. In addition to compressing files, StuffIt Deluxe lets you encrypt and back up files.
    Read more: http://www.dummies.com/how-to/content/how-to-zip-and-unzip-files-on-your-mac.htm l#ixzz1KBJk3oib
    Regards,
    Britt.

  • I need to upgrade to mac os snow leopard from 10.5.8, and have the lion OS usb. I can't upgrade to snow leopard as my father doesn't remember the admin password.  If anyone can help it would be appreciatedeas

    I need to upgrade to mac os snow leopard from 10.5.8, and have the lion OS usb. I can't upgrade to snow leopard as my father doesn't remember the admin password.  If anyone can help it would be appreciated

    Restart with the Mac OS X 10.6 DVD in the drive or with the Lion USB drive connected, hold down the Option key just after the restart, tab to the installation disk, and press Enter. If the computer has a firmware password set, it needs to be provided for this to work.
    (66822)

  • I need a shell script to move latest archivelogs from one server to another server..

    Hi,
         I need a shell script to move latest archivelogs from one server to another server..
    Thanks&Regards,
    Vel

    ea816fb9-f9ea-45ac-906f-36a8315970d0 wrote:
    Thanks it's really helpfull..
    Now i have pasted a shell script which generates archivelog and shows latest archivelog time..
    just check let me know the answer, that how i need to execute it..
    # Force a logswitch to get the last archivelog to the standby host
    ORACLE_SID=ORCL
    ORAENV_ASK=NO
    . oraenv >/dev/null 2>&1
    SwitchLogfile()
      # Do logswitch 
      RESULT=`echo "Alter system switch logfile;" | sqlplus -S / as sysdba | grep 'System altered'`
      if [ "$RESULT" = "System altered." ]
      then
      export RETURN=1
      else
      export RETURN=0
      fi
      # Do we need to do something with this return value?
      export RETURN
    GetArchiveTime()
      CURYEAR=`date +%Y`
      echo "set heading off;" > temp.sql
      echo "set termout off;" >> temp.sql
      echo "select to_char(first_time,'YYYY-MM-DD HH24:MI:SS') from v\$archived_log where sequence#=(select sequence# - 1 from v\$log where status='CURRENT');" >> temp.sql
      sqlplus -S / as sysdba <
    spool tempres.txt
    @temp.sql
    quit
    EOF
    cat tempres.txt | grep ${CURYEAR} | grep -v grep | awk '{print $1" "$2}'
    #rm -f temp.sql  tempres.sql
    SwitchLogfile
    GetArchiveTime
    You seem to have ignored Dude's VERY good advice and continue to press down this ill-advised path.  If you continue this approach, you WILL have problems at the very time you do not need any additional problems.  Trying to recover your production database at 2:00 in the morning is not the time to be getting errors from rman because it can't find what it needs - because you decided to move them around yourself.
    Please reconsider.

  • Many more files in Snow Leopard

    I recently cloned my Leopard 10.5.8 drive, and then upgraded the new drive to Snow Leopard, and applied all updates etc., on a first-gen Mac Pro.
    Checking the file count on the Snow Leopard volume, it's just under 1.9 million files, whereas the Leopard volume had/has right around 1 million.
    Any ideas on why so many more files under Snow Leopard? I've checked the file count of various individual folders, even using Onyx to check the hidden folders, and there's only around 600-700K files visible.
    Storage footprint also went up maybe 10-20GB, but not that significant on a 1.5TB drive.
    It doesn't appear to be causing any problems, but is certainly strange, and causes me to wonder if something went wrong in the upgrade, or if I have some subtle long-term issue.
    Any ideas on what could have happened, and what to do to correct the situation? Or should I just ignore?
    Thanks for any thoughts.
    Ken

    No, David--the top-level directory structure looks the same as the old drive. Thanks for the suggestion, though.
    Ken

  • I need to upgrade my OS from Snow Leopard 10.6.8. I can't decide between Lion or Mountain Lion can anyone tell me the difference between the two?

    I need to upgrade my OS from Snow Leopard 10.6.8. I can't decide between Lion or Mountain Lion for my upgrade can anyone tell me the difference between the two?

    Click here for information.
    (125089)

  • Installing Mountain Lion from Snow Leopard, Install failed and HD write-locked

    I recently downloaded the mountain lion installer from the App Store and I ran the installer. Stupid person as I am, I did not have any backups for my file and I naively assumed that an apple OS installer would be without flaws. Boy, was I wrong. I need every bytes of my data (or close to every bytes) but the installer failed.
    Mid installation, the installer stopped and said that the installation failed and that I need to repair my disk. So I restarted the computer and I ran disk utilities (my start up disk was the OS installer and the installer allows me to run several programs, including terminal, disk utilities, and by the way, when I held option while starting up to see which start up disks I have, I only had the OS installer as the start up disk. Also, the installer allows me to run a program called "Startup Disk" when I click on the apple logo on the top left corner, but it doesn't allow me to startup my computer using Macintosh HD) and noticed that when I highlighted Macintosh HD, my "Repair Disk" button was grayed out. So first things first, I ran the "Verify Disk" button but after a minute or so, Disk Utilities said that verification failed and that Macintosh HD needs to be repaired. But the "repair disk" button is grayed out! So I went to the Mountain Lion installer again and ran it. Of course, it failed again so I restarted the computer.
    So I tried to first back up all files in Macintosh HD to an external hard drive using Disk Utilities, and I used features such as "New Image" and "Restore" but they both ended up in "Input/Output error". I tried many methods with Disk Utilities but they resulted in errors.
    After some research, I noticed that some people's computers worked after they reset their PRAM. So that's what I did. I held command+option+P+R when computer started up and I reset the PRAM. When the start up disk (which is the OS installer, not the normal operating system) loaded, I was greeted with choose languages option and then I was back in the Mountain Lion installer state. I again ran the installer again, hoping something would be different, but then it was different. But not in a good way. When I was told to choose where I would like to install Mountain Lion, I noticed that Macintosh HD was grayed out. Last time, I was at least able to run the installer but this time, Macintosh HD was grayed out. The installer said that my Macintosh HD was locked. After some research, I learned that apparently, the Mountain Lion installer write-locks Macintosh HD mid installation.
    So now I am stuck and I am thinking of two things (plus some questions)
    1. I am wondering if there is a way to unlock Macintosh HD. But even if I can unlock Macintosh HD, there is no guarantee that the installer will successfully install Mountain Lion, am I right?
    a. so how can I un-write-lock Macintosh HD?
    2. More realistically, I am thinking of borrowing someone else's macintosh computer and use it as the backup center. I have a firewire cable and a terrabyte external hard drive. So what I'm thinking is that I'll hook my computer in target mode to my friend's computer and I will also plug in my external hard drive to my friend's computer and then I can download and run Carbon Copy Cloner from my friend's computer to copy all data from my Macintosh HD to my external hard drive. And then I will erase my Macintosh HD, freshly install Mountain Lion onto it and then copy all data back from my external hard drive. But I am not sure about few things.
    a. it looks like my Macintosh HD is write-locked. Can I still use Carbon Copy Cloner to copy all data from Macintosh HD (in target mode) to my external hard drive?
    b. will my computer allow me to erase (or format) Macintosh HD?
    c. will my erased/formatted Macintosh HD able to install + be installed Mountain Lion OS?
    If you are here, then you have read my long long problem. Thank you very much and I would really really really appreciate your answers and opinions. Thanks

    I'm not sure where you read that about the disk being "write-locked." That doesn't make much sense, given that the major task an installer like this must achieve is writing a whole bunch of files to the hard drive. I think your source was mistaken.
    As to what happened, it sounds like your hard drive was badly corrupt to start with, or possibly was on the edge of failing and is now in the process of dying entirely. If you don't have backups of your data, that does not bode well for you, unfortunately. If you can manage to use target mode to copy your data, do that.
    Once you're sure you've got all your data, you need to start up from your Snow Leopard install disk and repair the hard drive. (Since it sounds like the Mountain Lion installer didn't work, I wouldn't trust the recovery partition that Mountain Lion installs.) Or, even better, just erase the hard drive entirely and reinstall Snow Leopard. Then, once you're back up and running, with all your data back on the system and with Snow Leopard updated to the most recent version, try installing Mountain Lion again. If any of that fails again, the problem is likely to be a dying hard drive, and you'll need to replace it.

Maybe you are looking for

  • Adobe Open and Type 1 Fonts in XP/SP3 plus updates & CS3

    Since applying the latest Microsoft updates to XP/SP3 last week I can now no longer add Open Type 1 or Type 1 fonts to Fonts in Windows, and therefore can't add more fonts for use in Photoshop CS3. I tried a new harddrive, reloaded with XP/SP3 plus u

  • Error while starting stand alone applicaitons in Web Center Content

    Hi All, I am getting this error while starting any standalone component in Oracle WebCenter Content Server : WARNING: Jps platform factory creation failed. Reason: {0}. java.security.PrivilegedActionException: oracle.security.jps.JpsException: JPS-0

  • ESata Card is Force Shutting Down My Computer!

    I have a 4 port eSata Card, plugged into one of my PCI slots. I recently had to reformat my computer and now have 10.5.7. Whenever I plug in my 5 HD enclosure (NORCO), it will work for a little bit then the gray screen of death will come up saying I

  • How do I install a URL window

    I have turned off the addons, gone back to the default Firefox,& Looked at some of the other solutions that relate to URL windows. Nothing seems to work. I get search windows that take me to the wrong places but no simple URL window that takes me to

  • Deleting duplicates and thumbnails in iphoto or

    As a 20+ yr PC user I made the fatal mistake of trying to manage my imac photos as in a PC. Running out of space on my imac, I exported all my photos to a 1TB external. Somehow, I wound up with duplicates and triplicates and even thumbnails. I purcha