Some 3rd party application executes “mount” and I want it to mean “mount -t ext3”
I know, normally this can be done by alias.
But this is rather rare situation where I need something other than alias.
(it’s related to cloud machine executes remote command on another machine.. somehow alias doesn’t work)
I’m going to rename /bin/mount to /bin/mount_execute and create a script at /bin/mount.
when ‘mount a b’ is executed i’d like it to be translated to ‘mount -t ext3 a b’
‘mount a b’ -> ‘/bin/mount a b’ -> ‘/bin/mount_execute -t ext3 a b’
(where /bin/mount is the script that I am asking for)
was the script I needed.
Thanks for suggestions.