named-pipes

Minimum OS Permissions required to create named pipe (WCF)

↘锁芯ラ 提交于 2019-11-30 08:27:14
问题 I have an exe that runs under the context of the logged-in user. The exe uses WCF to make itself a named pipe server (it will be called by multiple clients). Does the user need a specific permission for the exe to be able to create the named pipe? I've tried running as a user with fairly minimal permissions (i.e. just in the local Users group), and this works fine - but I'm concerned that when I deploy to the clients site, the users may be limited in some way that means the named pipe

Using named pipes with bash - Problem with data loss

会有一股神秘感。 提交于 2019-11-30 06:37:09
问题 Did some search online, found simple 'tutorials' to use named pipes. However when I do anything with background jobs I seem to lose a lot of data. [[Edit: found a much simpler solution, see reply to post. So the question I put forward is now academic - in case one might want a job server]] Using Ubuntu 10.04 with Linux 2.6.32-25-generic #45-Ubuntu SMP Sat Oct 16 19:52:42 UTC 2010 x86_64 GNU/Linux GNU bash, version 4.1.5(1)-release (x86_64-pc-linux-gnu). My bash function is: function jqs {

Sockets vs named pipes for local IPC on Windows?

杀马特。学长 韩版系。学妹 提交于 2019-11-30 04:57:05
Are there any reasons for favoring named pipes over sockets for local IPC (both using win-api), effectiveness-wize, resource-wize or otherwise, since both behave very much alike (and likely to be abstracted by a similiar interface anyway), in an application that is likely to already use sockets for network purposes anyway? I can name at least the addressing issue: port numbers for sockets against filenames for pipes. Also, named pipes (AFAIK) won't alert the firewall (block/unblock dialog), although blocked applications can still communicate via sockets locally. Anything else to take into

How to respond conditionally based on the request when using netcat

一世执手 提交于 2019-11-30 04:48:27
问题 I am trying to set up a web server using only windows batch scripting. I have already come up with the following script: @echo off @setlocal enabledelayedexpansion for /l %%a in (1,0,2) do ( type tempfile.txt | nc -w 1 -l -p 80 | findstr mystring if !ERRORLEVEL! == 0 ( echo found > tempfile.txt ) else ( echo not-found > tempfile.txt ) ) However, the response is always one request behind, I mean, if I type something like this into the browser: REQUEST: localhost/mystring I will get the

Named Pipes in Go for both Windows and Linux

倖福魔咒の 提交于 2019-11-30 04:07:47
问题 I am new to Go, I want to create Named Pipes implementation in Go which works on both Windows and Linux. I managed to get the code working on Ubuntu, but this one does not work on Windows Isn't there any abstraction in Go which allows you to work with Named Pipes in both environment Below is piece of my code //to create pipe: does not work in windows syscall.Mkfifo("tmpPipe", 0666) // to open pipe to write file, err1 := os.OpenFile("tmpPipe", os.O_RDWR, os.ModeNamedPipe) //to open pipe to

Are there repercussions to having many processes write to a single reader on a named pipe in posix?

笑着哭i 提交于 2019-11-30 03:32:29
问题 I am writing a program for POSIX (OSX) where I will have many processes sending messages to one listener, who is essentially a logging thread. All of the processes are running in seperate programs, and using a single named pipe (FIFO) that many processes write to, but only a single process reads from is very tempting. Questions: 1) Will this work? - I can make this work using bash to setup a fifo with multiple processes writing to it, so I know in theory this works. But in practice, are there

C++: Implementing Named Pipes using the Win32 API

。_饼干妹妹 提交于 2019-11-30 01:54:16
I'm trying to implement named pipes in C++, but either my reader isn't reading anything, or my writer isn't writing anything (or both). Here's my reader: int main() { HANDLE pipe = CreateFile(GetPipeName(), GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, NULL); char data[1024]; DWORD numRead = 1; while (numRead >= 0) { ReadFile(pipe, data, 1024, &numRead, NULL); if (numRead > 0) cout << data; } return 0; } LPCWSTR GetPipeName() { return L"\\\\.\\pipe\\LogPipe"; } And here's my writer: int main() { HANDLE pipe = CreateFile(GetPipeName(), GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE

Client on non-admin user can't communicate using net.pipe with services

喜你入骨 提交于 2019-11-30 00:33:03
问题 I have a client app that hosts a WCF service using net.pipe protocol. The client can't communicate with other WCF services which are running under the admin user. I have read that you can't communicate using net.pipe between different users. Is there way to by pass it? 回答1: I have read that you can't communicate using net.pipe between different users. This isn't true in general. Here is a summary of what I think you are referring to: If you are running on an operating system earlier than

WCF Named Pipe IPC

一笑奈何 提交于 2019-11-29 20:42:30
问题 I have been trying to get up to speed on Named Pipes this week. The task I am trying to solve with them is that I have an existing windows service that is acting as a device driver that funnels data from an external device into a database. Now I have to modify this service and add an optional user front end (on the same machine, using a form of IPC) that can monitor the data as it passes between the device and the DB as well as send some commands back to the service. My initial ideas for the

Using FFMPEG to stream continuously videos files to a RTMP server

。_饼干妹妹 提交于 2019-11-29 19:59:30
ffmpeg handles RTMP streaming as input or output, and it's working well. I want to stream some videos (a dynamic playlist managed by a python script) to a RTMP server, and i'm currently doing something quite simple: streaming my videos one by one with FFMPEG to the RTMP server, however this causes a connection break every time a video end, and the stream is ready to go when the next video begins. I would like to stream those videos without any connection breaks continuously, then the stream could be correctly viewed. I use this command to stream my videos one by one to the server ffmpeg -re -y