Hi All - I wrote a script that executes a simulation executable with an input file as the argument. The script looks like
Code:
#/bin/bash
nohup $1 $2 > $2.nohup &
where $1 is the executable that runs the simulation and $2 is the input file. Now what I use this for is I call the script from a RealBasic program so that I can run simulations from my own GUI. The problem I am having is that the bash script doesn't recognize paths that have spaces in them. For example, if I run the script with $2 set to "/Users/DanSandberg/Desktop/myfile.inp" it works just fine but "/Users/DanSandberg/Desktop/my\ file.inp" fails. The shell returns
Quote:
nohup: $2.nohup ambiguous