> --
> You received this message because you are subscribed to the Google Groups
> "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to
> mongodb-user...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/mongodb-user?hl=en.
>
What OS?
Seems to be working for me on linux&mac
After the NOTE screen - you have to hit enter to get a prompt - did
you try that?
On ubuntu as well.
After the NOTE screen - you have to hit enter to get a prompt - did
you try that?
$ (sleep 5; echo "foo") &
[1] 14533
$ foo
--
Richard
That's just a shell thing, a script won't have a problem with it.
Here's what happening:
(1) your shell forks and execs a new mongod process, and waits for that
process to exit.
(2) The new mongod process forks itself and exits.
(3) The shell now resumes and prints its prompt.
(4) The remaining mongod process prints some stuff as part of its
execution.
If you key in command into that terminal and hit enter, you should find
that the shell has been waiting for your input, even though the prompt
got lost somewhere. If you try connecting to the mongod from another
terminal, you should find that the mongod is running. If both of these
two things turn out to be the case, then we're just talking about a
goofy aesthetic issue. (Otherwise, something's really amiss.)
Regards,
Richard
terminal, you should find that the mongod is running. If both of these
two things turn out to be the case, then we're just talking about a
goofy aesthetic issue. (Otherwise, something's really amiss.)
What Python library are you using for ssh? I wonder if it's doing
something odd. By inspection, this invocation returns straightaway:
$ ssh localhost 'mongod --logpath /tmp/mongod.log --fork > /tmp/start.log'
--
Richard
Dan Yamins writes:
> So, you're correct that mongod IS running and that "enter" will
> release the prompt.
>
> However, for my purposes it's NOT a goofy aesthetic issue. In particular,
> I'm having mongod started by an automatic process that is triggered when new
> nodes are (automatically) added to my cluster (on amazon EC2). The way
> this works is basically that a certain python script opens an ssh session to
> the EC2, and then executes the mongod start command over that ssh
> connection. Whatever is causing "the prompt to get lost" is also causing
> this ssh connection to think that the command that I execute over it has not
> completed ... so it hangs. There's no way I can "press enter" to get it
> to move forward. This problem occurs whether or not the script runs the
> mongod start command from a script or at the prompt directly.
>
> What I *can* do is use an "execute_async" method instead of "execute", so
Dan,
What Python library are you using for ssh? I wonder if it's doing
something odd. By inspection, this invocation returns straightaway:
$ ssh localhost 'mongod --logpath /tmp/mongod.log --fork > /tmp/start.log'
On Wed, Aug 4, 2010 at 5:39 PM, Richard Kreuter <ric...@10gen.com> wrote:Dan,
What Python library are you using for ssh? I wonder if it's doing
something odd. By inspection, this invocation returns straightaway:
$ ssh localhost 'mongod --logpath /tmp/mongod.log --fork > /tmp/start.log'