Skip to content

os/exec: exec.Command won't execute hidden files in Linux #11252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
guitmz opened this issue Jun 17, 2015 · 1 comment
Closed

os/exec: exec.Command won't execute hidden files in Linux #11252

guitmz opened this issue Jun 17, 2015 · 1 comment

Comments

@guitmz
Copy link

guitmz commented Jun 17, 2015

I have been facing a weird problem here and as last resort, I changed the file from being hidden to regular and the exec ran fine. This is the only change I made in the code at all.

Here's an example.

Not working:

cmd := exec.Command("./.file") //notice the file starts with a dot, this will NOT work 
cmd.Start() //execute it

Working:

cmd := exec.Command("./file")  //Works fine!!!
cmd.Start() //execute it

Sorry if this is meant to happen but well, you should be able to exec whatever you want in my opinion.

Thanks

@guitmz guitmz closed this as completed Jun 17, 2015
@guitmz
Copy link
Author

guitmz commented Jun 17, 2015

Yeah my bad, my distro was messed up somehow, restored from a backup and works as it should, no idea what happened.

@guitmz guitmz reopened this Jun 17, 2015
@guitmz guitmz closed this as completed Jun 17, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants