Spawn: Command not found

Hi all,

I want to run the following command from my main prompt :

[root@node]# spawn bash

but I get the following error:

spawn: Command not found.

For this to work , I first have to go into expect.

[root@node]#expect
expect1.1>spawn bash
spawn bash
564
expect1.2>

Is there any way I can skip the expect command and use spawn commands directly from the prompt ?

spawn is not a shell command, but internal to expect .

What are you trying to achieve by spawning a shell?