I keep on getting two files with same name but the other has question mark in the end
y.ps
y.ps?
both the files didn’t show the expected result.
but when I run the command per line it’s working. But whenever I try to append new command to the existing figure I get a file with a question mark at the end.
I would like to make multiple lines of command but 2lines of command is not working in my environment, I can’t figure out
do you have an idea how to solve this?
Hi! Thank you for your reply. I am using a laboratory server with newly installed gmt5.4.4 version. I don’t have access to the installation option on the server. But I will consider that if I cant find a solution
You are welcome. I suspect an issue server. If I were you, I will try to find the way to upgrade GMT. If you want to learn GMT, it is not good to learn and old version (5.4.4 is from sep-2018). Maybe you can try it online?
The questionmark etc makes we wonder if you are using a rich-text editor to make those script and run them. Such files will have formatting hidden characters and that would explain the troubles.
yes. I write the commands in a notepad using Windows PC, then saved it with a .sh file format. Then, transfer the file to the server and run it in server terminal using “bash 1.sh”.
Thank you! This might be the issue. I used the built-in notepad on Windows PC, I also try Notepad++ to prepare the .sh file. What program should I use to prepare the .sh file?
I have not used Windows PC editors much, but it is always safer to write Linux scripts using a Linux editor such as “vi” to avoid any special characters being included. On the Mac, there is usually an option to “save as plain text” that removes most special formatting.