我想在 Objective-C 中运行以下 shell 命令
sshfs -C -p 22 user@remote.computer.com ~/local/directory/path
使用命令system("sshfs -C -p 22 user@remote.computer.com ~/local/directory/path");
但我进入sh: sshfs: command not found
了 NSLog。
但是,如果我将其复制并粘贴到终端中,它就可以工作。
我想在 Objective-C 中运行以下 shell 命令
sshfs -C -p 22 user@remote.computer.com ~/local/directory/path
使用命令system("sshfs -C -p 22 user@remote.computer.com ~/local/directory/path");
但我进入sh: sshfs: command not found
了 NSLog。
但是,如果我将其复制并粘贴到终端中,它就可以工作。