Results 1 to 2 of 2

Thread: What's the significance of putting "start_services &" within a subshell?

  1. #1

    What's the significance of putting "start_services &" within a subshell?

    Hi

    I'm looking at the following command in the /etc/init.d/knoppix-autoconfig boot script:

    ( start_services & ) >/dev/tty"$LOG_CONSOLE" 2>&1 # Not in job list

    It is in the context of

    # Start services (especially /etc/rc.local) in background
    addtask "bg"; addprogress "Starting background services..."
    ( start_services & ) >/dev/tty"$LOG_CONSOLE" 2>&1 # Not in job list

    The "start_services" is a function within the "knoppix-autoconfig" script.

    Could you tell me what the significance is of putting the "start_services &"
    WITHIN A SUBSHELL (the (...) brackets)?

  2. #2
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    It's the way to get the the function "start_services" running in the background → "&".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Vintage Micro Innovations 2.1 Channel Speaker System picture

Vintage Micro Innovations 2.1 Channel Speaker System

$22.99



Vintage Crayola Printer Paper 1990s Nostalgia Sealed picture

Vintage Crayola Printer Paper 1990s Nostalgia Sealed

$12.00



Vintage Dot Matrix Printer Contin Feed Paper 8.5 x 11.  Lots of 5 to 250 sheets. picture

Vintage Dot Matrix Printer Contin Feed Paper 8.5 x 11. Lots of 5 to 250 sheets.

$4.00



Vintage  Circuit Board Steampunk Art picture

Vintage Circuit Board Steampunk Art

$10.00



Vintage Tandy 1000 SL, Powers On, As-Is, READ picture

Vintage Tandy 1000 SL, Powers On, As-Is, READ

$85.00



Vintage Compute Books Beginners Guide to Buying a Personal Computer  ** RARE** picture

Vintage Compute Books Beginners Guide to Buying a Personal Computer ** RARE**

$24.99



Vintage Apple Macintosh M2740 Powerbook 150 with AC Adapter - For Parts picture

Vintage Apple Macintosh M2740 Powerbook 150 with AC Adapter - For Parts

$39.95



BlueSCSI V2 WiFi (Desktop) Modern Storage for Vintage Computers Latest Model picture

BlueSCSI V2 WiFi (Desktop) Modern Storage for Vintage Computers Latest Model

$53.50



Vintage Apple Unidisk A9M0104 5.25

Vintage Apple Unidisk A9M0104 5.25" External Floppy Disk Drive - Untested

$49.95



Vintage IBM PS/2 Model L40 SX Laptop  UNTESTED/NO CORD picture

Vintage IBM PS/2 Model L40 SX Laptop UNTESTED/NO CORD

$225.00