Giter Club home page Giter Club logo

sockexec's People

Contributors

jprjr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sockexec's Issues

Fail to compile with skalibs 2.5.0.0

Sockexec not compatible with skalibs 2.5.0.0 and above because of api changes
From the release page:

skalibs/ushort.h, skalibs/uint.h and skalibs/ulong.h removed. skalibs/types.h is now a generic header for fmtscan primitives for various types.

client

Is there a simple client that lets you exec stuff as a client in a blocking way? something similar to doing like:
ssh machine thingy to run

maybe:
sockexec-client foo.sock thingy to run?

Does not compile (Ubuntu 18.04)

Hi, sockexec does not compile under Ubuntu 18.04, below is the error I receive when I run make

kaliwolf@video:~/sockexec$ make exec gcc -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -iquote src/include-local -Isrc/include -Wall -Wextra -Werror -pipe -Wall -fPIC -std=c99 -O2 -c -o src/sockexec/sockexec.o src/sockexec/sockexec.c src/sockexec/sockexec.c: In function ‘main’: src/sockexec/sockexec.c:150:8: error: implicit declaration of function ‘tain_init’; did you mean ‘tain_uint’? [-Werror=implicit-function-declaration] if(tain_init() <= 0) strerr_diefu1sys(111,"tain_init"); ^~~~~~~~~ tain_uint cc1: all warnings being treated as errors Makefile:130: recipe for target 'src/sockexec/sockexec.o' failed make: *** [src/sockexec/sockexec.o] Error 1 kaliwolf@video:~/sockexec$
Thanks,
Kali~

can it be supported for FreeBSD?

i tried to install it in FreeBSD 11, but failed..

gcc49 -Wall -Wextra -Werror -O3 -o bin/sockexec -lskarnet
/usr/lib/crt1.o:在函数‘_start’中:
/usr/src/lib/csu/amd64/crt1.c:(.text+0x17b):对‘main’未定义的引用
collect2: error: ld returned 1 exit status
*** Error code 1

Stop.

stderr contains stdout

Hello.
From time to time when polling the server it happens that the call from lua-resty-exec contains the output in stderr instead of stdout.
The sockexec then logs the following warning.

WARNING: IOPAUSE_EXCEPT, closing fd 7

What should I do to make it more reliable?

Thanks.

Build fails with skalibs 2.6.4

I'm trying to build with skalibs 2.6.4 and it fails with:

ubuntu@server-4:~/src/sockexec-2.0.3_ make
gcc -static -Wall -Werror -c -o src/accept_client.o src/accept_client.c
In file included from src/accept_client.c:1:0:
src/common.h:25:21: error: conflicting types for _environ_
 extern const char **environ;
                     ^
In file included from /usr/include/skalibs/webipc.h:16:0,
                 from src/common.h:9,
                 from src/accept_client.c:1:
/usr/include/skalibs/posixplz.h:14:15: note: previous declaration of _environ_ was here
 extern char **environ ;
               ^
Makefile:56: recipe for target 'src/accept_client.o' failed
make: *** [src/accept_client.o] Error 1

OS is Ubuntu 16.04.1 LTS

How could sockexec run shell script as root?

I've try configs as below, but as I run prog({'ngxin','-s', 'reload'}) in openresty worker
It threw permission denied error.
Could you please fix it?

cat > /etc/systemd/system/sockexec.service <<eof
[Unit]
description=sockexec
After=network.target

[Service]
ExecStart=/usr/local/openresty/nginx/docker/bin/sockexec /tmp/exec.sock
User=root

[Install]
WantedBy=multi-user.target
eof

mac simple test fail.

hey , thanks for good project, but

./sockexec -d /tmp/exec.sock > sockexec.log 2>&1

and

./sockexec.client /tmp/exec.sock bash
tail -f sockexec.log

output is

Connection 0: accepted
Connection 0: reading client data
Connection 0: client sent 0 bytes, closing connection
Connection 0: attempting to close, forced
Connection 0: closing

what is miss? thx~

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.