0

I'm trying to write a script to start apache:

var result = app.doShellScript('apachectl start');

and standard out says:

This operation requires root.

So I change it to:

var result = app.doShellScript('sudo apachectl start');

And then the response is:

no tty present and no askpass program specified

In a few other AIR apps AIR would open up a window. Is there some way to prompt this directly?

VC.One
  • 14,790
  • 4
  • 25
  • 57
1.21 gigawatts
  • 16,517
  • 32
  • 123
  • 231

0 Answers0