Nothing Special   »   [go: up one dir, main page]

Skip to content

A daemon that executes custom commands automatically in the background and makes them stay alive even after the terminal is exited. It sends command output to either nohup.out, the /dev/null black hole, or a custom file, depending on the option selected by the user.

License

Notifications You must be signed in to change notification settings

DOkwufulueze/auto-startupd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto Startup Daemon

  • Purpose: This daemon executes custom commands automatically in the background that remain alive even after the terminal is exited. It sends command output to either nohup.out, the /dev/null black hole, or a custom file, depending on the option selected by the user.
  • Author: Daniel Okwufulueze
  • Date: 14/05/2017

Usage:

    auto-startupd [-h | --help]
    auto-startupd [-c | --command quoted-semicolon-separated-commands]
    auto-startupd [-f | --file-name fileName]
    auto-startupd [-c | --command quoted-semicolon-separated-commands]
            [[-b | --black-hole] | [-n | --nohup] | [-o | --output file-path]]
    auto-startupd [-f | --file-name fileName]
            [[-b | --black-hole] | [-n | --nohup] | [-o | --output file-path]]

Options:

    # -c | --command:
    This option receives the list of your custom commands in
    quoted string all separated by semicolons [;].
    For example: auto-startupd -c "cd daniel; do_something; do_another_thing".

    # -f | --file-name:
    This option receives the name of the file containing
    all the commands you want to run.
    Each command in the file should take a
    line [separate commands with new line characters].

    # -h | --help:
    This option displays this help page.

Flags:

    # -b | --black-hole:
    If this flag is set, then all output from the
    running processes will be redirected to the /dev/null black-hole.

    # -n | --nohup:
    This flag creates a nohup.out file in the working
    directories of the running processes and redirects all output
    from the running processes to the nohup.out file.

    # -o | --output:
    The --output flag takes the path of the file you
    intend to use for output of running processes.
    If the file does not exist, it will be created.
    All output from the running processes will be redirected
    to the specified file of the --output flag.

Installation:

  • Clone this repo or download here

      git clone git@github.com:DOkwufulueze/auto-startupd.git
    
  • cd into the cloned or downloaded repo

      cd path/to/auto-startupd
    
  • Install the application

      sudo chmod ugo+x install
      
      ./install
    
  • You can now execute auto-startup by simply typing the command below on your terminal:

      auto-startupd [option] [flag]
    
  • Done.

Now, even after you close your terminal, the commands you started in auto-startupd daemon will keep running.

Please send bug issues you may encounter to Issues



Copyleft

Copyleft 2017 Daniel Okwufulueze

Licence

This daemon is distributed under the GNU GPL-3.0 licence

About

A daemon that executes custom commands automatically in the background and makes them stay alive even after the terminal is exited. It sends command output to either nohup.out, the /dev/null black hole, or a custom file, depending on the option selected by the user.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages