I create a test.command file with contents
mono /Users/wlad2/Desktop-1_1/AdvancetsParser2.exe The file is located on the path /Users/wlad2/Desktop-1_1/AdvancetsParser2.exe . When you start the program, it starts reading the domen.txt file from the current folder, but when you start the file, for some reason it starts to refer to the root /Users/wlad2/ and look for the file there.

w2:~ wlad2)w2:~ wlad2, your home directory (~) is the current directory. accordingly, this property is inherited by the child process..2.exeand it tries to work with the~/domen.txt. What behavior did you expect? - aleksandr barakin