Search Results

Search: Posts Made By: gp_singh
36,187
Posted By gp_singh
How to return the value from the called shell script to the calling sh script
Hi all,
I have two ksh scripts

#sample1.sh
#!/bin/ksh
. ./sample2.sh
echo $fileExist

#sample2.sh
#!/bin/ksh
func()
{
i=1
return $a
}
func
echo $?

Here how should I return the...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 03:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy