180 links
  • BigBrainBag
  • Home
  • Login
  • RSS Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
page 1 / 1
2 results tagged shell x
  • terminal - How to read console/user input in PHP? - Stack Overflow


    If you don't have readline installed, -or- you're writing a library, you should do this:

    if (!function_exists('readline')) {
        function readline($question)
        {
            $fh = fopen('php://stdin', 'r');
            echo $question;
            $userInput = trim(fgets($fh));
            fclose($fh);

            return $userInput;
        }
    }

    $age = readline('What is your age? ');
    echo "You are $age years old.\n";

    Fri Mar 12 17:57:29 2021 - permalink -
    QRCode
    - archive.org - https://stackoverflow.com/questions/23622141/how-to-read-console-user-input-in-php
    input php readline shell
  • 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