This is a command to flip bit 16 from from 0 to 1, it's for firefox so that the cache is retained after a crash/improper shutdown
Code:echo -e "\x00" | dd of=_CACHE_MAP_ bs=1 seek=15 count=1 conv=notrunc
Is there any way that I can use it in windows? Or how I can write a .bat/registry tweaker to utilize this command in windows7?
Thanks!
-
-
The most easiest way I believe is just install cygwin bash.
Just add the path to cygwin binaries to your path.
In your bat, call bash to execute that statement.
Unfortunately, I don't remember the tag off the top of my head but you can man bash for that.
Edit:
I took at my scripts ... I basically cheated by creating two shell script, 1 bat and 1 bash shell, where the bat calls the bash to call on the shell script.
Example.
inside something.bat
sh hello.sh -
Is the code I posted incomplete? -
I'm assuming your code is a complete valid statement.
Here's a breakdown ... My English isn't too good anyways
Download and install Cygwin. Default settings should be enough ... just watch out for where the temp download directory during the install.
Add x:\<path to Cygwin>\bin to your windows PATH environment variable ... example XXXX;C:\Cygwin\bin
Make a foo.bat file and make a bar.sh file. Make sure they are in the same directory.
Bat File:
sh bar.sh
SH File:
#!/bin/bash
echo -e "\x00" | dd of=_CACHE_MAP_ bs=1 seek=15 count=1 conv=notrunc
exit -
i see, i will try it.
what commands should i use to flip bit 16 to (0) value? (artificial crash) -
ALLurGroceries Vegan Vermin Super Moderator
I haven't used cygwin in a while, so I have no idea if dd will actually do what you want it to in that case. It's worth a shot.
Why not just hex edit it? Do you *need* to do it with a batch script? -
Is there a difference between cygwin and the hex editor? -
A hex editor is an editor that allows to modify content according to memory alignment.
Nice suggestionSimpler and much elegant than mine.
Cygwin and a hex editor are not related at all.
The simple way to think Cygwin is like a repository of tools and libraries to bring a linux like environment even the desktop to Windows. -
Which one is bit 16?
-
ALLurGroceries Vegan Vermin Super Moderator
0x0f - last bit on the first line. That looks like an executable file?
-
Doesn't seem to work, I'm not sure if I'm modifying the right bit but the guy at firefox forums also said that "FF FF 00 0x" line is supposed to be changed
-
ALLurGroceries Vegan Vermin Super Moderator
You're doing it on the _CACHE_MAP_ file in your firefox profile folder, right?
any linux pros out there
Discussion in 'Linux Compatibility and Software' started by Mobius 1, Apr 21, 2013.