I have this test sh script that I can run on my computer that is supposed to produce nothing as output if everything works. I've used scp to transfer everything in the folder I'm working in to a remote server and when I run it on the remote server I get errors like
egrep: Unmatched ) or \) egrep: Unmatched ) or \) ./script.sh: line 229: ./helperScripts/script2.pl: No such file or directory
I didn't get these errors on my computer and when I check to see it script2.pl is in helperScripts it's in there
When i run sh -version in the remote server I get
GNU bash, version 4.1.2(1)-release (i686-redhat-linux-gnu) Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
When I run sh -version on my computers terminal I get
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15) Copyright (C) 2007 Free Software Foundation, Inc.
I don't know if this matters. Does anyone know what I can do, I'd rather not have to rewrite things in my script because I've been trying to do that and it appears that more problems continue to come up when I make the new ones