Run shell as root

The s array is for parameters of the script:

dim s(-1) as string
s.Add(tempFile.UnixpathMBS)
s.Add(theRegisterFile.Parent.UnixpathMBS)
theAuthorisation.Execute(InternalFolder.UnixpathMBS, s, true)

where the script is a simple:

#!/bin/sh
ditto "$1" "$2"
1 Like