in reply to mount cifs using perl and sudo and mount
i need to catch if it mounted or not. so how can i do this?You'd use the exit code of the mount command. sudo's exit code will be of whatever command you issued, so checking the exit code of sudo should tell you whether the mount succeeded. If it isn't 0, check the manual page of mount to see what the exit code means.
|
|---|