Results 1 to 3 of 3
Do any one how to fix the following error.
return: can only `return' from a function or sourced script
I have 3 scripts
submit_a.ksh
a.ksh
function.ksh
The submit_a.ksh is just ...
- 09-10-2009 #1Just Joined!
- Join Date
- Sep 2009
- Posts
- 4
How to fix "return: can only `return' from a function or sourced script"
Do any one how to fix the following error.
return: can only `return' from a function or sourced script
I have 3 scripts
submit_a.ksh
a.ksh
function.ksh
The submit_a.ksh is just a submit script which submits a.ksh at specific time using at command.
Inside a.ksh I refer to function.ksh to calculate some values, if there is an issue with the calculation I use "return 1" to exit the function and send me a notification about the error. While executing the submit script I am receiving the above error.
Appreciate inputs.
Thanks
- 09-10-2009 #2Just Joined!
- Join Date
- Sep 2009
- Posts
- 4
I am submitting the job using at command. While submitting it reports "warning: commands will be executed using /bin/sh". - (BASH)
Any one know how to change this so it picks /usr/bin/sh.
thanks
- 09-10-2009 #3


Reply With Quote
