Questions tagged [automation]

Automation is the process of having a computer do a repetitive task or a task that requires great precision or multiple steps, without requiring human intervention.

301
votes
3answers
461k views

How to pass an argument to a PowerShell script?

There's a PowerShell script named itunesForward.ps1 that makes the iTunes fast forward 30 seconds:$iTunes=New-Object -ComObject iTunes.Applicationif ($iTunes.playerstate -eq 1){$iTunes....
223
votes
12answers
91k views

OSX bash, 'watch' command

I'm looking for the best way to duplicate the Linux 'watch' command on Mac OSX. I'd like to run a command every few seconds to pattern match on the contents of an output file using 'tail' and 'sed'. ...
189
votes
26answers
412k views

Typing Enter/Return key in Selenium

I'm looking for a quick way to type and Enter or Return key in Selenium. Unfortunately the form I'm trying to test (not my own code so I can't modify) doesn't have a Submit button. When working with ...
183
votes
13answers
57k views

How can you automatically remove trailing whitespace in vim

I am getting 'trailing whitespace' errors trying to commit some files in git.I want to remove these trailing whitespace characters automatically right before I save python files.Can you configure ...
158
votes
14answers
29k views

NAnt or MSBuild, which one to choose and when?

I am aware there are other NAnt and MSBuild related questions on Stack Overflow, but I could not find a direct comparison between the two and so here is the question.When should one choose NAnt ...
145
votes
15answers
44k views

WatiN or Selenium? [closed]

I'm going to start coding some automated tests of our presentation soon. It seems that everyone recommends WatiN and Selenium. Which do you prefer for automated testing of ASP.NET web forms? Which of ...
143
votes
5answers
58k views

Casperjs/PhantomJs vs Selenium

We are using Selenium to automate our UI testing. Recently we have seen majority of our users using Chrome. So we wanted to know - pros and cons of using PhantomJS vs Selenium:Is there any real ...
119
votes
10answers
64k views

How do you automate Javascript minification for your Java web applications?

I'm interested in hearing how you prefer to automate Javascript minification for your Java web apps. Here are a few aspects I'm particularly interested in:How does it integrate? Is it part of your ...
100
votes
6answers
75k views

How to remove unused imports in Intellij IDEA on commit?

Is there a way to remove unused imports in Intellij IDEA on commit?It is not very optimal to do it manually, CTRL + ALT + O helps but it's still manual.
94
votes
13answers
66k views

R command for setting working directory to source file location in Rstudio

I am working out some tutorials in R. Each R code is contained in a specific folder. There are data files and other files in there. I want to open the .r file and source it such that I do not have to ...
90
votes
7answers
69k views

Choosing a Windows automation scripting language. AutoIt vs Autohotkey [closed]

I need to choose a Windows automation scripting language. Which one do you recommend; AutoIt, AutoHotkey, or an other?I have read "An AutoIt / AutoHotkey comparison". Interesting history, but ...
88
votes
13answers
78k views

How can I automate the “generate scripts” task in SQL Server Management Studio 2008?

I'd like to automate the script generation in SQL Server Management Studio 2008.Right now what I do is :Right click on my database, Tasks, "Generate Scripts..."manually select all the export ...
82
votes
11answers
191k views

How to copy a file to a remote server in Python using SCP or SSH?

I have a text file on my local machine that is generated by a daily Python script run in cron. I would like to add a bit of code to have that file sent securely to my server over SSH.
80
votes
7answers
145k views

Matlab: Running an m-file from command-line

Suppose that;I have an m-file at location:C:\M1\M2\M3\mfile.mAnd exe file of the matlab is at this location:C:\E1\E2\E3\matlab.exeI want to run this m-file with Matlab, from command-line, for ...
79
votes
15answers
33k views

Automatically create an admin user when running Django's http://stackoverflow.com/manage.py syncdb

My project is in early development. I frequently delete the database and run manage.py syncdb to set up my app from scratch. Unfortunately, this always pops up:You just installed Django's auth ...
78
votes
11answers
126k views

Microsoft.Office.Core Reference Missing

Using the example provided in codeproject I am struggling to work out where I can find the reference to the library Microsoft.Office.Core. I am getting the error "The referenced component 'Microsoft....
78
votes
5answers
421k views

automatically execute an Excel macro on a cell change

How can I automatically execute an Excel macro each time a value in a particular cell changes?Right now, my working code is:Private Sub Worksheet_Change(ByVal Target As Range)If Not Intersect(...
76
votes
14answers
23k views

How to automate development environment setup? [closed]

Every time a new developer joins the team or the computer a developer is using changes, the developer needs to do lots of work to setup the local development environment to make the current project ...
75
votes
10answers
130k views

Automated testing for REST Api [closed]

I would like to write an automated testing suite for a REST API. As we complete new services, we'd like to check to make sure all the previously created services are working as expected. Any ...
69
votes
5answers
106k views

How to use ADB to send touch events to device using sendevent command?

I am trying to send touch events to a device using AndroidDebugBridge, so that I can do some basic automation for UI tests. I have followed the discussion in LINK. I am able to use sendevent to ...
68
votes
2answers
34k views

What is Grunt for?

I'm trying to get into Grunt, which I am new to, but I do not understand its utility.I understand that it is a taskrunner. I understand that it can be used to do things like bundle, uglify, jshint, ...
68
votes
8answers
30k views

Dead code detection in legacy C/C++ project [closed]

How would you go about dead code detection in C/C++ code? I have a pretty large code base to work with and at least 10-15% is dead code. Is there any Unix based tool to identify this areas? Some ...
67
votes
14answers
106k views

Cron job to run on the last day of the month

I need to create a cron job that will run on the every last day of the month.I will create it from cpanel.Any help is appreciated. Thanks
66
votes
5answers
86k views

Have bash script answer interactive prompts

Is it possible to have a bash script automatically handle prompts that would normally be presented to the user with default actions? Currently I am using a bash script to call an in-house tool that ...
65
votes
14answers
62k views

headless internet browser? [closed]

I would like to do the following. Log into a website, click a couple of specific links, then click a download link. I'd like to run this as either a scheduled task on windows or cron job on Linux. I'm ...
64
votes
17answers
40k views

Auto-reload browser when I save changes to html file, in Chrome?

I'm editing an HTML file in Vim and I want the browser to refresh whenever the file underneath changes. Is there a plugin for Google Chrome that will listen for changes to the file and auto refresh ...
63
votes
6answers
37k views

Non-interactive method for dpkg-reconfigure tzdata

When I first setup an Ubuntu server, I make sure I aptitude install tzdata, then dpkg-reconfigure tzdata so that I set my timezone properly.I am trying to automate my server setup with a script, and ...
63
votes
7answers
158k views

How can I login to a website with Python?

How can I do it? I was trying to enter some specified link (with urllib), but to do it, I need to log in.I have this source from the site:<form id="login-form" action="http://stackoverflow.com.mevn.net/auth/login" method="post"...
61
votes
7answers
47k views

How to automate documentation of a REST API (Jersey Implementation) [closed]

I have written a pretty extensive REST API using Java Jersey (and JAXB). I have also written the documentation using a Wiki, but its been a totally manual process, which is very error-prone, ...
61
votes
4answers
17k views

Don't make me manually abort a LaTeX compile when there's an error

As suggested here, latexmk is a handy way to continually compile your document whenever the source changes. But often when you're working on a document you'll end up with errors and then latex will ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,