I have a very basic question. I have a shell file test.sh that prints let's say Yeah to a file called output.txt:
#!/bin/sh
echo "Yeah" > output.txt
I am running the Run command from the notebook:
Run["sh test.sh"]
But it is not creating the file output.txt. Can anyone tell me please what is going wrong?

Run["sh test.sh"]I get an output 0, and theoutput.txtshows up in the same directory. – Jason B. Mar 08 '16 at 16:212016_ras_Gauss_multivariate/Bistable_traj/test.sh"] gives me an output 0 but no file named output.txt in the same directory – Sayak Mar 08 '16 at 16:28
Directory[]? Perhaps theoutput.txtfile is going somewhere in Mathematica's path? – Jason B. Mar 08 '16 at 16:32SetDirectory[]. I actually have a line in my/home/jason/.Mathematica/Kernel/init.mfile to saySetDirectory["~/Documents/Mathematica"];so that I always start in that directory – Jason B. Mar 08 '16 at 16:39