180 links
  • BigBrainBag
  • Home
  • Login
  • RSS Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
page 1 / 1
1 results tagged background x
  • command line - How to run a shell script in background? - Ask Ubuntu


    How can I run a shell script in background?
    scripts
    command-line
    Share
    Improve this question
    Follow
    edited Jun 24 '12 at 22:18
    pl1nk
    5,53955 gold badges2424 silver badges4545 bronze badges
    asked Dec 15 '11 at 21:00
    erkan şentürk
    90711 gold badge88 silver badges1111 bronze badges
    Add a comment
    3 Answers
    127

    Depending on what you are wanting, just add a & to the end of the command

    script.sh &
    command &

    If you are running it in a terminal, and you want to then close the terminal, use nohup or disown

    nohup

    nohup script.sh &

    disown

    script &
    disown
    Fri Mar 12 11:16:55 2021 - permalink -
    QRCode
    - archive.org - https://askubuntu.com/questions/88091/how-to-run-a-shell-script-in-background
    background exec shell
Links per page: 20 50 100
page 1 / 1
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation