util

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShellRun

func ShellRun(command string) (string, error)

ShellRun creates a communication interface with CMD or BASH

Types

type Cron

type Cron struct {
	Spec    string
	Command string
}

Cron represents a cron structure

func Crontab

func Crontab(cronFile string) ([]Cron, error)

Crontab read the crontab file and generate the structure to be worked on

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址