executable

How do I get my executable's location using Fortran?

Hi everyone, I have a program written in Fortran 90/95; after invocation it always reads a certain data file. For the users' convenience I'd like them to just have to place this file in the same directory as the executable itself, without making them set some environment variable/extend $PATH, and without forcing them to use a certain d...

One executable that starts as console or win32 service based on command line parameter in .NET?

Is it possible to write executable application in .net that can be registered as Win32 Service and operate as service but for debug purposes can be launched as console application with console output (as performance counters, text log files are not very useful for monitoring) Or shall I put application logic (Application class) in a se...

How to make a shell script run in Mac when double clicking it ?

Hello , I have created a shell script to run a jar file in Mac : #!/bin/sh java -Xmx512m -jar test.jar; I have renamed this script "app.command" to run directly when double clicking it. And i have applied "chmod +x" command to it to have executable permissions. Now when double clicking this script, i get "Unable to access jarfile te...

Can i make a shell script executable in Mac without chmod stuff ?

Hello , I have seen that i can use chmod +x command in Mac to make a shell script executable. This works fine, but i have noticed that i have to do the same thing every time this shell script file is copied to another Mac computer. Is there a way to make the shell script executable by default when double clicked, without such command ....

Creating multiple threads and invoking other exectuables in Cygwin through system()?

I am working on a project in Cygwin. In an attempt to create multiple threads in C, and each thread calls another executable through the command line using the system() function, it turns out things are not working properly. Specifically, the code I have is like this: #include <pthread.h> #include <stdio.h> #define NUM_THREADS 5 vo...