I have created a script which runs a certain function. After running that certain function, it calls another script which runs another function. It's working perfectly. HOWEVER, I have called the second script with this line of code:
( exec "/home/sh0/folder/folder2/folder3/secondScript" )
What if I were to run my script on a different machine with totally different file paths? Is there a way to call a script on any machine without worrying about the file path?
Also, all my scripts are located in the same directory which would be 'folder3'
Thanks in advance!
folder3/secondScriptcould be different on different machines? Or do you instead mean that your user's home (perhaps/home/sh0/folder) directory is different on every machine, but the relative path remains the same?