Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [hook]

The tag has no usage guidance.

1
vote
0answers
76 views

Ubuntu LVM on LUKS UEFI

I want to install Ubuntu on LVM on LUKS in UEFI mode. An UEFI partition, another encrypted partition for /boot and again an encrypted partition for system. My question is: How can I add hooks to ...
0
votes
0answers
28 views

Hook to shutdown VirtualBox on restart due to Windows Update

Although those of us on Windows 10 Home are stuck with uncontrolled system restarts due to Windows Update, is there a way to add a hook that will run whenever Windows restarts or shuts down, whether ...
0
votes
0answers
128 views

Intercepting and Re-Directing Windows File Operations in a C Program

My intention is to write a program (I have Pelles C) whose function is to intercept Windows reads/writes to certain directories, and re-direct them to other, user-specified ones. For example, a ...
2
votes
1answer
805 views

Analyzing a dump file using WinDbg

I've been asked to explore a dump file (no source files given) using windbg and to extract some information from it: determine what is the issue (hang/crash) what module causes the hang. What is the ...
1
vote
2answers
899 views

Is it possible to hook into a print job and copy the print job to a virtual printer, too?

I would like to know if this is possible for Windows,Mac and Linux. I need some generic solution to clone print jobs, currently in the pipeline and send them to a virtual printer, because I cannot ...
2
votes
0answers
17 views

Set Windows to close application when the lid is being closed [duplicate]

I need to be able to configure Windows 7+ to close all instances of Microsoft Remote Desktop application when the lid of the laptop is being closed. On MacOS I can achieve this via osascript. Could ...
4
votes
1answer
722 views

ZSH: change prompt just before command is run

I would like to have a two-line prompt in zsh, but collapse it to a very small one just after pressing ENTER, so that it doesn't show up in the terminal scroll history. After typing two commands, the ...
1
vote
0answers
133 views

Git push over SSH is not activating remote hooks

I have the following problems that git push over SSH is not activating remote hooks. The server where Git repo is Linux ubuntu. Git version 1.7.9.5 My path to repo hooks /path/test.git/hooks/update; ...
2
votes
0answers
151 views

Git server side hooks commit update file

I am trying to implement git hook commit on a server using these instructions: https://git-scm.com/book/be/v2/Customizing-Git-An-Example-Git-Enforced-Policy I created file "update" (make it ...
1
vote
1answer
95 views

When I run a git hook in a repo on a network share: which binaries are used?

See title. My repo is located on a network share. When I push new revs there, a post-udpate hook is run. The hook needs Perl and runs nicely. But which perl.exe is used here? The one on my machine? ...
0
votes
1answer
62 views

Detect IPC between running processes on Unix

Suppose I have 2 processes on any unix-based system and I sure they are using some inter-process communication. How can I detect what do they use in order to simulate or hook it? I mean pipes, for ...
1
vote
1answer
1k views

Git post-update hook not working properly

If I push to my remote origin repository the post-receive hook should push all to another remote repository on another machine. When I push to my origin the post-receive hook gets triggered but I ...
1
vote
1answer
87 views

How to create SSH Key for git user

If i want to syncronize my remote origin with another remote repository i will have to register a post-update hook. But I will need an ssh key for that. Because my origin repo is owned by git user, ...
3
votes
2answers
4k views

How to commit files modified by pre-commit hook in Git

Im struggling for a couple of hours to make git store metadata (permissions/flags/etc) of the files using metastore and I use hooks/pre-commit for this. The script is invoked correctly, and the file ...
-4
votes
1answer
76 views

Someone is hooking me? [closed]

I have some ticket on customer site I'm dealing with. My application uses 3rd party app (written in Python & c++) which I don't have the code - and in my code is always failing on one server, and ...
0
votes
1answer
441 views

What DLL's does DirectX 5 use?

I know directX 9 uses many DLL's, but the main DLL is d3d9.dll which I can replace with my own one and so "hook" into an application using DirectX 9. I can do the same for directx 8. But I have a game ...
1
vote
1answer
319 views

How to defocus a program without letting it know it is out of WinAPI focus

There is a need for two of us with my friend to use one PC at the same time. I have a gaming PC, 2 screens, a gamepad — sounds like a great multi-user environment, eh? Not so fast. The problem is: ...
1
vote
1answer
405 views

Why doesn't the Aquamacs text-mode-hook I add in my .emacs file seem to run?

I'm running Aquamacs 2.4 (based on Emacs 23.3.50.1) on my Macbook, OS 10.7.5. I have the following line in my .emacs file: (add-hook 'text-mode-hook 'turn-on-visual-line-mode) I think that this ...
2
votes
2answers
288 views

Monitor programs accessing my keyboard?

As of a few days ago, my computer is behaving 'erratically'. When I am typing, my pointer will randomly move to another place in the text and start typing a semi-random string of characters. ("gvyfn" ...
7
votes
2answers
16k views

How to trick programs into thinking they're running under 32-bit?

Basically I have 3 executables in my Windows 7 64-bit, those are: Loader.exe -> This is a 32-bit exe  x86.exe -> This is a 32-bit exe x64.exe -> This is a 64-bit exe When Loader.exe starts it ...
1
vote
1answer
1k views

How to properly copy/paste code from .pdf to a new file open on terminal?

I have a pdf containing the following code: #!/bin/sh echo echo “**** Pulling changes into Dev [Hub’s post-update hook]” echo case “ $1 ” in If I copy and then paste that code on my terminal, after ...
1
vote
0answers
86 views

Disable button in a third party application?

Im currently have a linux "kiosk" machine containing a closed-source third party application. The problem is that the third party application has a settings button, that I dont want the users to be ...
57
votes
3answers
58k views

How to launch a command on network connection/disconnection?

I have a wifi connection that requires to authenticate using a web form once the wireless link is established. I know how to automate the authentication with a script that uses curl/curlIE. But how ...
2
votes
2answers
950 views

How can I find which file system hooks are installed on a windows XP pro machine?

I've a suspect that a program I installed (spideroak) didn't completely removed itself on uninstall. How can I check if there are still file system hooks installed? EDIT: Probably spideroak wasn't ...
2
votes
3answers
456 views

Compiz shutdown hook?

I want to check 10+ local Git repositories if they have any unpushed commit, before shutdown. (I always forgot to push them, so later, the next morning I came office and back home again) I think ...
2
votes
1answer
443 views

Can the OS X unlock panel trigger a login hook similar to loginwindow?

I'd like to automatically run a shell script every time I authenticate onto my computer. However, all the info I can find about loginhook and Global LoginItems applies only when authenticating to "...
101
votes
6answers
40k views

Does bash have a hook that is run before executing a command?

In bash, can I arrange for a function to be executed just before running a command? There is $PROMPT_COMMAND, which is executed before showing a prompt, i.e., just after running a command. Bash's $...
4
votes
2answers
3k views

Global git hook

Is it possible to hook all ways of creating git repo? So I can run script when repo is cloned, initialized… (are there any other ways, except moving/copying folder?). My intention is to track all ...
2
votes
2answers
1k views

How to run commands when mac is idle and when it resumes

I want to run script when my mac is idle (for example after 5 minutes or screen saver start time is also ok) and when I resume it from idle state. I know that I can write daemon using ...
2
votes
2answers
173 views

(Vista) Discover what app is reserving a shortcut key?

My problem is this: I've always managed to map WIN+V to foobar2000's "Next song" keyboard shortcut. For some reason, on this new machine, I can't. I've done this before on Vista, so the only thing I ...