I'm trying to suppress an alert in a system called HP Operations manager probably more commonly known as OVO (very old system i know) however i'm struggling with the UNIX protected characters because i am trying to suppress a windows alert from the Microsoft\Windows path, so anything before it and after it in the log file can change just want to exclude everything from Microsoft\Windows.
I have tried using double backslashes \ as i have done some research and found that the first \ mitigates the meaning of the second \ therefore \ = \, this doesn't work for me, so far I've got <>"\Microsoft\Windows"<> that doesn't work, but i have also tried \Microsoft\Windows to no avail.
I don't really have a test platform so it's been just trial and error so far, however i will know when it finally works because i will no longer receive these alerts.
Long story short is i want to know how to handle windows file paths e.g xxx\xxx\xxx\ in UNIX so what do i change \Microsoft\Windows to for it to be recognized in UNIX
Related
I am a professor at a small college, and I am working with a blind student in a statistics course. We have found that R is by far the most accessible system to use, and for the screen reader to work (i.e. for it to read the output), we need to run R out of the Command Prompt (the student uses a Windows machine, specifically one running Windows 7). Though using the R console would probably be easier to operate, for some reason the screen reader being used by the student (JAWS) doesn't read the output in the console.
We have gotten to the point where we can use R out of the Command Prompt just fine, but the issue is that we cannot save the command history and the output from the Command Prompt to an external file (e.g. a .txt). I understand that I can use the sink() function to get the output in a .txt file, and I can also use the savehistory() function to get the command history, but I need something that captures both. We have also tried to use CMD outside of the R environment to try and print the full session of the Command Prompt, but that doesn't seem to capture the work that we might do during an R session.
On a Mac, this wouldn't be a problem, but I am not the best with using the Windows Command Prompt.
Any help would be greatly appreciated, and if more detail is required, I am more than happy to provide it.
I am operating in a linux environment (not familiar to me) and I am handling a bunch of files in django. Bit embarrassing but I seem to have done something subtle to the server that disallows me from setting up separate work stations from my terminal... i.e. emacs file.py & won't work for me; it just says that the emacs window is loading but it won't actually appear - I've waited 5 minutes.
It's not a big deal as emacs file.py works fine and I can "Reset terminal" once I'm done editing the file. However, saving the file could be a problem as the saving options are different between the "&" and "without &" versions of the command. It's such a basic thing that there seems to be no info on it online... any tips?
NOTE: it all started when I mistakenly typed emacs file.py and forgot the & and now something seems to be irreversibly changed that logging in and out again doesn't fix...
When using emacs in a text terminal, start it without the &, you need to run it in foreground. To save a file, use the standard C-xC-s (if your terminal interprets the keystrokes differently, you have to configure the terminal). After saving the file, you can get back to the shell by pressing C-z. It would stop emacs, but you can get back in by typing fg or %em or similar.
To quit emacs, use C-xC-c.
I have an exe file (Windows environment) which runs OK on Windows 10, but eventually it produces an error ("Can't find folder %USERPROFILE%\Local Settings\folder\\Tempfolder"). Needless to say, the folder does exist. I looked into the exe file with a hex editor and I found out that somewhere there is (hardcoded) the URL of this specific folder, in cleartext. It looked the same as the error message:
"%USERPROFILE%\Local Settings\folder\\Tempfolder".
I wonder if there is a mistake in the URL -- the double backslash before the last subfolder. As you can see from the example above, the double backslash appears only at the last subfolder, so I don't think that it is interpreted as an escape character.
So I tried deleting the extra backslash with the HEX editor, save and execute, but when I did so Windows 10 stopped being able to execute it, it said something like "This cannot be recognized as a Windows application".
Why does this hapen?
Is there a way to do this without messing up the executable?
(Note: the URL above is an example, I won't write the real one because the exe is actually a dubious tool of the cracking genre)
STOP!
DON'T USE THIS FOR WHAT THE ASKER IS DOING. IT MIGHT MESS STUFF UP EVEN MORE.
Add a 0x00 byte on the end of the string. :)
And also update the checksum.
If it's signed, you're outta luck.
If you don't wanna update the checksum, use CFF Explorer.
I am working with network shell (nsh; bmc software) I believe it is based on zsh 4.3.4. I have written a script that connects to a list of variable solaris machines and runs numerous commands and then creates some local directories and files based off of those commands.
I am looking for a way to display the script's progress as it can take some time depending on the number of servers. I have been told by others I need to utilize pv or dialog. However, in nsh when attempting to run these commands I get "command not found." It could be a limitation of nsh as well.
As a simple example, I want to see the progress of the following:
for i in $(cat serverlist.txt)
do
nexec -i $i hostname >> hosts.txt
done
Of course my script is a lot more complex than this but I cannot seem to get it working correctly as pv and dialog are not available. Also I know I should be using read -r to truncate the file, but appears not to work correctly either.
I'm trying to use the HTTP client example code (sync_cleint.cpp) to retrieve a jpg. I'm using VS2008 on a Windows XP machine and trying to access a Linux server. The resulting data I get back does not start the new lines at the same place as data I retrieve by simply downloading. I believe this is an issue with how windows interprets a new line, \r\n, versus how unix/linux interprets a new line, \n. The example code (http://www.boost.org/doc/libs/1_48_0/doc/html/boost_asio/example/http/client/sync_client.cpp) uses \r\n, \n, and \r, so I'm a little confused on how to rectify the problem. Any suggestions to correct this for my case (hard code) or automatically detect would be greatly appreciated.
P.S. I'm using boost 1.48.0