---
title: "Discussion on \"Go Cheatsheet - Run External Process\" | Hashnode"
description: "Discussion on \"Go Cheatsheet - Run External Process\". Run External Process\nWe can use os/exec module's Command function to call external program.\nUse Output\nproc := exec.Command(\"ls\", \"-l\")\noutput, err := proc.Output()\nif err != nil {\n    log.Fatalln(\"Process running error\", err)\n}\nfmt.Println(string(ou..."
url: "https://hashnode.com/posts/go-cheatsheet-run-external-process/60823bf2ff5fc65284a77209"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Go Cheatsheet - Run External Process](https://hn.0xbf.me/go-cheatsheet-run-external-process?utm_source=hashnode&utm_medium=feed)

Run External Process We can use os/exec module's Command function to call external program. Use Output proc := exec.Command("ls", "-l") output, err := proc.Output() if err != nil { log.Fatalln("Process running error", err) } fmt.Println(string(ou...

Apr 23, 2021 · 2 min read · hn.0xbf.me  
Read the article

-   [#go](https://hashnode.com/tag/go)

## Written by

[0xBF](https://hashnode.com/@0xbf)

@0xbf

  
[View profile](https://hashnode.com/@0xbf)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
