Hi,

Looking the 'help' output of mconsole_uml I've discovered the following:

   exec <command> - runs the specified command through /bin/sh -c

This is a wonderfull feature! I wonder when it was included (old versions of
uml_mconsole doesn't include it, and even the documentation in
http://user-mode-linux.sourceforge.net/mconsole.html seems to be outdated).
For reference: my uml_mconsole is the one that comes with Debian pacakge
uml-utilities version 20040406-1.

However, I've tried to use the feature:

(/root/.vnum) exec "echo hello > /tmp/foo"
OK The command has been started successfully.

but, in spite of the message, it seems not being working because the file
"foo" doesn't get created in the virtual machine filesystem.

Googling for "uml_mconsole exec", I found the following at
http://www.user-mode-linux.org/~blaisorblade/faq.html:

"What's Mconsole exec? It adds the "exec" command to uml_mconsole; it allows
you to start an arbitrary command through mconsole. It will be passed to
/bin/sh -c, so you have all the shell power at hand. It must be enabled when
compiling the kernel (because you might not want to allow this to the host
admin)."

Reading that, I think that the problem could be my UML kernel is not
compiled with the propeer enabling configuration option. What should I look
for in the './linux --showconfig' to check it? Or maybe I'm using a wrong
syntaxis (for example, the quotes that encloses the echo command are
hurting)?

Any information regarding uml_mconsole exec is really welcome. Thank is
advance!

Best regards,

--------------------
Fermín Galán Márquez
CTTC - Centre Tecnològic de Telecomunicacions de Catalunya
Parc Mediterrani de la Tecnologia, Av. del Canal Olímpic s/n, 08860
Castelldefels, Spain
Room 1.02
Tel : +34 93 645 29 12 
Fax : +34 93 645 29 01
Email address: [EMAIL PROTECTED] 

PD. Just for curiosity, when the exec feature was added to uml_mconsole?


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to