Questions tagged [batch-processing]

Batch-processing refers to programmatic execution with minimum human interaction.

Batch processing is a general term for frequently-used programs that are executed with minimum human interaction. Batch-process jobs are often scheduled to start up on their own, as resources permit. Historically and practically, this is integral to scripting; thus the well-known batch file.

Batch processing can as easily refer to performing a sequence of actions on a group (batch) of items, whether in software, manufacturing, agriculture, etc.

4013 questions
389
votes
36 answers

How do you convert an entire directory with ffmpeg?

How do you convert an entire directory/folder with ffmpeg via command line or with a batch script?
Eugene
  • 10,957
  • 20
  • 69
  • 97
219
votes
8 answers

Which HTTP status code means "Not Ready Yet, Try Again Later"?

I'm developing a RESTful API in which http://server/thingyapi/thingyblob/1234 returns the file (aka "blob") associated with item #1234 to download. But the request could be made before the file has been generated. It definitely will be available at…
JCCyC
  • 16,140
  • 11
  • 48
  • 75
137
votes
14 answers

Run all SQL files in a directory

I have a number of .sql files which I have to run in order to apply changes made by other developers on an SQL Server 2005 database. The files are named according to the following pattern: 0001 - abc.sql 0002 - abcef.sql 0003 - abc.sql ... Is there…
K.A.D.
  • 3,648
  • 3
  • 34
  • 35
124
votes
15 answers

Java 8 Stream with batch processing

I have a large file that contains a list of items. I would like to create a batch of items, make an HTTP request with this batch (all of the items are needed as parameters in the HTTP request). I can do it very easily with a for loop, but as Java 8…
Andy Dang
  • 1,649
  • 3
  • 14
  • 9
109
votes
8 answers

How to test if an executable exists in the %PATH% from a windows batch file?

I'm looking for a simple way to test if an executable exists in the PATH environment variable from a Windows batch file. Usage of external tools not provided by the OS is not allowed. The minimal Windows version required is Windows XP.
sorin
  • 161,544
  • 178
  • 535
  • 806
109
votes
8 answers

Change EOL on multiple files in one go

Is there any way in Notepad++ (or even with another tool) to change the line ending automatically on multiple files in one go? i.e. convert a mix of windows EOL (CRLF) and UNIX EOL (LF) files to be all Windows EOL (CRLF)
fduff
  • 3,671
  • 2
  • 30
  • 39
81
votes
6 answers

Difference between xcopy and robocopy

I'm kind of new to batch scripting. As a newbie I find both both of them useful while scripting What are the key differences between xcopy and robocopy?
tourist
  • 4,165
  • 6
  • 25
  • 47
68
votes
11 answers

How to close the command line window after running a batch file?

I've got a batch file. After it finished running, i.e. all command lines have been executed, the cmd.exe window stays open. However, I'd like to have it closed right after the batch file finishes its job. So far I've tried using the exit command…
Blitzcrank
  • 917
  • 2
  • 10
  • 19
68
votes
6 answers

Kill all detached screen sessions

When I execute screen -ls, I see the following. How can I kill all the detached sessions? There are screens on: 84918.ttys002.ros-mbp (Detached) 84944.ttys008.ros-mbp (Detached) 84970.ttys013.ros-mbp (Attached) …
Rose Perrone
  • 61,572
  • 58
  • 208
  • 243
47
votes
9 answers

What's the equivalent of Python's Celery project for Java?

I am trying to find an equivalent of Celery project for Java environment, I have looked at Spring Batch, but are there any better alternatives for distributed task queues. Thanks.
Zakiullah Khan
  • 1,445
  • 2
  • 15
  • 26
45
votes
1 answer

What is "epoch" in keras.models.Model.fit?

What is "epoch" in keras.models.Model.fit? Is it one gradient update? If it is more than one gradient update, then what is defining an epoch? Suppose I am feeding my own batches to fit. I would regard "epoch" as finishing to process entire training…
Dims
  • 47,675
  • 117
  • 331
  • 600
45
votes
2 answers

What is Spark Job ?

I have already done with spark installation and executed few testcases setting master and worker nodes. That said, I have a very fat confusion of what exactly a job is meant in Spark context(not SparkContext). I have below questions How different…
chaosguru
  • 1,933
  • 4
  • 30
  • 44
45
votes
11 answers

Script runtime execution time limit

My Google Apps Script is iterating through the user's Google Drive files and copying and sometimes moving files to other folders. The script is always stopped after certain minutes with no error message in the log. EDITOR's NOTE: The time limit…
43
votes
4 answers

Running a background Java program in Tomcat

Can anyone advise here? I have a situation where users will submit data mining requests interactively via a Java JSP and servlet to an application of mine which will dynamically work out association rules on data and more. As such a job may take a…
mr morgan
  • 461
  • 1
  • 6
  • 5
42
votes
7 answers

Batch update/delete EF5

What is the best way to deal with batch updates using (Entity Framework) EF5? I have 2 particular cases I'm interested in: Updating a field (e.g. UpdateDate) for a list (List) of between 100 and 100.000 Id's, which the primary key. Calling each…
Frank
  • 3,959
  • 4
  • 19
  • 24
1
2 3
99 100