Created
February 23, 2015 16:12
-
-
Save anonymous/e9ee5e8c53d1b4c3c736 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tried on Ubuntu 11.04: | |
git clone https://code.google.com/p/scriptfs scriptfs_git | |
cd scriptfs_git/ | |
sudo apt-get install libfuse-dev | |
make | |
mkdir ~/work-melt | |
mkdir ~/uncommented-melt | |
mkdir ~/bin | |
nano ~/bin/uncomment-melt | |
chmod +x /home/username/bin/uncomment-melt | |
./scriptfs -p "$HOME/bin/uncomment-melt;&*.melt" ~/work-melt ~/uncommented-melt | |
cp /tmp/test_c.melt ~/work-melt/ | |
melt ~/uncommented-melt/test_c.melt # again has characters; there has been no filtering | |
sudo umount ~/uncommented-melt | |
rm ~/uncommented-melt/* | |
./scriptfs -p "$HOME/bin/uncomment-melt;&*.melt" ~/work-melt ~/uncommented-melt # fusermount: failed to access mountpoint /home/username/uncommented-melt: Permission denied | |
rm -rf ~/uncommented-melt # rm: cannot remove `~/uncommented-melt': Device or resource busy # prob because Gnome in Ubuntu still shows an icon for a mounted device! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment