### daemon - lists and starts scripts from /etc/rc.d ### may be useful under Slackware use strict; my $rc_dir = q|/etc/rc.d|; my @coms = grep {-f && -x} glob "$rc_dir/*"; my %coms; my $com; @coms = grep{/.{2,}/} map {s|.+/rc\.(.+?)\W*$|$1| and $_} @coms; $" = $/ and die "@coms", $/ unless @ARGV; $com = shift; @coms{@coms} = (); exists $coms{$com} or die qx{"$rc_dir/rc.$com"},$/; print for qx{"$rc_dir/rc.$com" "@ARGV"};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: startup scripts under Slackware
by gellyfish (Monsignor) on Jun 11, 2006 at 19:47 UTC | |
|
Re: startup scripts under Slackware
by ruzam (Curate) on Jun 12, 2006 at 00:03 UTC | |
by jpeg (Chaplain) on Jun 12, 2006 at 00:55 UTC | |
by sh1tn (Priest) on Jun 12, 2006 at 05:43 UTC | |
|
Re: startup scripts under Slackware
by ForgotPasswordAgain (Vicar) on Jun 11, 2006 at 16:20 UTC | |
by sh1tn (Priest) on Jun 11, 2006 at 19:10 UTC |