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 4006254
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:29:34+00:00 2026-05-20T08:29:34+00:00

I am using Sphinx quite often. There is one index that calls a stored

  • 0

I am using Sphinx quite often. There is one index that calls a stored procedure with one param as input. The param can be any number from 1 to 10 and each returs different results. Since it would make sphinx config quite crowded, even with inheritance. So I thought I will use shebang line at the start of sphinx config file (stored as sphinx.py now). This works great in production enviroment since it runs on Ubuntu. But I want to run it on my local machine as well, but here is the problem called – Windows. Since I have cygwin as well, I tried to run it via cygwin, but it is the same – nothing happens.

I tried to run with both cygwin paths and windows paths, but both get ignored or treated as comments. From what I have read it should be working with cygwin. Could it be that it does not work since I have to call an exe file?

With:

$ ./indexer.exe sphinx.conf

I have tried to run it as perl script, bash script (via cygwin) and it gets ignored either way.

Is there a reliable way to run shebang lines on Windows? Or force cygwin to at least spit an error in my face… Even hacks are good since its just my development machine.

Any help is appreciated

  • 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-05-20T08:29:35+00:00Added an answer on May 20, 2026 at 8:29 am

    All a shebang line does is tell the unix system() call what interpreter to use. If you specify indexer.exe then you are saying that you want it to use indexer.exe, so that is what it will use.

    If you run Indexer.exe, indexer.exe will decide what to do.

    Does Indexer.exe understand shebang lines? Or not?

    Perl, as a convenience, will read the shebang line, and if it isn’t Perl, it will and call the other program for you.

    So maybe call Perl instead of Indexer, and it will do the right thing?

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

Sidebar

Related Questions

We have a database that we would like to index with Sphinx search engine.
searching a photo by dominant colors using mysql is quite simple. assuming that the
I'm using Sphinx to search MySQL. One of the results Sphinx returns for a
So I've been using Sphinx with a rails project lately, I want to provide
I'm using Sphinx (v. 0.99) in my Java application. I also use it with
I'm using Hudson to generate the documentation for a Python project using Sphinx. This
I'm using rails 3 and I have two models, venues and areas where each
I have my database segmented in 8 parts, where each part contains database with
source logs { type = mysql sql_host = localhost sql_user = root sql_pass =
I'm planning to develop a web application which will have many static pages (about,

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.