Questions tagged [batch-processing]

51 questions
1
vote
1 answer

Having issues with mkdir, robocopy, to date\time folders in a looping batch file

I have searched everywhere but cannot find a solution. Im unsure what is going on here but I desperately need some help in regards to this issue, Im running a batch file (Script for a game Server monitor/crash restarter). I decided to add a Log file…
1
vote
1 answer

Windows batch file scripting: how to get directory named with latest date (yyyy-mm-dd format)?

I have a directory with many subdirectories. Each subdirectory is named with the yyyy-mm-dd format. I'm writing a Windows batch file and I need to grab the directory name with the most recent date and put that string into a variable. The last…
slantalpha
  • 305
  • 1
  • 5
  • 17
1
vote
1 answer

How do I prevent additional jobs from a given user from starting?

With the Slurm workload manager how can I prevent more jobs from user bob from starting? Existing jobs should continue to run. The user should be able to submit more jobs but they shouldn't be able to start.
1
vote
2 answers

Containers for HPC batch processing

We are facing the problem that a lot of people want to run different scientific software on our high performance computing cluster. Every user requires a different set of libraries and library versions and we do not want the administrator to deal…
J. Doe
  • 13
  • 3
1
vote
3 answers

windows start nginx and php-fpm in background in the same bat

I'm trying to create a bat file on windows 10 to start the nginx and php-fpm in background. At the moment I can do that but the command window (black window) remains open. If I close the window the php-fpm is terminated as well. here is what I've…
Doua Beri
  • 113
  • 1
  • 5
1
vote
2 answers

How to tell if a DOS batch script is being run by task scheduler?

How can a DOS Batch command file determine if it is being run by Task Scheduler?
Dan
  • 51
  • 1
  • 5
1
vote
1 answer

How to catch "The system cannot find the file" within For /F loop?

How to catch "The system cannot find the file" within For /F loop? I would like my code to do the following: 1 - Search for the specified file 2 - If file not found, handle the "The system cannot find the file" by sleeping for 10 seconds and…
1
vote
1 answer

Will a Scheduled Task On Windows Server 2008 R2 work correctly if windows are opened and closed?

I have a batch script that I am currently running on my own Windows 7 computer as a scheduled task. The task runs nightly when my computer is locked. The task launches an Progress OpenEdge session which exports data to a file. Once that is done,…
1
vote
1 answer

Batch password change of all email in a cPanel account?

Does anyone know of a way to reset the password of one or more email addresses in a cPanel account from the command line?
Amged Rustom
  • 131
  • 6
1
vote
0 answers

My transactional overnight batch has spiked in duration

I have an overnight batch run which is transactional...picking up data doing some small calculations and putting it somewhere else and it was finishing around 3am every day for the last 2 months. Now it's spiked and finishes at just after 4.15am…
Cheetah
  • 241
  • 3
  • 8
1
vote
2 answers

Low priority batch processes on live Mongo database

We want to run MapReduces on our live Mongo database, mainly so that we can extract metrics. However, we've had some bad outages caused by these MRs bogging down the Mongo server (in particular 100% disk IO). We think it's due to missing indexes. Is…
1
vote
3 answers

Is there a way to see the path of a program executed from the Windows CLI?

If I type a command in the prompt, the command processor searches it in current path, and then (if not found) in the paths listed in PATH environment variable. So is there a way to easily know in which exactly path my typed command was found? It…
moudrick
  • 111
  • 4
1
vote
1 answer

How to batch edit a list of files?

I have a list of files where I need to remove some lines that have been added yesterday by a spambot. The section I want to remove looks like this: ^M That section seems to have been appended to…
Peter Kruithof
  • 87
  • 1
  • 11
0
votes
1 answer

Several short consecutive SSH connections

Imagine performing a short repetitive process, which ends by doing a short lived SSH connection to some server (e.g. transferring a newly generated file via SFTP). This means that there will be a lot of short lived consecutive SSH connecting and…
user2340939
  • 103
  • 2
0
votes
1 answer

Server load handling : One single batch request vs multiple requests

I was talking to a developer about different apis for create, update and delete and he was saying that it was better to have a single batch request to server to do operations like create, update and delete than to have multiple requests for each…