Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-07-2013, 05:01 AM
|
#1
|
Member
Registered: Sep 2005
Location: UK
Distribution: Slackware
Posts: 226
Rep:
|
Direct output of mkinitrd command generator to shell
Hi All,
Is there a way of directing/piping the output of mkinitrd_command_generator.sh directly to the shell so that I don't need to type out the resultant command?
|
|
|
11-07-2013, 05:17 AM
|
#2
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,287
Rep:
|
Just pipe it to bash
|
|
|
11-07-2013, 05:17 AM
|
#3
|
Member
Registered: Jan 2008
Posts: 426
|
Use pipe to bash:
# /usr/share/mkinitrd/mkinitrd_command_generator.sh parameters_if_needed | bash
|
|
|
11-07-2013, 05:50 AM
|
#4
|
Member
Registered: Aug 2007
Distribution: Slackware64 13.37
Posts: 215
Rep:
|
Or put the command inside "$( )" like so:
Code:
$(/usr/share/mkinitrd/mkinitrd_command_generator.sh -r)
|
|
|
11-07-2013, 05:59 AM
|
#5
|
MLED Founder
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453
|
I always open /etc/mkinitrd.conf with Vim, paste the output of mkinitrd_command_generator.sh into the configuration file (:r !/usr/share/mkinitrd/mkinitrd_command_generator.sh) and then edit it.
|
|
|
11-07-2013, 07:09 AM
|
#6
|
LQ 5k Club
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,491
|
Highlight the output with the left mouse button held down, then paste with the middle button. Maybe uncool and uncouth, but works for me.
|
|
1 members found this post helpful.
|
11-07-2013, 07:14 AM
|
#7
|
Member
Registered: Mar 2009
Location: Gold Coast, Queensland, Australia
Distribution: Slackware
Posts: 94
Rep:
|
Quote:
Originally Posted by allend
Highlight the output with the left mouse button held down, then paste with the middle button. Maybe uncool and uncouth, but works for me.
|
+1 (must be an Australian thing )
|
|
|
11-07-2013, 04:27 PM
|
#8
|
Member
Registered: May 2008
Location: Republic of Texas
Posts: 393
Rep:
|
Quote:
Originally Posted by 01micko
+1 (must be an Australian thing )
|
long live the lazy!! (ie, I do exactly the same)
|
|
|
11-07-2013, 04:39 PM
|
#9
|
Senior Member
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,884
|
Quote:
Originally Posted by allend
Highlight the output with the left mouse button held down, then paste with the middle button. Maybe uncool and uncouth, but works for me.
|
+2, 60% of the time, it works Everytime!
|
|
|
11-07-2013, 10:26 PM
|
#10
|
Member
Registered: Mar 2007
Distribution: Slackware
Posts: 264
Rep:
|
# $(/usr/share/mkinitrd/mkinitrd_command_generator.sh) FTW
|
|
|
11-08-2013, 06:34 AM
|
#11
|
LQ Newbie
Registered: May 2012
Location: Brazil
Distribution: Slackware Linux
Posts: 6
Rep:
|
# /usr/share/mkinitrd/mkinitrd_command_generator.sh -c > /etc/mkinitrd.conf
# mkinitrd -F
So you can keep track of your configs.
|
|
1 members found this post helpful.
|
11-08-2013, 08:19 AM
|
#12
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Rep:
|
Quote:
Originally Posted by allend
Highlight the output with the left mouse button held down, then paste with the middle button. Maybe uncool and uncouth, but works for me.
|
Same here.
|
|
|
All times are GMT -5. The time now is 01:45 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|