Script To Shut Down a Program At A Certain Time

Hi guys,
Unfortunately I have absolutely no knowledge of scripts so that's why I'm asking help for something which is probably simple.
I run a torrent program and I wish do quit it at a certain time when I am not around. Now, when you close the program, if there are transfers running it brings up a dialog box asking if you really wish to shut the program down. The torrent program is Transmission.
Is there any way that I can write a script to shut the program down for me?

I think you will need to do something with at
so to kill foo.app at 9 am
enter
at 0900 killall foo.app
from a terminal

Similar Messages

  • Firefox 3.6.10 on WinXP spontaneously shuts down without warning after a certain time, whether or not the Internet is in active use, without disrupting or otherwise affecting any non-Internet programs running simultaneously.

    Ffox 3.6.10 on a Compaq Evo N8OOv began spontaneously shutting down w/o warning, closing all Internet applications w/ot affecting the operation of the computer, including non-Internet programs running simultaneously. Avira AntiVir Personal and with Spybot gave no hits suggesting infection.

    See:
    * http://kb.mozillazine.org/Firefox_crashes
    * [[Firefox crashes]]
    Your above posted system details show multiple Java Console extensions.
    You can uninstall (remove) the Java Console extensions and disable the Java Quick Starter extension as you do not need them to run Java applets.
    See http://kb.mozillazine.org/Java#Multiple_Java_Console_extensions
    See also http://www.java.com/en/download/help/quickstarter.xml - What is Java Quick Starter (JQS)? What is the benefit of running JQS? - 6.0
    Disable the Java Quick Starter extension: Tools -> Addons -> Extensions
    Control Panel -> Java -> Advanced tab -> Miscellaneous -> Java Quick Starter (disable)

  • I have made a .bat file that shuts down my pc at a certain time, but I tend to restart it manually (cuz Im a game addict) :/

    Im a student and a gamer, yet they tend to interfere with eachother cuz I am used to game until midnight :(
    I have made a batch file that shuts my pc down, but as the title says, I often just restart it.
    What I want to do is make it nearly impossible to do this.
    Is it possible to make another batch file that does this?

    Hi,
    Here's a PowerShell script that will do what you're after:
    if ( (Get-Date).Hour -lt 8 -or (Get-Date).Hour -ge 22 ) { Stop-Computer -Force }
    Just be aware, this is completely unforgiving and there's no warning.
    Set it to run as a scheduled task at whatever interval you'd like.
    Don't retire TechNet! -
    (Don't give up yet - 12,830+ strong and growing)

  • I keep getting this message:  Adobe Photoshop CC 2014 has stopped working.  A problem caused the program to stop working correctly.  Then it shuts down the program.

    I keep getting this message when I try to open my new Adobe Photoshop.  The main screen comes on and a box for the tutorials then this.  "Adobe Photoshop CC 2014 has stopped working.  A problem caused the program to stop working correctly."  When I say Okay to the message, it shuts down the program.

    Refer below link once
    Photoshop: Basic Troubleshooting steps to fix most issues

  • When launching Firefox, I always get a message that my previous session cannot load, even though I always go to a blank page before shutting down the program.

    When I open the Firefox browser, it tries to reload the last page/tab I was on before shutting down the program the last time. My home page is a blank page, and I always go to that before shutting down.

    I have had exactly this problem - Firefox - version 11, but when I updated all my plug-ins (go to Customize Firefox - about halfway down - '''''Check your plugins''''') and restarted Firefox the problem vanished. Hope this helps as this seems to be a fairly large issue.

  • I updated itunes now itunes says there is a problem and shuts down the program everytime I open it.

    I updated itunes now itunes says there is a problem and shuts down the program everytime I open it.

    Hello there, cskilli.
    The following Knowledge Base article offers up some great, in-depth and practical steps for troubleshooting the issue you're describing:
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • A script to shut down Weblogic

    Hello,
    I use Weblogic Server 5.1 on NT with jdk 1.2.1.
    I have a script that shut down Weblogic :
    java weblogic.Admin http://localhost:80 SHUTDOWN system mypassword
    but this still give me this message :
    "Can't find class weblogic/Admin or Something it requires"
    Does I have to set classpath first ?
    Then, I change my script to :
    set PATH=d:\jdk1.2.1\bin;d:\weblogic\bin;%PATH%
    set CLASSPATH=.;
    set CLASSPATH=d:\weblogic\classes\boot;%CLASSPATH%
    set CLASSPATH=d:\weblogic\lib;%CLASSPATH%
    set CLASSPATH=d:\weblogic\classes;%CLASSPATH%
    java -classpath %CLASSPATH% weblogic.Admin http://localhost:80 SHUTDOWN
    system weblogic
    but it still give me an error :
    "Exception in thread "main" java.lang.NoClassDefFoundError :
    javax/naming/NamingException"
    Can you give me a script example to shutdown Weblogic on NT ?
    I also want to know if the console can be install on client and how ?
    Thanks a lot
    M.L.

    Make sure u have run the setEnv.cmd script.
    ml wrote:
    Hello,
    I use Weblogic Server 5.1 on NT with jdk 1.2.1.
    I have a script that shut down Weblogic :
    java weblogic.Admin http://localhost:80 SHUTDOWN system mypassword
    but this still give me this message :
    "Can't find class weblogic/Admin or Something it requires"
    Does I have to set classpath first ?
    Then, I change my script to :
    set PATH=d:\jdk1.2.1\bin;d:\weblogic\bin;%PATH%
    set CLASSPATH=.;
    set CLASSPATH=d:\weblogic\classes\boot;%CLASSPATH%
    set CLASSPATH=d:\weblogic\lib;%CLASSPATH%
    set CLASSPATH=d:\weblogic\classes;%CLASSPATH%
    java -classpath %CLASSPATH% weblogic.Admin http://localhost:80 SHUTDOWN
    system weblogic
    but it still give me an error :
    "Exception in thread "main" java.lang.NoClassDefFoundError :
    javax/naming/NamingException"
    Can you give me a script example to shutdown Weblogic on NT ?
    I also want to know if the console can be install on client and how ?
    Thanks a lot
    M.L.

  • Trying to update my software (iPhone and iPad) it says my iTunes software needs to be updated, but it is already is. I try this over and over again. I've already reinstalled iTunes and have shut down and restarted my Mac several times. How can I fix this?

    Trying to update my software (iPhone and iPad) it says my iTunes software needs to be updated, but it is already is. I try this over and over again. I've already reinstalled iTunes and have shut down and restarted my Mac several times. How can I fix this?

    This is what worked:
    "In iTunes, I signed out of the store. I exited itunes and restarted it, logged back into the store (with my apple id), then I pulled down the iTunes menu in the menu bar and selected Check for updates.
    At this point it said that iTunes 11.1 was available and I'm downloading now " Quoted from a fellow user.
    It fixed my problem.

  • There are times when I try to start firefox 3.6 that it does not come up,but when I click it again, I get fire fox is running but not responing, close fire fox, or shut down computer. There are other times that it starts up normaly wit no probs

    # Question
    there are times when I try to start firefox 3.6 that it does not come up,but when I click it again, I get fire fox is running but not responding, close fire fox, or shut down computer. There are other times that it starts up normally wit no probs
    ..

    Not using any mouse pad, I have a very smooth desktop. But I just tried to use a sheet of A4 printing paper, but no result, the problem persisted.
    Someone on this forum suggested, that USB3 may interfere with the magic mouse.
    I have 2 LaCie HDD's about 70 cm away from the mouse, I use them on Thunderbolt. But in operation or not - the result is the same, the mouse plays up! Just now I was clicking the desktop and the mouse created a new folder!!
    Thanks for the advice, Bee
    Cheers, Gerd

  • Firefox.exe*32 process does not shut down when program is closed in version 17.0.1, on windows 7 64 bit OS.

    When trying to open Firefox browser, I get a message Firefox is already running... You can stop the process or restart the computer. This is a recent problem and I can't think of any changes that may have occurred to change the functioning of the two programs.

    The support article on Firefox "hanging" has a few pointer on Firefox failing to fully shut down and clean up after itself. Does anything here help:
    https://support.mozilla.org/en-US/kb/firefox-hangs-or-not-responding#w_firefox-hangs-when-you-quit-it

  • How do I run a script at shut down?

    Hi folks,
    I wrote a script that runs at login that gets my dynamic IP and creates a simple web page with a link to my local computer address for Personal Web Sharing, and then uploads that web page with the link to my ISP homepage server.
    I wrote another script that creates a web page with no link, but contains a message that my home computer is shut down.
    This way, my ISP homepage can have a file that either points to my dynamic IP or has a message that my web server is down.
    So How do I get the shut down script to run at shut down?
    The shutdown script is basically just this to upload an existing html file:
    curl -T shutdown_message.html -u userid:password ftp://ftp.web.isp.server.com/
    or you can dynamically create an html file with current date and expected date you will be back on-line, or whatever, with some simple perl code.
    Thanks.
    G3 Desktop, SonnetEncoreZIF G4 1GHz, 768MB, WingsAV-6MB, DVR-106D, 60GB Maxtor   Mac OS X (10.4.7)   PCI: TempoUltraATA66-120GB Maxtor, 120GB Seagate; TangoUSB/FW; Radeon9200-17"LCD

    Thanks, guys. For the most part I think the DSL keeps the same IP except when I power down. My power went out just as I finished my login upload script, so my first test was out of necessity, and it worked. I could set it up as a cron job on my local machine to regularly test the IP and upload the page.
    reese, When I have a power loss, or non-planned abnormal shutdown, my web page will be out of sync, unless I use something on the ISP server, so that is a good point. I am not sure what kind of scripts I can run on my ISP web server. I don't know if I can set up a regularly scheduled script, or if it would only respond to requests, then it could perform the test on demand. I need to give that some more study. Good suggestion.
    As far as a normal planned shutdown, I thought of one possible work around: to create a script that runs my upload and then executes the shutdown, either by AppleScript or UNIX shutdown command line, not sure which is the most graceful.
    Gary, I looked in the /System/Library/StartupItems and found the Apache scripts in there. They have a StartService and StopService methods defined. I think I could use that as a template to create my own, or just add my scripts to the Apache methods. Since basically I want to run something as Apache is started and again when it stops. That may be the most graceful method. As Apache can get shut down when the machine remains on via System Preferences. You solved my problem Gary, but I marked your message as helpful already. Post back again and I'll give you the Solved Star & points.
    G3 Desktop, SonnetEncoreZIF G4 1GHz, 768MB, WingsAV-6MB, DVR-106D, 60GB Maxtor Mac OS X (10.4.7) PCI: TempoUltraATA66-120GB Maxtor, 120GB Seagate; TangoUSB/FW; Radeon9200-17"LCD

  • Txt Tool shuts down the program

    I have Windows 7, Photoshop Elements 9. It was working finw for years, and suddenly when I click the text Tool the program shuts down. I even re-intall the program and the problem persist. Any suggestion?

    Did you delete the preferences folder before re-installing PSE?  If you did not then I have to say it was a futile exercise on your part because your preferences file are likely to be corrupted and reinstalling does not necessarily over-write them.
    However, I have to take your word for it because you have used so many tools to solve this that I can't dispute your findings.  CCleaner is pretty good to delete registry entries and Revo is the best in uninstalling the programs.
    Now if nothing works as you say then I have to say that you will need to reset your machine to a date when it was working.  Now can you remember roughly when it was working correctly?
    I suggest read this link first:
    <http://windows.microsoft.com/is-is/windows-vista/what-is-system-restore>
    It is for vista but for Windows 7 is also available on Microsoft website.

  • Script to shut down macs running retrospect client once backup is complete?

    This was previously posted in another forum, so apologies, but have been advised this is the best place to post this query.
    I have a network of approx 10 macs which are backed up by EMC Retrospect. Under previous versions of Retrospect which ran under system 9 and earlier, you could shut a mac down, it would go to sleep, then when the backup was finished the mac would shut down. This no longer works on OS10.x so we have to leave all the macs on all night to ensure the backup is completed which is a terrible waste of power. So, my question is, is there some way a script could make a mac shut down after an event (eg. after Retrospect has backed up its contents) to prevent us having to run all the computers all night?
    There is some extra complexity from the fact that there is one mac running the Retrospect application which talks to all the other macs which run retrospect client. It's only the client macs which need shutting down as Retrospect itself has a function to shut down after backup is complete.
    thanks
    Luke

    I searched for "shutdown" in Dantz's (Knowledgebase (found it there: http://www.retrospect.com/supportupdates/technical/retrospect/) and found and article called "Can Retrospect shutdown my Macintosh OS X computer after the backup?" the download of the script is located on the right side (attached file called cShutdown_1.1.dmg) soooo small this link, sooo big the dmg (1MB), soo small the Script (66kb)
    The AppleScript (run-only script-installer) creates a crontab (I think) that checks each hour if a Backup has finished that day and shuts down the computer if no user is logged in.
    I would try to write a routine on my own, but I do not use retrospect at all, so I do not know how to figure out if a backup has been finished or not...

  • I have downloaded Safari on to my PC( I recently bought an iPad and want some compatibility) However when I try to open and import bookmarks to Safari on my PC it shuts down the program.  Any help appreciated.

    I now own an iPad and want to load bookmarks from Firefox on my PC to my iPad.  I have downloaded Safari on to my PC and tried to import the bookmarks from Firefox but every time I try to open bookmarks in Safari it shuts down Safari.  As I siad I eventually want the bookmarks on my iPad.  Any help appreciated.
    KJ

    Are there any dialog boxes popping up behind your Yahoo screen?
    I have intermittent problems attaching files in Yahoo mail and this is usually the reason.  I'm also using an iMac (10.7.3) and this is likely the problem.
    It is generally a Yahoo issue rather than a Mac problem.

  • Computers not starting up and shutting down as programmed

    I have a lab of 30 computers running 10.3.9 that are set to startup in the morning at 8am and shutdown at 5:30pm. They were working just fine for the last month, but now for the last week, they've stopped shutting down when scheduled. As far as I can see, there isn't anything running that would cause the shutdown to stop, unless there is a rogue process running, but even that wouldn't make sense as sometimes the lab isn't even used all day, and so it stays at the login screen all day. I've repaired permissions, but that didn't help. I thought about dumping the preferences, and thought I knew it once before, but am drawing a blank at the moment. Any suggestions?
    Ben

    I came across the same thing yesterday morning. I gave it try, and they shut down properly yesterday afternoon, but they didn't start back up this morning. I turned one on and checked the settings on it and they're correct (scheduled to start up every weekday morning at 8am). I know there has to be something I'm missing but just can't think of what that is.
    Ben

Maybe you are looking for

  • FTP: File receiver cc error...Looks pretty simple...Can U solve this

    Hello all,    I have a simple scenario of sending the file from shared directory to FTP. When I execute the sceanrio..sender is picking up the file ..No issues in SXMB_MONI...but when I checked in the message monitoring...at adapter level for file re

  • Imported photos have error

    in Lightroom 1.4 running on Mac OS X v10.5 importing from Olympus E-510, Out of 113 photos imported, 2 photos have an error in that the whole photo is imported but these 2 photos also have the quarter-size version of the photo in upper left corner. I

  • Turning off Compressor background processing

    My iMac keeps hanging due to something with compressor or QMaster.. It just runs soooo slow. If I launch the Process Manager, it shows the CompressorProcess.. (something or other) in red and once I force quit it, everything runs fine.. until a little

  • Install and run windows on/from external 3.0 usb

    i installed windows 7 x64 ultimate on an external usb hard disk with the help of wintousb and now i can boot into windows from it. so far so good. my notebook has 1 usb 2.0 and 3 usb 3.0. the problem comes from the fact that even if it works, i can o

  • Modify query

    Hi all I have set up a UDF call 'invoice number' on the AR invoice document header to automatically populate the invoice number. Below is the query i have used SELECT $[$8.0.0] I need to modify this query so that it puts  a letter eg: D infront of th