-2

I simply want to source KSH with:

. ./.kshrc

within an expect script.

Is it possible to source KSH and run a KSH command within an expect script?

NickaBrick
  • 81
  • 1
  • 12

1 Answers1

0

Sure, just launch a ksh interpreter to run it in:

exec ksh -c {. ./.kshrc; some_command}
glenn jackman
  • 238,783
  • 38
  • 220
  • 352