Dear Freebsd
I have something strange problem happening any input would be great for some reason the Korn shell is not detecting the function that I am calling from awk Actual code excerpt is function dogdied { echo "Why the hell did you die in $1" } export dogdied RESTORE_LOCATION="/u03/oradata,/u01/app/oracle/oradata/,/u02/oradata" echo $RESTORE_LOCATION | awk -F, '{ for (i=1; i<=NF ;i++) { system ("dogdied $i") print $i } } ' ------------ Output looks like below ------------------------- [EMAIL PROTECTED]</u01/app/oracle>function dogdied
{ echo "Why the hell did you die in $1" }
[EMAIL PROTECTED]</u01/app/oracle> [EMAIL PROTECTED]</u01/app/oracle>export dogdied [EMAIL PROTECTED]</u01/app/oracle> [EMAIL PROTECTED]</u01/app/oracle>/oradata/,/u02/oradata" < [EMAIL PROTECTED]</u01/app/oracle> [EMAIL PROTECTED]</u01/app/oracle>echo $RESTORE_LOCATION |
awk -F, '{ for (i=1; i<=NF ;i++) { system ("dogdied $i") print $i } } '
sh: line 1: dogdied: command not found /u03/oradata sh: line 1: dogdied: command not found /u01/app/oracle/oradata/ sh: line 1: dogdied: command not found /u02/oradata [EMAIL PROTECTED]</u01/app/oracle> Any idea Thanks Dak _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"