0

I am trying to do

exec("DISPLAY=127.0.0.1:0.0 foo")

Errno::ENOENT: No such file or directory - DISPLAY=127.0.0.1:0.0 foo
    from (irb):1:in `exec'
    from (irb):1
    from :0

How to fix? Thanks.

Tamer Shlash
  • 9,314
  • 5
  • 44
  • 82
user180574
  • 5,681
  • 13
  • 53
  • 94

1 Answers1

0

Try

exec("env DISPLAY=127.0.0.1:0.0 foo")

Learn more here.

Community
  • 1
  • 1
Tamer Shlash
  • 9,314
  • 5
  • 44
  • 82