Post

Replies

Boosts

Views

Activity

Reply to program with terminal
Thanks!The Thing is, I copied the phrase from the other User. It´s clear, that he doesn´t use my textline.He posted this:let task = NSTask()task.launchPath = "/usr/sbin/sysctl"task.arguments = ["-w", "net.inet.tcp.delayed_ack=0"]let pipe = NSPipe()task.standardOutput = pipetask.standardError = pipetask.launch()task.waitUntilExit()let data = pipe.fileHandleForReading.readDataToEndOfFile()let output: String = NSString(data: data, encoding: NSUTF8StringEncoding) as! Stringfor the line " sudo sysctl -w net.inet.tcp.delayed_ack=0"But in my line is there no User.I tried to use "task.arguments", but it doesnt work.Can you help me by this Situation?
Apr ’20