I created a simple bash script called "myscript.h". I gave it the .h extension for reasons that I will not disclose here. This bash script lives in "/ var / ftp / something with spaces".
From the terminal, I can enter "/ var / ftp / something with spaces / myscript.h", and the script works fine.
However, from my C program, I print
system("/var/ftp/something with spaces/myscript.h")
and he complains that "/ var / ftp / something" was not found. I changed my system call to the following slashes:
system("/var/ftp/something\ with\ spaces/myscript.h")
However, he still complains that "/ var / ftp / something" was not found. Assuming I can't change the directory names, how can I get around this?
Thank!