can I run a exe which is at bin dir from my script.

Hello forum memebers.
I have command which is exe of C- program from my script.i am writing a script which is under path /abc/xyz/test.sh.
the script consist the command which is the exe of c-prog and the exe is present in the /abc/xyz/bin.if run the command from the /abc/xyz its running and if try to run from my script file its not running.
so can anyone please suggest me how to handle it.

Thanks in advance.
rajkumar_g

Please show us your script - the part where it tries to run the executable.

Watch the $PATH or use absolute path: /abc/xyz/bin/yourfile.exe

There are two ways.

1) First set your bin path to the $PATH env variable.

export PATH=$PATH:/abc/xyz/bin/

Then you can run the exe from your script by just calling the name.

2) Call the exe using the absolute path from the script