Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import ( "fmt")
- func executePlugin(name string) {
- // time.Sleep(int64(1))
- //code for executing the scripts using Command
- fmt.Println("Now it is ending ",name)
- }
- func main() {
- var i int=1
- var plugin_path ,plugin_name string =" "," " //path to run scripts
- for ;i<4;i++ {
- fmt.Println("Starting",i)
- go executePlugin(plugin_path + plugin_name)
- fmt.Println("Here u are",i)
- }
- }
Add Comment
Please, Sign In to add comment