automating script via GIT for windows

06
2013-08
  • Questioner

    I'm running GIT for windows 1.7.11, I have a shell script that I want to automate, I am not willing to bog down my network running the script during the day and I have no desire to come to work at 1:04 am to run the script. I know you can cronjob in Linux but it doesn't work in GIT, so how do I run my script in GIT without touching it, every day of every week, of every month at 01:04?

    I would like to run everything through GIT. Google hasn't been that helpful in what I need to do. Any ideas other than running a Linux box would be super helpful.

  • Answers
  • swref

    You can use Windows Task Scheduler to do this.

  • adymitruk

    I would highly recommend keeping a VM or box for Linux for Git (and other things). There is way more scriptability there. Take a look at gitolite for more admin stuff on git hosted internally. On windows it's an uphill battle. Git is designed to run on Linux. Use it on that platform if you can.


  • Related Question

    automation - Automating keystrokes and actions in Windows
  • Jonathan Parker

    I want to be able to either record key strokes or enter them in manually and be able to replay them.

    For example:

    Copy

    1. Manually highlight the text I want to copy.

    2. Ctrl+C

    3. Alt+Tab
      Manually position the cursor where I want to paste the text.

    4. Ctrl+V

    5. Alt+Shift+F10

    6. T

    This would allow me to copy text into MS Word and set the formatting of the text.

    Are there any tools for this?


  • Related Answers
  • mutewinter

    AutoHotKey can be used to make hotkeys that do what you want. It even has a recorder to ease the process of creating your script.

    Here's a quick example I threw together based on what you're trying to do:

    ; The X, Y coordinates inside your target window to click for pasting
    targetX = 0
    targetY = 0
    
    !^v::
    {
    Send, {CTRLDOWN}c{CTRLUP}{ALTDOWN}{TAB}{ALTUP}
    WinWait, Microsoft Word, 
        IfWinNotActive, Microsoft Word, , WinActivate, Microsoft Word, 
        WinWaitActive, Microsoft Word, 
        MouseClick, left,  %targetX%, %targetY%
        Sleep, 100
        Send, {CTRLDOWN}v{CTRLUP}
        Send, {ALTDOWN}{SHIFTDOWN}{F10}{SHIFTUP}{ALTUP}{SHIFTDOWN}t{SHIFTUP}
    }
    

    This script makes Ctrl + Alt + V a hotkey that executes the above script.

  • raspi

    Check out AutoIt

  • Bruce McLeod

    You can automate anything with windows, it just depends on what your needs are and your skill level.

    As recommended autoit is probably the entry level of a category of tools that leads up to full blown commercial automation tools which are primarily used for testing applications.

  • pgs

    You can do basic macros (recorded keystrokes & delays) with a Logitech G15 keyboard.

  • Joe Schmoe

    I've been using Macro Express for this sort of thing for years.

    Good software, never had an issue with it - not free though.