0

I have a script file with the following code:

if [ ! -d ~/Remote/username/projects  ] 
then  
        sshfs -C -p 22 user@remotecomputer.com:/home/username ~/Remote/username        
fi

and when I run it from the terminal, it works, however when I call the script from Objective-C and try to run it, I get sh: sshfs: command not found

Here is the my Objective-C code that's calling the file

    NSTask *task = [[NSTask alloc] init];
    [task setLaunchPath:@"/bin/sh"];
    [task setArguments: [NSArray arrayWithObjects: @"/Users/username/connect.sh", nil]];
    [task launch];
4

0 回答 0