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
  •  


Grandstream GS-HT802 2 Port Analog Telephone Adapter VoIP Phone & Device, Black picture

Grandstream GS-HT802 2 Port Analog Telephone Adapter VoIP Phone & Device, Black

$38.50



T-Mobile LineLink | Home Phone Device | WDL ML700 linelink ATA VOIP | HD Calls picture

T-Mobile LineLink | Home Phone Device | WDL ML700 linelink ATA VOIP | HD Calls

$29.99



Yealink SIP-T48S VoIP IP Phone Ultra-Elegant 7

Yealink SIP-T48S VoIP IP Phone Ultra-Elegant 7" Touchscreen PoE 16-Line HD Voice

$119.96



InnoMedia MTA8328-1N ATA SIP 2.0 VoIP Phone Line Telephony Adapter FXS HughesNet picture

InnoMedia MTA8328-1N ATA SIP 2.0 VoIP Phone Line Telephony Adapter FXS HughesNet

$16.99



CISCO CP-9971 VoIP IP Phone Color Touchscreen Wi-Fi w/ USB Camera, Charcoal NEW picture

CISCO CP-9971 VoIP IP Phone Color Touchscreen Wi-Fi w/ USB Camera, Charcoal NEW

$35.00



MagicJack - HOME VoIP Telephone Adapter with 12 Months of Service - Black picture

MagicJack - HOME VoIP Telephone Adapter with 12 Months of Service - Black

$49.99



Cisco CP-7821 VOIP Phone | With Stand and Handset | Business IP Phone 7821 picture

Cisco CP-7821 VOIP Phone | With Stand and Handset | Business IP Phone 7821

$21.99



OBi2182 WiFi VOIP Phone with Power Adapter - 12-Line Cloud-Managed Gigabit picture

OBi2182 WiFi VOIP Phone with Power Adapter - 12-Line Cloud-Managed Gigabit

$52.95



Cisco SPA232D-G1 DECT Mobility Enhanced ATA VOIP Gateways SPA232D picture

Cisco SPA232D-G1 DECT Mobility Enhanced ATA VOIP Gateways SPA232D

$30.00



Yealink YEA-W56H - HD DECT Handset for Cordless VoIP Phone and Device READ picture

Yealink YEA-W56H - HD DECT Handset for Cordless VoIP Phone and Device READ

$89.99