From: BlaisorBlade <blaisorblade_spam@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] [PATCH] Starting a command inside UML from mconsole
Date: Sat, 13 Sep 2003 18:20:45 +0200 [thread overview]
Message-ID: <200309131820.45833.blaisorblade_spam@yahoo.it> (raw)
I'm writing a patch which adds a new command to the mconsole ones:
exec nomeprog args
which starts a new program with root privileges. I've already done the hard
part(starting the program) and it seems to basically work(no crash still),
which is done mostly reusing code from kernel/kmod.c; I'll post the patch
only when I'll have written also the simple part, i.e., the code to parse the
command-line.
Reason for this: time ago, someone requested how to execute a command from
mconsole. The discussion ended up by saying "use cad, after having changed
the related line in /etc/inittab". The command needed was the one to poweroff
the PC, but this applies generally. Since that thread showed that running
commands without logging in is something needed, I decided to implement it.
I'd like a discussion about this(how much interest in this there is,
suggestions, requests). Especially:
- is the ability to read arguments with spaces(within quotes) needed even for
the program name?
About the way I'm doing it, I'll ask when the true patch is ready(it's just
too young, so I want to study more before making you lose your time).
Thanks for the attention.
--
cat <<EOSIGN
Paolo Giarrusso, aka Blaisorblade
Linux Kernel 2.4.21/2.6.0-test on an i686; Linux registered user n. 292729
EOSIGN
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next reply other threads:[~2003-09-13 16:19 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-13 16:20 BlaisorBlade [this message]
2003-09-13 19:48 ` [uml-devel] [PATCH] Starting a command inside UML from mconsole Matt Zimmerman
2003-09-14 18:50 ` BlaisorBlade
2003-09-14 20:33 ` Henrik Nordstrom
2003-09-15 17:12 ` BlaisorBlade
2003-09-14 2:33 ` Jeff Dike
2003-09-14 6:30 ` Matt Zimmerman
2003-09-14 6:45 ` Russell Coker
2003-09-14 7:59 ` Steve Schnepp
2003-09-14 13:50 ` Jeff Dike
2003-09-14 16:36 ` Matt Zimmerman
2003-09-14 17:10 ` BlaisorBlade
2003-09-14 17:45 ` Michael Richardson
2003-09-14 20:28 ` Henrik Nordstrom
2003-09-14 20:32 ` Michael Richardson
2003-09-15 7:31 ` Ulf Bartelt
2003-09-15 9:20 ` Henrik Nordstrom
2003-09-16 18:27 ` BlaisorBlade
2003-09-17 17:39 ` BlaisorBlade
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200309131820.45833.blaisorblade_spam@yahoo.it \
--to=blaisorblade_spam@yahoo.it \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox