Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8474503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:38:40+00:00 2026-06-10T17:38:40+00:00

I have an executable that needs to process records in the database when the

  • 0

I have an executable that needs to process records in the database when the command arrives to do so. Right now, I am issuing commands via TCP exchange but I don’t really like it cause
a) queue is not persistent between sessions
b) TCP port might get locked

The idea I have is to create a folder and place files in it whose names match the commands I want to issue

Like:

1.23045.-1.1
2.999.-1.1

Then, after the command has been processed, the file will be deleted or moved to Errors folder.

Is this viable or are there some unavoidable problems with this approach?

P.S. The process will be used on Linux system, so Antivirus problems are out of the question.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T17:38:41+00:00Added an answer on June 10, 2026 at 5:38 pm

    Yes, a few.

    First, there are all the problems associated with using a filesystem. Antivirus programs are one (though I cannot see why it doesn’t apply to Linux – no delete locks?). Disk space, file and directory count maximums are others. Then, open file limits and permissions…

    Second, race conditions. If there are multiple consumers, more than one of them might see and start processing the command before the first one has [re]moved it.

    There are also the issues of converting commands to filenames and vice versa, and coming up with different names for a single command that needs to be issued multiple times. (Though these are programming issues, not design ones; they’ll merely annoy.)

    None of these may apply or be of great concern to you, in which case I say: Go ahead and do it. See what we’ve missed that Real Life will come up with.

    I probably would use an MQ server for anything approaching “serious”, though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a C# program that needs to spawn a .BAT command file during
I have a command line executable that is run from a C# class library.
My embedded projects have a post-process step that replaces a value in the executable
I have a Java program that needs to call the same external executable 6
I have a maven build process that publishes executable jars and their tests to
I have an executable that I call using the shell command: Shell (ThisWorkbook.Path &
Right now i have a batch job I wrote that calls another file and
So we have a java process that runs as a windows service. It needs
The Problem: In have a process that builds our executable. Before running the build
I have a Win32 service, that needs to run a .NET executable on service

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.