Running Bash Shell Script from Gnome Desktop

Msquared sub1.fedoralist at msquared.id.au
Mon Aug 7 10:00:46 UTC 2006


On Mon, Aug 07, 2006 at 12:23:38AM -0700, Keith wrote:

> Yes I do have that line on the top of the script.

Since the script is trivial, you could write it in C.  If you don't know
C, call it from this trivial C program:

  #include <stdlib.h>
  main(){ system("thing.sh"); }

Replace "thing.sh" with the name of your shell script, name the C file
something like "thing.c" and build "thing" from it like so:

  cc -o thing thing.c

Regards, Msquared...




More information about the fedora-list mailing list