Skip to content

Shell Script to automate terminal tab opening and custom command execution

License

Notifications You must be signed in to change notification settings

DOkwufulueze/AutoStartup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auto-startup

  • Purpose: This script opens new tabs on terminal and excutes custom commands automatically.
  • Author: Daniel Okwufulueze
  • Date: 12/03/2017

Dependency: xdotool

    # Install xdotool
      sudo apt-get install xdotool

Usage:

    auto-startup [-h | --help]
    auto-startup [-c | --command quoted-semicolon-separated-commands]
    auto-startup [-f | --file-name fileName]
    auto-startup [-c | --command quoted-semicolon-separated-commands]
            [[-b | --black-hole] | [-n | --nohup] | [-o | --output file-path]]
    auto-startup [-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-startup --command "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/AutoStartup.git
    
  • cd into the cloned or downloaded repo

      cd path/to/AutoStartup
    
  • 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-startup [option] [flag]
    
  • Done.



Please send bug issues you may encounter to Issues



Copyleft

Copyleft 2017 Daniel Okwufulueze

Licence

This application is distributed under the GNU GPL-3.0 licence

About

Shell Script to automate terminal tab opening and custom command execution

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages